]> code.ossystems Code Review - openembedded-core.git/commit
wic: fix restoring of original fstab
authorEd Bartosh <ed.bartosh@linux.intel.com>
Fri, 16 Jun 2017 13:19:30 +0000 (16:19 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Jun 2017 10:43:37 +0000 (11:43 +0100)
commit29f7735030d383f9614bdb148b52a47c79f05eea
tree79a0c7a6f8026d65ac2edb93af664355a5d0b5aa
parent49b704864c7db49e41a0b6bbdb8a2840e7fa232b
wic: fix restoring of original fstab

Wic updates fstab if mount points are specified in .wks.
After partition images are created the original fstab is restored.
However, if exception is raised when partition image being prepared
wic doesn't restore original fstab. This can cause duplication of
added lines in fstab when 'wic create' runs next time.

Wrapping call of 'prepare' method and restoring original fstab
even if exception occurs should fix this.

[YOCTO #11633]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/plugins/imager/direct.py