setup-disk: add override for custom kernel boot parameters
I was looking for a way to append some kernel parameters on a new install and couldn't find a way to do this using the provided installation scripts, so I added a new parameter KERNELOPTS
which allows for setting these parameters.
Example usage:
# cat <<EOF > answerfile
DISKOPTS="-m sys -s 0 /dev/sda"
export KERNELOPTS="console=ttyS0,115200"
EOF
# setup-alpine -f answerfile
This will result in console=ttyS0,115200
being appended to the kernel command line at boot.