* Handle the case where initScriptBuilder is not set.

svn path=/nixos/trunk/; revision=19014
This commit is contained in:
Eelco Dolstra 2009-12-17 12:35:58 +00:00
parent 44dafe885b
commit 01491abbfa

View File

@ -45,12 +45,14 @@ if [ "$action" = "switch" -o "$action" = "boot" ]; then
fi fi
elif [ "@bootLoader@" = "generationsDir" ]; then elif [ "@bootLoader@" = "generationsDir" ]; then
@menuBuilder@ @out@ @menuBuilder@ @out@
else else
echo "Warning: don't know how to make this configuration bootable; please enable a boot loader." 1>&2 echo "Warning: don't know how to make this configuration bootable; please enable a boot loader." 1>&2
fi fi
@initScriptBuilder@ @out@ if [ -n "@initScriptBuilder@" ]; then
@initScriptBuilder@ @out@
fi
fi fi
# Activate the new configuration. # Activate the new configuration.