X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=config%2Frootfiles%2Fcore%2Ftest%2Fupdate.sh;h=e4fef10bb293935553990581948471d38a2f857e;hp=a531e912a27c02a592cd989d311625ab9b608a72;hb=925038e35d5f8a5f9dd5874deb22184d6d56fe1e;hpb=0108e6eeebe3a89455792f2faa93b90e3fab370c diff --git a/config/rootfiles/core/test/update.sh b/config/rootfiles/core/test/update.sh index a531e912a2..e4fef10bb2 100644 --- a/config/rootfiles/core/test/update.sh +++ b/config/rootfiles/core/test/update.sh @@ -140,7 +140,11 @@ fi # 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