Created
November 30, 2020 15:05
-
-
Save alexandregz/bf19e2b0666be80637c0699bda65ffe1 to your computer and use it in GitHub Desktop.
debian desatendida
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https://www.librebyte.net/despliegue-de-sistemas/como-instalar-debian-de-forma-automatica-o-desatendida/ | |
# a partir de passo 6, umah vez creado o pressed.cfg | |
chmod +w -R isofiles/install.amd/ | |
gunzip isofiles/install.amd/initrd.gz | |
echo preseed.cfg | cpio -H newc -o -A -F isofiles/install.amd/initrd | |
gzip isofiles/install.amd/initrd | |
chmod -w -R isofiles/install.amd/ | |
cd isofiles/ | |
chmod a+w md5sum.txt | |
md5sum `find -follow -type f` > md5sum.txt | |
chmod a-w md5sum.txt | |
cd .. | |
chmod a+w isofiles/isolinux/isolinux.bin | |
rm -f preseed-debian-10.6.0-amd64-netinst.iso | |
genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o preseed-debian-10.6.0-amd64-netinst.iso isofiles |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment