Comment 3 for bug 1079185

Revision history for this message
Tryum (tryum) wrote : Re: [Bug 1079185] Re: Wrong bootarg for disk with label

I'm really no expert in command line in linux, but this command above
gives me the label of the drive.

If i skip the 'head -1',

this is what i get :

thibault@panda12-10:~$ sudo blkid -o value $(mount | grep "on /${1%/}
" | tail -n1 | cut -d' ' -f1)
ubuntu2
9888f422-c54a-418e-884f-8e9b26aacd2a
ext2

On Fri, Nov 16, 2012 at 1:35 PM, Oliver Grawert <email address hidden> wrote:
> hmm, i cant see any issues in the logs, flash-kernel-installer is
> supposed to use:
>
> blkid -o value $(mount | grep "on /${1%/} " | tail -n1 | cut -d' ' -f1)
> | head -1
>
> for setting root= at the very end of the install, this should actually
> return the proper UUID instead of a label.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1079185
>
> Title:
> Wrong bootarg for disk with label
>
> Status in “flash-kernel” package in Ubuntu:
> New
>
> Bug description:
> I just installed Ubuntu 12.10 on a pandaboard.
>
> At the installation, I selected an empty partition named "ubuntu2" et
> checked the box for formating.
>
> After the installation process, at the first boot, rootfs couldn't be
> mounted : the bootarg was "root=UUID=ubuntu2"
>
> So I changed the preEnv.txt on my computer to "root=LABEL=ubuntu2" but
> sill couldn't boot, as the label was erased during format process.
>
> I fixed it thanks to busybox by putting back label "ubuntu2" to my
> /dev/sda2 partition.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/1079185/+subscriptions

--
Thibault Jochem
Software Engineer
EFREI Promo 2007