change partitioning to use lvm, refactor for fsf server
[automated-distro-installer] / fai / config / scripts / D16 / 12-d16
1 #!/bin/bash -x
2
3 set -eE -o pipefail
4 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
5
6 if [[ $EUID != 0 ]]; then
7 echo "$0: error: expected to be root."
8 exit 1
9 fi
10
11 cat >$FAI_ROOT/etc/grub.d/40_custom <<EOF
12 #!/bin/sh
13 exec tail -n +3 \$0
14 # This file provides an easy way to add custom menu entries. Simply type the
15 # menu entries you want to add after this comment. Be careful not to change
16 # the 'exec tail' line above.
17
18 # https://www.coreboot.org/Serial_console # tty
19 # but removed unneeded stuff
20
21 serial --speed=$speed
22 terminal_input --append serial
23 terminal_output --append serial
24 EOF