From: Patrick Ohly Date: Thu, 3 Sep 2015 18:42:33 +0000 (+0200) Subject: boot-directdisk.bbclass: use rootfs UUID by default X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~29056 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ca8e2e5bf4a9f01dc48300149a8e1d71d715400;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git boot-directdisk.bbclass: use rootfs UUID by default This changes the default SYSLINUX_ROOTFS such that the rootfs is no longer expected under a fixed device path. Instead, the UUID is used to find it. This makes the resulting .hdddirect (and thus also the vdi/vdmk/qcow2 images derived from that) more flexible. Signed-off-by: Patrick Ohly Signed-off-by: Richard Purdie --- diff --git a/meta/classes/boot-directdisk.bbclass b/meta/classes/boot-directdisk.bbclass index 600e21abcfe..7cb0ab071f9 100644 --- a/meta/classes/boot-directdisk.bbclass +++ b/meta/classes/boot-directdisk.bbclass @@ -60,7 +60,7 @@ inherit ${EFI_CLASS} AUTO_SYSLINUXCFG = "1" DISK_SIGNATURE ?= "${DISK_SIGNATURE_GENERATED}" -SYSLINUX_ROOT ?= "root=/dev/sda2" +SYSLINUX_ROOT ?= "root=UUID=<>" SYSLINUX_TIMEOUT ?= "10" IS_VM = '${@bb.utils.contains_any("IMAGE_FSTYPES", ["vmdk", "vdi", "qcow2"], "true", "false", d)}'