You've already forked debian-unattended
removed docker script, moved to single script
This commit is contained in:
@@ -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}
|
|
||||||
@@ -9,6 +9,7 @@ sed -i "s/ROOT_PASSWORD/${ROOT_PASSWORD}/" preseed.cfg
|
|||||||
|
|
||||||
# Get the file name
|
# Get the file name
|
||||||
ISONAME=$(ls | grep "netinst.iso" | sort | tail -n1)
|
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
|
# Remove an already existing unattended iso of this same version, if existing
|
||||||
rm -f $(echo ${ISONAME} | sed 's/netinst/unattended/')
|
rm -f $(echo ${ISONAME} | sed 's/netinst/unattended/')
|
||||||
# Extract iso files
|
# Extract iso files
|
||||||
@@ -36,6 +37,6 @@ cd ..
|
|||||||
|
|
||||||
# Repackage all the iso files
|
# Repackage all the iso files
|
||||||
chmod a+w isofiles/isolinux/isolinux.bin
|
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
|
# Remove the extracted (temporary) files and the preseed with the plaintext password
|
||||||
sudo rm -rf isofiles preseed.cfg
|
sudo rm -rf isofiles preseed.cfg
|
||||||
|
|||||||
Reference in New Issue
Block a user