Fixing the init= in raspberrypi loader.
This commit is contained in:
parent
fe85f4be6c
commit
2c27a41686
@ -77,7 +77,7 @@ addEntry() {
|
|||||||
copyForced $kernel /boot/kernel.img
|
copyForced $kernel /boot/kernel.img
|
||||||
# copyForced $initrd /boot/initrd
|
# copyForced $initrd /boot/initrd
|
||||||
cp "$(readlink -f "$path/init")" /boot/nixos-init
|
cp "$(readlink -f "$path/init")" /boot/nixos-init
|
||||||
cp $path/kernel-params /boot/cmdline.txt
|
echo "`cat $path/kernel-params` init=$path/init" >/boot/cmdline.txt
|
||||||
|
|
||||||
echo "$2" > /boot/defaultgeneration
|
echo "$2" > /boot/defaultgeneration
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user