summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/ksparser.py
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo@ribalda.com>2020-03-04 15:49:36 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-06 16:45:11 +0100
commit242412656b8c7bd684ebca3da71a0d07cd69a830 (patch)
treee10056b9511ec1b845e639ee61b1d832b07ba2a0 /scripts/lib/wic/ksparser.py
parent6bac089383d725793485ab559209a1bbcaf2719e (diff)
downloadpoky-242412656b8c7bd684ebca3da71a0d07cd69a830.tar.gz
wic: Add --embed-rootfs argument
This option adds the content of a rootfs on a specific location on the rootfs. It is very useful for making a partition that contains the rootfs for a host and a target Eg: / -> Roofs for the host /export/ -> Rootfs for the target (which will netboot) Although today we support making a partition for "/export" this might not be compatible with some upgrade systems, or we might be limited by the number of partitions. With this patch we can use something like: part / --source rootfs --embed-rootfs target-image /export --embed-rootfs target-image2 /export2 on the .wks file. (From OE-Core rev: efdcf94801f6abe8e4099e324d9a3deccd8d4384) Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
index 650b976223..64c8c1175e 100644
--- a/scripts/lib/wic/ksparser.py
+++ b/scripts/lib/wic/ksparser.py
@@ -138,6 +138,7 @@ class KickStart():
138 part.add_argument('--align', type=int) 138 part.add_argument('--align', type=int)
139 part.add_argument('--exclude-path', nargs='+') 139 part.add_argument('--exclude-path', nargs='+')
140 part.add_argument('--include-path', nargs='+') 140 part.add_argument('--include-path', nargs='+')
141 part.add_argument('--embed-rootfs', nargs=2, action='append')
141 part.add_argument("--extra-space", type=sizetype) 142 part.add_argument("--extra-space", type=sizetype)
142 part.add_argument('--fsoptions', dest='fsopts') 143 part.add_argument('--fsoptions', dest='fsopts')
143 part.add_argument('--fstype', default='vfat', 144 part.add_argument('--fstype', default='vfat',