#NEWLINE# def extendFstab( self , src , fs , ro ) : #NEWLINE# #INDENT# ' Add a line to the fstab file using bind.\n\n            @param src:     Source path in host filesystem.\n            @type  src:     str\n\n            @param fs:      Path in container filesystem to which the source\n                            should be bound.\n            @type  fs:      str\n\n            @param ro:      Flag to indicate whether bind should be read-only\n                            or not.\n            @type  ro:      bool\n        ' #NEWLINE# dst = pjoin ( dst . _rootfs , fs ) #NEWLINE# if ( not os . path . isabs ( src ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Source path has to be absolute.' ) #NEWLINE# #UNINDENT# if ( not os . path . exists ( src ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Source path does not exist.' ) #NEWLINE# #UNINDENT# if ( not os . path . exists ( dst ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Destination path does not exist.' ) #NEWLINE# #UNINDENT# self . _fstabExt . append ( ( src , dst , ro ) )