X-Git-Url: https://code.delx.au/refind/blobdiff_plain/a927c00229adc84e4c1bb4e7bd36a42726ae4bba..86279b212c60cebaee4296d1b7848dd5514e4b56:/mkrlconf.sh diff --git a/mkrlconf.sh b/mkrlconf.sh index f7c1f59..0a5d307 100755 --- a/mkrlconf.sh +++ b/mkrlconf.sh @@ -18,6 +18,7 @@ # Revision history: # +# 0.7.7 -- Fixed bug that caused stray PARTUUID= and line breaks in generated file # 0.5.1 -- Initial release # # Note: mkrlconf.sh version numbers match those of the rEFInd package @@ -34,15 +35,15 @@ if [[ ! -f $RLConfFile || $1 == "--force" ]] ; then StartOfDevname=`echo $RootFS | cut -b 1-7` if [[ $StartOfDevname == "/dev/sd" || $StartOfDevName == "/dev/hd" ]] ; then # Identify root filesystem by UUID rather than by device node, if possible - Uuid=`blkid -o export $RootFS 2> /dev/null | grep UUID=` + Uuid=`blkid -o export -s UUID $RootFS 2> /dev/null | grep UUID=` if [[ -n $Uuid ]] ; then RootFS=$Uuid fi fi DefaultOptions="$GRUB_CMDLINE_LINUX $GRUB_CMDLINE_LINUX_DEFAULT" - echo "\"Boot with standard options\" \"ro root=$RootFS $DefaultOptions \"" > $RLConfFile - echo "\"Boot to single-user mode\" \"ro root=$RootFS $DefaultOptions single\"" >> $RLConfFile - echo "\"Boot with minimal options\" \"ro root=$RootFS\"" >> $RLConfFile + echo "\"Boot with standard options\" \"ro root=$RootFS $DefaultOptions \"" > $RLConfFile + echo "\"Boot to single-user mode\" \"ro root=$RootFS $DefaultOptions single\"" >> $RLConfFile + echo "\"Boot with minimal options\" \"ro root=$RootFS\"" >> $RLConfFile else echo "Existing $RLConfFile found! Not overwriting!" echo "To force overwriting, pass the --force option."