Fixing bash syntax errors in the generations-dir builder.
svn path=/nixos/trunk/; revision=18342
This commit is contained in:
parent
5cb52cc7cb
commit
e164ea4df8
@ -77,19 +77,19 @@ addEntry() {
|
|||||||
cp "$(readlink -f "$path/init")" /boot/nixos-init
|
cp "$(readlink -f "$path/init")" /boot/nixos-init
|
||||||
|
|
||||||
mkdir -p /boot/default
|
mkdir -p /boot/default
|
||||||
if [ -e /boot/default/system ];
|
if [ -e /boot/default/system ]; then
|
||||||
rm /boot/default/system
|
rm /boot/default/system
|
||||||
fi
|
fi
|
||||||
ln -sf $(readlink -f $path) /boot/default/system
|
ln -sf $(readlink -f $path) /boot/default/system
|
||||||
if [ -e /boot/default/init ];
|
if [ -e /boot/default/init ]; then
|
||||||
rm /boot/default/init
|
rm /boot/default/init
|
||||||
fi
|
fi
|
||||||
ln -sf $(readlink -f $path/init) /boot/default/init
|
ln -sf $(readlink -f $path/init) /boot/default/init
|
||||||
if [ -e /boot/default/initrd ];
|
if [ -e /boot/default/initrd ]; then
|
||||||
rm /boot/default/initrd
|
rm /boot/default/initrd
|
||||||
fi
|
fi
|
||||||
ln -sf $initrd /boot/default/initrd
|
ln -sf $initrd /boot/default/initrd
|
||||||
if [ -e /boot/default/kernel ];
|
if [ -e /boot/default/kernel ]; then
|
||||||
rm /boot/default/kernel
|
rm /boot/default/kernel
|
||||||
fi
|
fi
|
||||||
ln -sf $kernel /boot/default/kernel
|
ln -sf $kernel /boot/default/kernel
|
||||||
|
Loading…
Reference in New Issue
Block a user