#
# This program is licensed under the terms of the GNU GPL, version 3,
# a copy of which should be distributed with this program.
#
# This program is licensed under the terms of the GNU GPL, version 3,
# a copy of which should be distributed with this program.
if [[ ! -f $RLConfFile || $1 == "--force" ]] ; then
if [[ -f /etc/default/grub ]] ; then
# We want the default options used by the distribution, stored here....
if [[ ! -f $RLConfFile || $1 == "--force" ]] ; then
if [[ -f /etc/default/grub ]] ; then
# We want the default options used by the distribution, stored here....
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
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
- 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."
else
echo "Existing $RLConfFile found! Not overwriting!"
echo "To force overwriting, pass the --force option."