/usr/share/debian-lan-config/fai/config/scripts/DISKLESS_CLIENT/10-misc is in debian-lan-config 0.23.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #!/bin/bash
#
# Compare with the corresponding FAIBASE script.
#
set -e
fcopy -Mv /etc/hosts
## use hostname offered by dhcp server:
rm -fv $target/etc/hostname
## fetch template and fill in nameserver's IP address:
fcopy -Mv /etc/resolv.conf
IP=`host ns | tail -n 1 | awk '{print $NF}'`
sed -i "s/NAMESERVER/$IP/" $target/etc/resolv.conf
## timezone
echo $TIMEZONE > $target/etc/timezone
cp -f /usr/share/zoneinfo/${TIMEZONE} $target/etc/localtime
# create keyboard layout table
$ROOTCMD bash -c "echo 'console-data console-data/keymap/full select $KEYMAP' | debconf-set-selections"
$ROOTCMD install-keymap $KEYMAP || true
## Configure PAM to add users to the dialout group:
ainsl -q /etc/security/group.conf "*;*;*;Al0000-2400;dialout"
ainsl -q /etc/pam.d/common-auth "auth optional pam_group.so"
## Choose the default desktop:
#$ROOTCMD update-alternatives --set x-session-manager /usr/bin/startlxde
#$ROOTCMD update-alternatives --set x-session-manager /usr/bin/xfce4-session
|