[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#801154: [PATCH initramfs-tools 1/2] scripts/functions: Use blkid to resolve LABEL= and UUID= block device IDs



On Thu, Dec 10, 2015 at 2:27 PM, Robert Nelson <robertcnelson@gmail.com> wrote:
> On Wed, Dec 9, 2015 at 12:35 PM, Ben Hutchings <ben@decadent.org.uk> wrote:
>> This is a preparatory patch for fixing #801154.
>>
>> Ben.
>> ---
>> This means we will deal correctly with various other characters than
>> '/' that also need to be escaped.
>>
>> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
>
> Looks good so far on my beaglebone black
>
> no regression with Jessie:
>
> debian@beaglebone:~$ blkid
> /dev/mmcblk0p1: LABEL="BOOT"
> UUID="50cd58f9-a769-4f14-b2b1-9f41bb2bb507" TYPE="ext4"
>
> debian@beaglebone:~$ cat /proc/cmdline
> console=ttyO0,115200n8 root=UUID=50cd58f9-a769-4f14-b2b1-9f41bb2bb507
> ro rootfstype=ext4 rootwait
>
> debian@beaglebone:~$ cat /proc/cmdline
> console=ttyO0,115200n8 root=LABEL=BOOT ro rootfstype=ext4 rootwait
>
> For Stretch/sid, i need to rebuild the eMMC/rootfs with stretch's
> sfdisk and with gpt enabled so i can can get a partuuid

And tested on Stretch/Sid:

Stretch: BeagleBone Black + gpt partitioned mmc

debian@arm:~$ sudo blkid
/dev/mmcblk0p1: LABEL="rootfs"
UUID="27a1bbfa-c648-4d86-ad30-b7169527ac36" TYPE="ext4"
PARTUUID="0d9b735f-9ffe-4058-85d8-0af6eb0a901e"
/dev/mmcblk0: PTUUID="aa80930d-d880-4e30-9240-19e78863e112" PTTYPE="gpt"

debian@arm:~$ cat /proc/cmdline
console=ttyO0,115200n8 root=UUID=27a1bbfa-c648-4d86-ad30-b7169527ac36
ro rootfstype=ext4 rootwait

debian@arm:~$ cat /proc/cmdline
console=ttyO0,115200n8 root=LABEL=rootfs ro rootfstype=ext4 rootwait

debian@arm:~$ cat /proc/cmdline
console=ttyO0,115200n8
root=PARTUUID=0d9b735f-9ffe-4058-85d8-0af6eb0a901e ro rootfstype=ext4
rootwait

Looks good!!

Thanks!!!

-- 
Robert Nelson
https://rcn-ee.com/


Reply to: