* Handle the case where there is no GRUB 1 splash image.

svn path=/nixos/trunk/; revision=33830
This commit is contained in:
Eelco Dolstra 2012-04-18 14:28:30 +00:00
parent 6f646750cf
commit cb74284b75

View File

@ -45,13 +45,13 @@ fi
prologue() {
case "$grubVersion" in
1)
cp -f "@splashImage@" /boot/background.xpm.gz
cat > "$1" << GRUBEND
# Automatically generated. DO NOT EDIT THIS FILE!
default @default@
timeout @timeout@
GRUBEND
if test -n "@splashImage@"; then
if [ -n "@splashImage@" ]; then
cp -f "@splashImage@" /boot/background.xpm.gz
echo "splashimage $bootRoot/background.xpm.gz" >> "$1"
fi
;;
@ -147,7 +147,7 @@ copyToKernelsDir() {
# kernels or initrd if this script is ever interrupted.
if ! test -e $dst; then
local dstTmp=$dst.tmp.$$
cp $src $dstTmp
cp "$src" "$dstTmp"
mv $dstTmp $dst
fi
filesCopied[$dst]=1