[oe-commits] [openembedded-core] 35/50: systemd-bootdisk.wks: use PARTUUID

git at git.openembedded.org git at git.openembedded.org
Tue Nov 15 15:21:07 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 5b73d5f484cc844affe91ec19d881d42e187f30c
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Mon Oct 24 16:54:41 2016 +0300

    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 partiion 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: Ross Burton <ross.burton at intel.com>
---
 scripts/lib/wic/canned-wks/systemd-bootdisk.wks | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/canned-wks/systemd-bootdisk.wks b/scripts/lib/wic/canned-wks/systemd-bootdisk.wks
index b900023..4bd9d6a 100644
--- a/scripts/lib/wic/canned-wks/systemd-bootdisk.wks
+++ b/scripts/lib/wic/canned-wks/systemd-bootdisk.wks
@@ -4,7 +4,7 @@
 
 part /boot --source bootimg-efi --sourceparams="loader=systemd-boot" --ondisk sda --label msdos --active --align 1024
 
-part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024
+part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid
 
 part swap --ondisk sda --size 44 --label swap1 --fstype=swap
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list