X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FD16%2F12-d16;fp=fai%2Fconfig%2Fscripts%2FD16%2F12-d16;h=df3cd5cea42ecf4868a1e99f23f3cd7657abe66b;hp=0000000000000000000000000000000000000000;hb=14f283f82afc48d6cec1bb7498ec34ac2b0da77c;hpb=bd3227e34e549257fee819cf6bd50fe202ca7996 diff --git a/fai/config/scripts/D16/12-d16 b/fai/config/scripts/D16/12-d16 new file mode 100755 index 0000000..df3cd5c --- /dev/null +++ b/fai/config/scripts/D16/12-d16 @@ -0,0 +1,24 @@ +#!/bin/bash -x + +set -eE -o pipefail +trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR + +if [[ $EUID != 0 ]]; then + echo "$0: error: expected to be root." + exit 1 +fi + +cat >$FAI_ROOT/etc/grub.d/40_custom <