diff --git a/README.md b/README.md index 9a575fd..c1596eb 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,15 @@ Explication : The loop option of mount (it's not a type, it's an option) tells m - Then we dismantle everything in ```/mnt``` - Finally we delete the iso present in the /mnt directory +- GET non-free-firmwares for DEBIAN: +```bash +# cd to the directory where you have your initrd +cd /tftpboot/debian-installer/amd64 +cp -p initrd.gz initrd.gz.orig +wget https://cdimage.debian.org/cdimage/firmware/stable/current/firmware.cpio.gz +cat initrd.gz.orig firmware.cpio.gz > initrd.gz +``` + ## TO DO - [ ] distribs versions in .env diff --git a/trixie_preseed.cfg b/trixie_preseed.cfg index f8bce70..287c55f 100644 --- a/trixie_preseed.cfg +++ b/trixie_preseed.cfg @@ -148,6 +148,13 @@ d-i partman/confirm_nooverwrite boolean true # (default: false). d-i apt-setup/cdrom/set-first boolean false # You can choose to install non-free firmware. +# Enable non-free firmware automatically +d-i apt-setup/non-free-firmware boolean true +d-i apt-setup/non-free boolean true +d-i apt-setup/contrib boolean true + +# Allow firmware loading without prompting +d-i hw-detect/load_firmware boolean true ### Package selection #tasksel tasksel/first multiselect standard, web-server, kde-desktop @@ -188,35 +195,6 @@ d-i grub-installer/with_other_os boolean true # To install to the primary device (assuming it is not a USB stick): d-i grub-installer/bootdev string default -### Finishing up the installation -d-i preseed/late_command string \ - # Crée le dossier et clone le dépôt - in-target mkdir -p /home/visiteur/postinstall; \ - in-target git clone https://git.legaragenumerique.fr/GARAGENUM/trixie-gn-postinstall.git /home/visiteur/postinstall; \ - in-target chmod +x /home/visiteur/postinstall/post_install_trixie.sh; \ - \ - # Crée le service systemd pour exécuter le script sur tty1 au premier boot - in-target bash -c 'echo "[Unit]" > /etc/systemd/system/postinstall.service'; \ - in-target bash -c 'echo "Description=Post-install configuration script" >> /etc/systemd/system/postinstall.service'; \ - in-target bash -c 'echo "After=systemd-user-sessions.service" >> /etc/systemd/system/postinstall.service'; \ - in-target bash -c 'echo "Before=getty@tty1.service" >> /etc/systemd/system/postinstall.service'; \ - \ - in-target bash -c 'echo "[Service]" >> /etc/systemd/system/postinstall.service'; \ - in-target bash -c 'echo "Type=simple" >> /etc/systemd/system/postinstall.service'; \ - in-target bash -c 'echo "ExecStart=/bin/bash -c \"chvt 1; exec /bin/bash /home/visiteur/postinstall/post_install_trixie.sh\"" >> /etc/systemd/system/postinstall.service'; \ - in-target bash -c 'echo "StandardInput=tty" >> /etc/systemd/system/postinstall.service'; \ - in-target bash -c 'echo "StandardOutput=inherit" >> /etc/systemd/system/postinstall.service'; \ - in-target bash -c 'echo "TTYPath=/dev/tty1" >> /etc/systemd/system/postinstall.service'; \ - in-target bash -c 'echo "TTYReset=yes" >> /etc/systemd/system/postinstall.service'; \ - in-target bash -c 'echo "TTYVHangup=yes" >> /etc/systemd/system/postinstall.service'; \ - in-target bash -c 'echo "TTYVTDisallocate=yes" >> /etc/systemd/system/postinstall.service'; \ - \ - in-target bash -c 'echo "[Install]" >> /etc/systemd/system/postinstall.service'; \ - in-target bash -c 'echo "WantedBy=multi-user.target" >> /etc/systemd/system/postinstall.service'; \ - \ - # Active le service pour qu’il s’exécute au redémarrage - in-target systemctl enable postinstall.service - #d-i debian-installer/exit/halt boolean true # This will power off the machine instead of just halting it. d-i debian-installer/exit/poweroff boolean true