diff options
| author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-01-27 22:15:34 +0100 |
|---|---|---|
| committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-01-27 22:16:02 +0100 |
| commit | d6a9338127a585c4cc2f8cf7f04b2885fed26de6 (patch) | |
| tree | 10daaa2326aedbfe598b8bad7e9eaa7b70c295b9 | |
| parent | 929a85088112e3c39aa24035073b4bf7660b7adf (diff) | |
| download | debian-edu-fai+itzks-d6a9338127a585c4cc2f8cf7f04b2885fed26de6.tar.gz debian-edu-fai+itzks-d6a9338127a585c4cc2f8cf7f04b2885fed26de6.tar.bz2 debian-edu-fai+itzks-d6a9338127a585c4cc2f8cf7f04b2885fed26de6.zip | |
bin/debian-edu-faiinstall: Adjust installation of TFTP configuration files. Place files into /srv/tftp/ltsp to match Debian Edu 11 LDAP/DHCP settings.
| -rwxr-xr-x | bin/debian-edu-faiinstall | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/bin/debian-edu-faiinstall b/bin/debian-edu-faiinstall index 3c03f3e..2c75f60 100755 --- a/bin/debian-edu-faiinstall +++ b/bin/debian-edu-faiinstall @@ -88,7 +88,26 @@ if [ -f /etc/debian-edu/faiinstall.conf ] ; then . /etc/debian-edu/faiinstall.conf fi -mkdir -p "${tftpdir}/debian-edu-fai/" +# keep a copy of /srv/tftp/ltsp if this is the first attempt to deploy +# debian-edu-fai on this system +if [ ! -h "${tftpdir}/debian-edu-fai" ]; then + mv "${tftpdir}/ltsp" "${tftpdir}/ltsp.moved-aside-by-debian-edu-fai" +fi + +# For Debian Edu, we will create the FAI tftp boot dir in subfolder ltsp/. +mkdir -p "${tftpdir}/ltsp/" +# and symlink that to what really is inside... +ln -nsf "ltsp" "${tftpdir}/debian-edu-fai" + +# Start from a clean state after any configuration changes have been made. +rm -f $tftpdir/ltsp/fai-installers.cfg.~ +rm -f $tftpdir/ltsp/fai-menuitems.cfg.~ +rm -f $tftpdir/ltsp/debian-edu-fai.ipxe +rm -f $tftpdir/ltsp/ltsp.ipxe +rm -f $tftpdir/ltsp/memtest* +rm -f $tftpdir/ltsp/snponly.efi +rm -f $tftpdir/ltsp/undionly.kpxe + # prepare menufile creation (always start fresh) menuitems=${tftpdir}/debian-edu-fai/fai-menuitems.cfg menuindex=1 @@ -287,16 +306,6 @@ done ### TFTP / iPXE Setup ### -# Start from a clean state after any configuration changes have been made. -if [ -d $tftpdir/debian-edu-fai ] ; then - rm -f $tftpdir/debian-edu-fai/debian-edu-fai.png - rm -f $tftpdir/debian-edu-fai/fai-install.cfg - rm -f $tftpdir/debian-edu-fai/debian-edu-fai.ipxe -fi - -[ -d $tftpdir ] || mkdir $tftpdir -[ -d $tftpdir/debian-edu-fai ] || mkdir $tftpdir/debian-edu-fai - if [ ! -z "$theme" ] ; then cp /usr/share/pixmaps/$theme-syslinux.png $tftpdir/debian-edu/debian-edu-fai.png fi |
