summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorTobias Schmidl <tobiasschmidl@siemens.com>2022-05-25 14:25:26 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-27 23:50:48 +0100
commit875db2bc9d20e0e0a6fe30997a99f1252f896073 (patch)
treec1cea4edb05a2c656158e0535bf8ea5fc42a58dc /scripts/lib
parentfd255af7debb9f665b6bf8b750c645e930b70f8d (diff)
downloadpoky-875db2bc9d20e0e0a6fe30997a99f1252f896073.tar.gz
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. (From OE-Core rev: 20d43a2599d7622b96e2fb0da87a886da1a3794a) 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>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/plugins/imager/direct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
index da483daed5..c44159b235 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -117,7 +117,7 @@ class DirectPlugin(ImagerPlugin):
117 updated = False 117 updated = False
118 for part in self.parts: 118 for part in self.parts:
119 if not part.realnum or not part.mountpoint \ 119 if not part.realnum or not part.mountpoint \
120 or part.mountpoint == "/" or not part.mountpoint.startswith('/'): 120 or not part.mountpoint.startswith('/'):
121 continue 121 continue
122 122
123 if part.use_uuid: 123 if part.use_uuid: