updates for t11 and fsf
[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 exit 0
12
13 cat >$FAI_ROOT/etc/grub.d/40_custom <<EOF
14 #!/bin/sh
15 exec tail -n +3 \$0
16 # This file provides an easy way to add custom menu entries. Simply type the
17 # menu entries you want to add after this comment. Be careful not to change
18 # the 'exec tail' line above.
19
20 # https://www.coreboot.org/Serial_console # tty
21 # but removed unneeded stuff
22
23 serial --speed=115200
24 terminal_input --append serial
25 terminal_output --append serial
26 EOF