]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Updater: Fix grub entry if root has no UUID.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 6 Sep 2010 22:11:19 +0000 (00:11 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 6 Sep 2010 22:11:19 +0000 (00:11 +0200)
config/rootfiles/core/test/update.sh

index a531e912a27c02a592cd989d311625ab9b608a72..e4fef10bb293935553990581948471d38a2f857e 100644 (file)
@@ -140,7 +140,11 @@ fi
 #
 echo
 echo Update grub configuration ...
 #
 echo
 echo Update grub configuration ...
-sed -i "s|ROOT|UUID=$ROOTUUID|g" /boot/grub/grub.conf
+if [ ! -z $ROOTUUID ]; then
+       sed -i "s|ROOT|UUID=$ROOTUUID|g" /boot/grub/grub.conf
+else
+       sed -i "s|ROOT|$ROOT|g" /boot/grub/grub.conf
+fi
 sed -i "s|KVER|$KVER|g" /boot/grub/grub.conf
 sed -i "s|MOUNT|$MOUNT|g" /boot/grub/grub.conf
 
 sed -i "s|KVER|$KVER|g" /boot/grub/grub.conf
 sed -i "s|MOUNT|$MOUNT|g" /boot/grub/grub.conf