diff options
Diffstat (limited to 'scripts/lib/wic/plugins')
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index a6abc3d09e..60317eed22 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py | |||
@@ -71,6 +71,7 @@ class DirectPlugin(ImagerPlugin): | |||
71 | self.outdir = options.outdir | 71 | self.outdir = options.outdir |
72 | self.compressor = options.compressor | 72 | self.compressor = options.compressor |
73 | self.bmap = options.bmap | 73 | self.bmap = options.bmap |
74 | self.no_fstab_update = options.no_fstab_update | ||
74 | 75 | ||
75 | self.name = "%s-%s" % (os.path.splitext(os.path.basename(wks_file))[0], | 76 | self.name = "%s-%s" % (os.path.splitext(os.path.basename(wks_file))[0], |
76 | strftime("%Y%m%d%H%M")) | 77 | strftime("%Y%m%d%H%M")) |
@@ -165,7 +166,10 @@ class DirectPlugin(ImagerPlugin): | |||
165 | filesystems from the artifacts directly and combine them into | 166 | filesystems from the artifacts directly and combine them into |
166 | a partitioned image. | 167 | a partitioned image. |
167 | """ | 168 | """ |
168 | new_rootfs = self._write_fstab(self.rootfs_dir.get("ROOTFS_DIR")) | 169 | if self.no_fstab_update: |
170 | new_rootfs = None | ||
171 | else: | ||
172 | new_rootfs = self._write_fstab(self.rootfs_dir.get("ROOTFS_DIR")) | ||
169 | if new_rootfs: | 173 | if new_rootfs: |
170 | # rootfs was copied to update fstab | 174 | # rootfs was copied to update fstab |
171 | self.rootfs_dir['ROOTFS_DIR'] = new_rootfs | 175 | self.rootfs_dir['ROOTFS_DIR'] = new_rootfs |