|
| 1 | +# Debian amd64 netinstall |
| 2 | +# https://www.debian.org |
| 3 | +# |
| 4 | +# see https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/ |
| 5 | +# DEBIAN_VERSION=13.2.0 # /!\ ADAPT accordingly |
| 6 | +# wget [...]/debian-$(DEBIAN_VERSION)-$(DEBIAN_ARCH)-netinst.iso' |
| 7 | +# wget [...]/SHA256SUMS' |
| 8 | +# wget [...]/SHA256SUMS.sign' |
| 9 | +# Collect the Debian GPG keys listed on https://www.debian.org/CD/verify" |
| 10 | +# gpg --keyserver keyring.debian.org --recv-keys 0x988021A964E6EA7D |
| 11 | +# gpg --keyserver keyring.debian.org --recv-keys 0xDA87E80D6294BE9B |
| 12 | +# gpg --keyserver keyring.debian.org --recv-keys 0x42468F4009EA8AC3 |
| 13 | +# Check files integrity: |
| 14 | +# gpg --verify SHA256SUMS SHA256SUMS.sign |
| 15 | +# sha256sum -c SHA256SUMS --ignore-missing |
| 16 | +# |
| 17 | +# Examples: debian-*-amd64-netinst.iso (* = version) |
| 18 | +# |
| 19 | +# Can also handle mini ISO downloaded from: |
| 20 | +# https://cdimage.debian.org/debian/dists/stable/main/installer-amd64/current/images/netboot/gtk/mini.iso |
| 21 | +# https://cdimage.debian.org/debian/dists/stable/main/installer-amd64/current/images/netboot/mini.iso |
| 22 | +# https://cdimage.debian.org/debian/dists/stable/main/installer-amd64/current/images/SHA256SUMS |
| 23 | +# In that case, download, check and rename 'mini.iso' to 'debian-*-amd64-mini.iso' (* = version) |
| 24 | +# Examples: debian-current-gtk-amd64-mini.iso, debian-current-amd64-mini.iso |
| 25 | + |
| 26 | +iso_pattern="debian-*-amd64-*.iso" |
| 27 | +grub_configfile="grub.cfg" |
| 28 | + |
| 29 | +for isofile in $iso_dir/$iso_pattern; do |
| 30 | + if [ -e "$isofile" ]; then |
| 31 | + regexp --set=isoname "$iso_dir/(.*)" "$isofile" |
| 32 | + |
| 33 | + menuentry "$isoname ($grub_configfile) ->" "$isofile" "$grub_configfile" { |
| 34 | + iso_path="$2" |
| 35 | + export iso_path |
| 36 | + LOOPBACK "$iso_path" |
| 37 | + root=(loop) |
| 38 | + configfile /boot/grub/$3 |
| 39 | + } |
| 40 | + fi |
| 41 | +done |
0 commit comments