diff options
author | Daniel Gomez <daniel@qtec.com> | 2021-08-17 22:11:14 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-20 08:53:03 +0100 |
commit | 6fdbc5144f3505b11f09364775a0c08cf62f4d21 (patch) | |
tree | 11b4eeac6b6ef2e9e5d42e104fb5c0274afd104e /scripts/lib/wic/ksparser.py | |
parent | 901b82a4c8b343b378293956420ad5a4943b6be7 (diff) | |
download | poky-6fdbc5144f3505b11f09364775a0c08cf62f4d21.tar.gz |
wic: Add --no-fstab-update part option
When embedding a rootfs image (e.g. 'rootfs-dir') as a partition we
might want to keep the stock fstab for that image. In such a case, use
this option to not update the fstab and use the stock one instead.
This option allows you to specify which partitions get the fstab
updated and which get the stock fstab.
The option matches the argument you can pass to wic itself where the
same action is performed but for all the partitions.
Example:
part /export --source rootfs --rootfs-dir=hockeycam-image
--fstype=ext4 --label export --align 1024 --no-fstab-update
part / --source rootfs --fstype=ext4 --label rootfs --align 1024
(From OE-Core rev: ab4c95af8ecd15dc136194ab761afae756db5803)
Signed-off-by: Daniel Gomez <daniel@qtec.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/ksparser.py')
-rw-r--r-- | scripts/lib/wic/ksparser.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py index 7a4cc83af5..0df9eb0d05 100644 --- a/scripts/lib/wic/ksparser.py +++ b/scripts/lib/wic/ksparser.py | |||
@@ -185,6 +185,7 @@ class KickStart(): | |||
185 | part.add_argument('--use-uuid', action='store_true') | 185 | part.add_argument('--use-uuid', action='store_true') |
186 | part.add_argument('--uuid') | 186 | part.add_argument('--uuid') |
187 | part.add_argument('--fsuuid') | 187 | part.add_argument('--fsuuid') |
188 | part.add_argument('--no-fstab-update', action='store_true') | ||
188 | 189 | ||
189 | bootloader = subparsers.add_parser('bootloader') | 190 | bootloader = subparsers.add_parser('bootloader') |
190 | bootloader.add_argument('--append') | 191 | bootloader.add_argument('--append') |