# <file system> <mount point>   <type>  <options>       <dump>  <pass>
%if 'fstabs' in %%current_container and %%len(%%current_container.fstabs) > 0
#
## Mount points of %%current_container.name
#
  %for %%fstab in %%current_container.fstabs
    %if 'options' not in %%fstab or %%len(%%fstab.options) == 0
      %set %%fstab['options'] = 'defaults'
    %end if
    %if 'checks' not in %%fstab or %%len(%%fstab.checks) == 0
      %set %%fstab['checks'] = '0 0'
    %end if
    %if 'mount_point' not in %%fstab or %%len(%%fstab.mount_point) == 0
      %set %%fstab['mount_point'] = %%fstab['name']
    %end if
    %if %%fstab.type == 'bind'
%%os.path.normpath(%%fstab.name) %%os.path.normpath(%%concat_path(%%current_container.path, %%fstab.mount_point)) none bind,%%fstab.options %%fstab.checks
    %else
%%os.path.normpath(%%fstab.name) %%os.path.normpath(%%fstab.mount_point) %%fstab.fstype %%fstab.options %%fstab.checks
    %end if
  %end for
%end if
