[Bug 1548120] Re: [xenial][initramfs-tools] support uppercase and lowercase uuids
Manoj Iyer
1548120 at bugs.launchpad.net
Sun Feb 21 21:38:16 UTC 2016
This patch fixes this issue. I tested the functionality of this function
by creating a script invoking this function as standalone.
$ sudo ./test.sh
+ resolve_device PARTUUID=275f782b-3c55-4b3f-acb2-c17db0eaee8d
+ DEV=PARTUUID=275f782b-3c55-4b3f-acb2-c17db0eaee8d
+ case "$DEV" in
+ case "$DEV" in
++ echo PARTUUID=275f782b-3c55-4b3f-acb2-c17db0eaee8d
++ cut -f 1 -d =
+ local type=PARTUUID
++ echo PARTUUID=275f782b-3c55-4b3f-acb2-c17db0eaee8d
++ tr '[:upper:]' '[:lower:]'
++ cut -f 2 -d =
+ local value=275f782b-3c55-4b3f-acb2-c17db0eaee8d
+ DEV=PARTUUID=275f782b-3c55-4b3f-acb2-c17db0eaee8d
+ command -v blkid
++ blkid -l -t PARTUUID=275f782b-3c55-4b3f-acb2-c17db0eaee8d -o device
+ DEV=/dev/sda2
+ '[' -e /dev/sda2 ']'
+ echo /dev/sda2
/dev/sda2
+ resolve_device PARTUUID=275F782B-3C55-4B3F-ACB2-C17DB0EAEE8D
+ DEV=PARTUUID=275F782B-3C55-4B3F-ACB2-C17DB0EAEE8D
+ case "$DEV" in
+ case "$DEV" in
++ echo PARTUUID=275F782B-3C55-4B3F-ACB2-C17DB0EAEE8D
++ cut -f 1 -d =
+ local type=PARTUUID
++ echo PARTUUID=275F782B-3C55-4B3F-ACB2-C17DB0EAEE8D
++ cut -f 2 -d =
++ tr '[:upper:]' '[:lower:]'
+ local value=275f782b-3c55-4b3f-acb2-c17db0eaee8d
+ DEV=PARTUUID=275f782b-3c55-4b3f-acb2-c17db0eaee8d
+ command -v blkid
++ blkid -l -t PARTUUID=275f782b-3c55-4b3f-acb2-c17db0eaee8d -o device
+ DEV=/dev/sda2
+ '[' -e /dev/sda2 ']'
+ echo /dev/sda2
/dev/sda2
** Patch added: "Patch to support uppercase and lowercase uuids"
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1548120/+attachment/4577459/+files/0001-Add-support-for-uppercase-and-lowercase-uuids.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1548120
Title:
[xenial][initramfs-tools] support uppercase and lowercase uuids
Status in initramfs-tools package in Ubuntu:
New
Bug description:
Initramfs tools does not support uppercase UUIDs. Initramfs-tools
script/functions uses blkid to determine the device name from
UUID/PARTUUID but if either of those are in uppercase blkid fails to
return the name.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1548120/+subscriptions
More information about the foundations-bugs
mailing list