Hello all ! I have some issue with a debian preseed where I am using a local repository for the packages, when I do not use the local repository, the unattended installation finishes successfully using deb.debian.org, but when I just change the preseed file to use the local repository, it says there is no root filesystem for the partitioning step of the installer it tells me that there is no root filesystem, I can see that the disk is not detected, does anyone have an idea on how to resolve this ?
I am using cobbler 3.3.3
I used the netboot.tar.gz file from here http://http.us.debian.org/debian/dists/ ... s/netboot/
I used the latest iso for importing the distro https://cdimage.debian.org/debian-cd/cu ... 4/iso-dvd/
/srv/tftpboot/debian/debian-installer/amd64/initrd.gz and linux are copied from the netboot file
Here is my preseed file:
Please do not hesitate if you need any further information. Thanks!
I am using cobbler 3.3.3
I used the netboot.tar.gz file from here http://http.us.debian.org/debian/dists/ ... s/netboot/
Code:
# cobbler list distros: auto-deb-x86_64 pxe-default-imageprofiles: auto-deb-x86_64 pxe-default-profilesystems: default auto-vmrepos: auto-deb-x86_64
Code:
# cobbler distro report --name auto-deb-x86_64Name : auto-deb-x86_64Architecture : x86_64Automatic Installation Template Metadata : {}TFTP Boot Files : {}Boot loaders : <<inherit>>Breed : debianComment : Fetchable Files : {}Initrd : /srv/tftpboot/debian/debian-installer/amd64/initrd.gzKernel : /srv/tftpboot/debian/debian-installer/amd64/linuxKernel Options : {}Kernel Options (Post Install) : {}Management Classes : []OS Version : bookwormOwners : <<inherit>>Redhat Management Key : <<inherit>>Remote Boot Initrd : Remote Boot Kernel : Template Files : {}
Code:
# cobbler profile report --name auto-deb-x86_64Name : auto-deb-x86_64Automatic Installation Template : debian-12.seedAutomatic Installation Metadata : <<inherit>>TFTP Boot Files : <<inherit>>Boot loaders : <<inherit>>Comment : DHCP Tag : Distribution : auto-deb-x86_64Enable iPXE? : FalseEnable PXE Menu? : TrueFetchable Files : <<inherit>>DHCP Filename Override : Kernel Options : <<inherit>>Kernel Options (Post Install) : <<inherit>>Parent boot menu : Management Classes : <<inherit>>Management Parameters : <<inherit>>Name Servers : []Name Servers Search Path : []Next Server (IPv4) Override : <<inherit>>Next Server (IPv6) Override : <<inherit>>Owners : <<inherit>>Parent Profile : Proxy : <<inherit>>Red Hat Management Key : <<inherit>>Repos : ['auto-deb-x86_64']Server Override : <<inherit>>Template Files : {}Virt Auto Boot : TrueVirt Bridge : <<inherit>>Virt CPUs : 1Virt Disk Driver Type : rawVirt File Size(GB) : <<inherit>>Virt Path : Virt RAM (MB) : <<inherit>>Virt Type : kvm
Code:
# cobbler repo report --name auto-deb-x86_64Name : auto-deb-x86_64Apt Components (apt only) : ['main', 'universe']Apt Dist Names (apt only) : ['bookworm', 'bookworm-updates', 'bookworm-security']Arch : x86_64Breed : rsyncComment : Createrepo Flags : <<inherit>>Environment Variables : {}Keep Updated : TrueMirror : /mnt/deb/Mirror locally : TrueMirror Type : baseurlOwners : <<inherit>>Priority : 0Proxy information : <<inherit>>RPM List : []Rsync Options : {}Yum Options : {'--ignore-release-gpg': '~'}
Code:
#### Contents of the preconfiguration file #d-i hw-detect/load_firmware boolean true#d-i hw-detect/load_media boolean true#### Localizationd-i debian-installer/locale string fr_FRd-i keymap select frd-i keyboard-configuration/xkb-keymap select fr(latin9)d-i debian-installer/language string frd-i debian-installer/country string FR### Network configurationd-i netcfg/choose_interface select auto### Configuration du nom/domaine de la machined-i netcfg/get_hostname string $hostnamed-i netcfg/get_domain string mydomain.com # If you prefer to configure the network manually, uncomment this line and# the static network configuration below.d-i netcfg/disable_dhcp true# If you want the preconfiguration file to work on systems both with and# without a dhcp server, uncomment these lines and the static network# configuration below.#d-i netcfg/dhcp_failed note#d-i netcfg/dhcp_options select Configure network manually# Static network configuration.d-i netcfg/get_nameservers string 10.17.0.254d-i netcfg/get_ipaddress string 10.15.0.208d-i netcfg/get_netmask string 255.255.255.0d-i netcfg/get_gateway string 10.15.0.254d-i netcfg/confirm_static boolean trued-i netcfg/get_ipaddress seen trued-i netcfg/get_netmask seen trued-i netcfg/get_nameservers seen trued-i netcfg/get_gateway seen true# Any hostname and domain names assigned from dhcp take precedence over# values set here. However, setting the values still prevents the questions# from being shown, even if values come from dhcp.d-i netcfg/get_hostname seen trued-i netcfg/get_domain seen true### Décommenter pour une installation hors-ligne#d-i netcfg/enable boolean false### Mirror settingsd-i mirror/protocol string httpd-i mirror/country string manuald-i mirror/http/hostname string 10.15.0.3d-i mirror/http/directory string /cobbler/repo_mirror/auto-deb-x86_64#d-i mirror/http/proxy string http://myproxy:3128#d-i debian-installer/allow_unauthenticated boolean true#d-i mirror/suite string bookworm#d-i mirror/udeb/suite string bookworm#d-i mirror/protocol string ftp#d-i mirror/ftp/hostname string ftp.fr.debian.org#d-i mirror/ftp/directory string /debian#d-i mirror/ftp/proxy string### Version Stable, Testing ou Unstable ?#d-i apt-setup/use_mirror boolean true#d-i mirror/suite string stable### Pas de compte root configuré sur la machine#d-i passwd/root-login boolean false### Account setup#d-i passwd/root-password password Str0ngPa$$WorDr00t#d-i passwd/root-password-again password Str0ngPa$$WorDr00td-i passwd/root-password password rootd-i passwd/root-password-again password root # To create a normal user account.d-i passwd/user-fullname string userd-i passwd/username string normal-userd-i passwd/user-password password normaluserpwdd-i passwd/user-password-again password normaluserpwdd-i passwd/user-uid string 1001d-i user-setup/allow-password-weak boolean false# skip creation of a normal user account.#d-i passwd/make-user boolean false### Commande pour générer l'empreinte du mot de passe :### mkpasswd -m sha-512 (motdepasse dans le cas ci-dessous)#d-i passwd/user-password-crypted password $6$rnPpgCH7$uiSg5eyyTjflS3SMGh1bBMs26qFwFargMV.cUHkOeIOTaQJqsU7v9iDA7VQvdNUVNC.hHX7F0.VNi/aX3TzRJ1### Clock and time zone setupd-i clock-setup/utc boolean trued-i clock-setup/ntp boolean trued-i time/zone string Europe/Paris#d-i clock-setup/ntp-server string ntp.server.fr### Partitioning#d-i partman-auto/disk string /dev/sda###d-i anna/choose_modules multiselect driver-injection-disk-detect#driver-injection-disk-detect driver-injection-disk/load boolean true## This is only honoured if partman-auto/method (below) is not set.d-i partman-auto/init_automatically_partition select biggest_free#d-i partman/early_command string \# USBDEV=\$(mount | grep hd-media | cut -d" " -f1 | sed "s/\(.*\)./\1/");\# BOOTDEV=\$(list-devices disk | grep -v \$USBDEV | head -1);\# debconf-set partman-auto/disk \$BOOTDEV;\# debconf-set grub-installer/bootdev \$BOOTDEV;#d-i partman-auto/method string regulard-i partman-lvm/device_remove_lvm boolean trued-i partman-md/device_remove_md boolean trued-i partman-lvm/confirm boolean trued-i partman-lvm/confirm_nooverwrite boolean trued-i partman-auto/choose_recipe select atomicd-i partman-partitioning/confirm_write_new_label boolean trued-i partman/choose_partition select finishd-i partman/confirm boolean trued-i partman/confirm_nooverwrite boolean true# If you just want to change the default filesystem from ext3 to something# else, you can do that without providing a full recipe.# d-i partman/default_filesystem string ext4### Base system installation#d-i base-installer/kernel/image string linux-image-amd64### Apt setup#d-i apt-setup/non-free boolean true#d-i apt-setup/contrib boolean true# You can choose to install restricted and universe software, or to install# software from the backports repository.# d-i apt-setup/restricted boolean true# d-i apt-setup/universe boolean true# d-i apt-setup/backports boolean true### Uncomment this if you don't want to use a network mirror.d-i apt-setup/use_mirror boolean false# Select which update services to use; define the mirrors to be used.# Values shown below are the normal defaults.# And if you also don't want any updates (like security.debian.org), because You will configure those differently after installation and don't want to be interrupted during it if the network is down e.g. use: (without the default security, updates)d-i apt-setup/services-select multiselect#d-i apt-setup/services-select multiselect security#d-i apt-setup/security_host string $server#d-i apt-setup/security_path string /cblr/repo_mirror/ubuntu14-x86_64# d-i apt-setup/local0/repository string http://$http_server/ubuntu_custom_packages ./### Groupes de paquets à installer### Différents choix possibles (combinables) :### - standard (nécessaire)### - print-server### - ssh-server### - web-server### - cinnamon-desktop### - desktop### - gnome-desktop### - kde-desktop### - lxde-desktop### - mate-desktop### - xfce-desktop### Package selectiontasksel tasksel/first multiselect standard #tasksel tasksel/remove multiselect desktop, print-server #On choisit de retirer les options d'installation par défaut #d-i pkgsel/include string sudo wget vim curl #On inclut des paquets supplémentairespopularity-contest popularity-contest/participate boolean false #On refuse de participer à l'analyse des paquets utilisésd-i grub-installer/only_debian trued-i grub-installer/bootdev string default#d-i grub-installer/bootdev string /dev/sda# This first command is run as early as possible, just after preseeding is read.# d-i preseed/early_command string [command]# This command is run immediately before the partitioner starts. It may be# useful to apply dynamic partitioner preseeding that depends on the state# of the disks (which may not be visible when preseed/early_command runs).# d-i partman/early_command \# string debconf-set partman-auto/disk "\$(list-devices disk | head -n1)"# This command is run just before the install finishes, but when there is# still a usable /target directory. You can chroot to /target and use it# directly, or use the apt-install and in-target commands to easily install# packages and run commands in the target system.# d-i preseed/late_command string [command]d-i preseed/late_command string \cd /target/root; \wget http://10.15.0.3/pub/bootstrap/bootstrap-debian-12.sh; \chmod +x /target/root/bootstrap-debian-12.sh; \in-target /bin/bash /root/bootstrap-debian-12.sh; \in-target touch /root/provision-done.txt;### Finishing up the installation#Eteindre le systèmed-i finish-install/reboot_in_progress note #On confirme la fin de l'installation#d-i cdrom-detect/eject boolean true #On éjecte le CD#d-i debian-installer/exit/poweroff boolean true #On éteint la machine
Statistics: Posted by miiraheart — 2024-01-09 17:05 — Replies 0 — Views 43