Allow custom root labels

Makes the localboot element aware of the custom root fs labels
added in I596104d1a63b5dc6549e8460a1ae3da00165ef04 for
diskimage-builder.  That change must merge before this one.

Change-Id: Ic89379eca8699b27a4b89de9da3fc4f56011963e
This commit is contained in:
Ben Nemec 2014-09-16 13:27:49 -05:00
parent cca1095c89
commit 407a99f063
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ if [ -f $BOOTDIR/grub/grub.conf ] ; then
for parm in $kernel_parms ; do
case $parm in
root=*)
sed -i "s,${parm#root=},LABEL=cloudimg-rootfs,g" $BOOTDIR/grub/grub.conf
sed -i "s,${parm#root=},LABEL=${DIB_ROOT_LABEL},g" $BOOTDIR/grub/grub.conf
;;
/boot/vmlinuz-*)
KERNEL_VERSION=${KERNEL#vmlinuz-}