removed docker script, moved to single script

This commit is contained in:
2025-10-24 14:14:47 +02:00
parent a88b84669b
commit 8b19927606
2 changed files with 2 additions and 10 deletions

View File

@@ -1,9 +0,0 @@
#!/usr/bin/env bash
apt-get update
apt-get install -y xorriso genisoimage
cd /root/unattended
ISONAME=$(ls | grep "netinst.iso" | sort | tail -n1 | sed 's/netinst/unattended/')
genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ${ISONAME} isofiles
chown 1000:1000 ${ISONAME}

View File

@@ -9,6 +9,7 @@ sed -i "s/ROOT_PASSWORD/${ROOT_PASSWORD}/" preseed.cfg
# Get the file name
ISONAME=$(ls | grep "netinst.iso" | sort | tail -n1)
UNAME=$(echo ${ISONAME} | sed 's/netinst/unattended/')
# Remove an already existing unattended iso of this same version, if existing
rm -f $(echo ${ISONAME} | sed 's/netinst/unattended/')
# Extract iso files
@@ -36,6 +37,6 @@ cd ..
# Repackage all the iso files
chmod a+w isofiles/isolinux/isolinux.bin
docker run --interactive --tty --rm --volume $(pwd):/root/unattended debian:buster /root/unattended/docker.sh
genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ${UNAME} isofiles
# Remove the extracted (temporary) files and the preseed with the plaintext password
sudo rm -rf isofiles preseed.cfg