summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/canned-wks/common.wks.inc
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-07-28 20:14:33 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-30 08:45:13 +0100
commit8a58e9bb3e76a9962f1d14a8bdd3f7de675c3492 (patch)
tree03c4af94078dd1c209b79c065177e25145e22f79 /scripts/lib/wic/canned-wks/common.wks.inc
parent929ba563f1bc7195c4981b8e139c432b2cc388ea (diff)
downloadopenembedded-core-contrib-8a58e9bb3e76a9962f1d14a8bdd3f7de675c3492.tar.gz
wic: Switch to using --use-uuid by default
The most portable way to specifiy a root device in a disk image that we create is to use PARTUUID rather than /dev/sda2. As background, both GPT and MBR tables provide valid UUID values for each partition and the Linux Kernel contains the logic to parse this value. With this change we can now boot the default disk images when used as any valid block device that the included kernel uses. This for example means that VirtualBox can be used to run vmdk without changes as it uses IDE for the virtual disk controller. Cc: Matt Porter <mporter@konsulko.com> Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/canned-wks/common.wks.inc')
-rw-r--r--scripts/lib/wic/canned-wks/common.wks.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/canned-wks/common.wks.inc b/scripts/lib/wic/canned-wks/common.wks.inc
index 5cf2fd1f3e..89880b417b 100644
--- a/scripts/lib/wic/canned-wks/common.wks.inc
+++ b/scripts/lib/wic/canned-wks/common.wks.inc
@@ -1,3 +1,3 @@
# This file is included into 3 canned wks files from this directory
part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024
-part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024
+part / --source rootfs --use-uuid --fstype=ext4 --label platform --align 1024