]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
wic/plugins/images/direct: Allow changes in fstab on rootfs
authorTobias Schmidl <tobiasschmidl@siemens.com>
Wed, 25 May 2022 12:25:26 +0000 (14:25 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 May 2022 22:47:20 +0000 (23:47 +0100)
Allow wic to also manipulate the rootfs entry in fstab, which it
currently refuses to write. Reasons one might want to do that include
using systemd-growfs via --fsoptions on /
With this change / is now handled exactly the same as other
mountpoints, the former exception seemingly was not even documented.

Signed-off-by: Tobias Schmidl <tobiasschmidl@siemens.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/plugins/imager/direct.py

index da483daed5f2c9a0f5c591339ec5f38950a723c1..c44159b235728a33fa34bfa8f676521b4db7d35a 100644 (file)
@@ -117,7 +117,7 @@ class DirectPlugin(ImagerPlugin):
         updated = False
         for part in self.parts:
             if not part.realnum or not part.mountpoint \
-               or part.mountpoint == "/" or not part.mountpoint.startswith('/'):
+               or not part.mountpoint.startswith('/'):
                 continue
 
             if part.use_uuid: