Files
fastrabbit/common/create-iso-preseed
2026-04-16 21:50:53 +03:00
..
2026-04-16 21:50:53 +03:00
2026-04-16 21:50:53 +03:00
2026-04-16 21:50:53 +03:00

Create Debian netinstall iso with my preseed

Install apt install xorriso

mkdir -p iso-deb13/boot/grub

Create file iso-deb13/boot/grub/grub.cfg

#set default=0
#set timeout=5

menuentry 'Debian GNU/Linux 13 (trixie) network install' --class os {
insmod gzio
insmod part_msdos
linux /boot/linux vga=788 ipv6.disable=1 auto=true netcfg/dhcp_timeout=30 priority=critical locale=en_US preseed/url=http://aassdd.ru/.my-preseed/debian/preseed.cfg ---
initrd /boot/initrd.gz
# linux /casper/vmlinuz autoinstall root=/dev/ram0 cloud-config-url=/dev/null ip=dhcp ipv6.disable=1 "ds=nocloud;s=http://lin-repo.domain.local/.preseed/ubuntu-24/" url=http://lin-repo.domain.local/.iso/ubuntu-24.04-live-server-amd64.iso ---
# initrd /casper/initrd
}

Put linux and initrd.gz to iso-deb13/boot/

grub-mkrescue -o debian-13-my-preseed-amd64.iso iso-deb13



File create-iso-preseed.sh for use common Debian repo

File create-iso-preseed-LOrepo.sh for use local repo server




For add preseed.cfg in initrd.gz [ preseed/file=/preseed.cfg ]

mkdir /000/root
cd /000/root
gzip -dc ../initrd.gz | cpio -idmv

[ cp preseed.cfg to /000/root ]

find . | cpio -H newc -o | gzip -9 > ../initrd-my.gz