From: Tobias Schmidl Date: Wed, 25 May 2022 12:25:26 +0000 (+0200) Subject: wic/plugins/images/direct: Allow changes in fstab on rootfs X-Git-Tag: uninative-3.7~718 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20d43a2;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git wic/plugins/images/direct: Allow changes in fstab on rootfs 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 Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index da483daed5f..c44159b2357 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py @@ -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: