Changed GRUB failure backups a bit after testing

svn path=/nixos/trunk/; revision=10108
This commit is contained in:
Michael Raskin 2008-01-10 05:50:58 +00:00
parent 99a2f550c0
commit ad2ecc2cb5
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ addEntry() {
cp "$initrd" /boot/nixos-initrd
cp "$(readlink -f "$path/init")" /boot/nixos-init
cat > /boot/nixos-grub-config <<EOF
kernel ${bootMount:-/boot}/nixos-kernel systemConfig=$(readlink -f "$path") init=${bootMount:-/boot}/nixos-init $(cat "$path/kernel-params")
title Emergency boot
kernel ${bootMount:-/boot}/nixos-kernel systemConfig=$(readlink -f "$path") init=/boot/nixos-init $(cat "$path/kernel-params")
initrd ${bootMount:-/boot}/nixos-initrd
EOF
fi