path: root/scripts
diff options
authorJianxun Zhang <jianxun.zhang@linux.intel.com>2016-10-31 17:02:02 -0700
committerSaul Wold <sgw@linux.intel.com>2016-11-01 08:23:15 -0700
commit9373044911df5eca470217f5c93e92c17793b319 (patch)
tree1aca3781aa1f05ef55b4ee677243a1092d38fd6c /scripts
parent8bad3a5c04154332f44d41900a1de9ec0b9167e5 (diff)
quark: use UUID for rootfs
Port the change http://lists.openembedded.org/pipermail/ openembedded-core/2016-October/127948.html into wks files in meta-intel. Note: This patch has not been on OE master branch at this point. Original commit message: ---------------------------------- systemd-bootdisk.wks: use PARTUUID Root device name in systemd-bootdisk.wks is 'sda'. This can cause images, produced using this wks to refuse booting if real device name is not 'sda'. For example, when booting MinnowBoard MAX from MicroSD card the boot process stucks with this message on the boot console output: Waiting for root device /dev/sda2... This happens because real device name of MicroSD card on this device is mmcblk1. Used --use-uuid option for root partition. This should make wic to put partition UUID instead of device name into kernel command line. [YOCTO #10485] Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com> ---------------------------------- Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'scripts')
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/canned-wks/galileodisk-sd.wks b/scripts/lib/wic/canned-wks/galileodisk-sd.wks
index e03c2f88..6d96af42 100644
--- a/scripts/lib/wic/canned-wks/galileodisk-sd.wks
+++ b/scripts/lib/wic/canned-wks/galileodisk-sd.wks
@@ -4,6 +4,6 @@
part /boot --source bootimg-efi --sourceparams="loader=systemd-boot" --ondisk mmcblk0 --label msdos --active --align 1024
-part / --source rootfs --ondisk mmcblk0 --fstype=ext3 --label platform --align 1024
+part / --source rootfs --ondisk mmcblk0 --fstype=ext3 --label platform --align 1024 --use-uuid
bootloader --timeout=0 --append="console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x9000b000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5"
diff --git a/scripts/lib/wic/canned-wks/galileodisk-usb.wks b/scripts/lib/wic/canned-wks/galileodisk-usb.wks
index b721c951..d746cc8d 100644
--- a/scripts/lib/wic/canned-wks/galileodisk-usb.wks
+++ b/scripts/lib/wic/canned-wks/galileodisk-usb.wks
@@ -4,6 +4,6 @@
part /boot --source bootimg-efi --sourceparams="loader=systemd-boot" --ondisk sda --label msdos --active --align 1024
-part / --source rootfs --ondisk sda --fstype=ext3 --label platform --align 1024
+part / --source rootfs --ondisk sda --fstype=ext3 --label platform --align 1024 --use-uuid
bootloader --timeout=0 --append="rootwait console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x9000b000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5"