[oe-commits] Patrick Ohly : boot-directdisk.bbclass: use rootfs UUID by default

git at git.openembedded.org git at git.openembedded.org
Fri Sep 4 16:43:40 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 1b60a5926636f55b72c8ae9323af57ae5482c600
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1b60a5926636f55b72c8ae9323af57ae5482c600

Author: Patrick Ohly <patrick.ohly at intel.com>
Date:   Thu Sep  3 20:42:33 2015 +0200

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 <patrick.ohly at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/boot-directdisk.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/boot-directdisk.bbclass b/meta/classes/boot-directdisk.bbclass
index 600e21a..7cb0ab0 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=<<uuid-of-rootfs>>"
 SYSLINUX_TIMEOUT ?= "10"
 
 IS_VM = '${@bb.utils.contains_any("IMAGE_FSTYPES", ["vmdk", "vdi", "qcow2"], "true", "false", d)}'



More information about the Openembedded-commits mailing list