HeadlessInstallation: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 37: | Zeile 37: | ||
* Pw: TopSecret, hostname: HAWK | * Pw: TopSecret, hostname: HAWK | ||
<pre> | <pre> | ||
PW=TopSecret | |||
HOST=hawk | |||
cat <EOS >preseed.cfg | |||
#### Contents of the preconfiguration file (for stretch) | #### Contents of the preconfiguration file (for stretch) | ||
d-i debian-installer/locale select de_DE | d-i debian-installer/locale select de_DE | ||
Zeile 43: | Zeile 46: | ||
d-i netcfg/choose_interface select auto | d-i netcfg/choose_interface select auto | ||
d-i netcfg/get_hostname string | d-i netcfg/get_hostname string $HOST | ||
d-i netcfg/get_domain string local | d-i netcfg/get_domain string local | ||
d-i netcfg/hostname string | d-i netcfg/hostname string $HOST | ||
d-i hw-detect/load_firmware boolean true | d-i hw-detect/load_firmware boolean true | ||
d-i network-console/password password | d-i network-console/password password $PW | ||
d-i network-console/password-again password | d-i network-console/password-again password $PW | ||
d-i network-console/start select continue | d-i network-console/start select continue | ||
EOS | |||
</pre> | </pre> |
Version vom 27. August 2019, 17:47 Uhr
Links
Zielsetzung
Installation eines Debian-Minimalsystems ohne/mit wenig Benutzereingriff
Abhängigkeiten
apt-get install bsdtar syslinux syslinux-utils cpio genisoimage coreutils udevil
Vorgehensweise
ISO=debian-10.0.0-amd64-netinst.iso CFG=preseed.cfg ARCH=amd mkdir /opt/install cd /opt/install ln -s /xxx/$ISO . udevil mount $ISO cp -rT /media/root/$ISO isofiles chmod +w -R isofiles/install.$AMD/ gunzip isofiles/install.$AMD/initrd.gz echo $CFG | cpio -H newc -o -A -F isofiles/install.$AMD/initrd gzip isofiles/install.$AMD/initrd chmod -w -R isofiles/install.$AMD/ cd isofiles md5sum `find -follow -type f` > md5sum.txt cd .. genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o preseed_$ISO isofiles
Voreinstellungen
- Datei preseed.cfg
- Pw: TopSecret, hostname: HAWK
PW=TopSecret HOST=hawk cat <EOS >preseed.cfg #### Contents of the preconfiguration file (for stretch) d-i debian-installer/locale select de_DE d-i console-keymaps-at/keymap select de d-i keyboard-configuration/xkb-keymap select de d-i netcfg/choose_interface select auto d-i netcfg/get_hostname string $HOST d-i netcfg/get_domain string local d-i netcfg/hostname string $HOST d-i hw-detect/load_firmware boolean true d-i network-console/password password $PW d-i network-console/password-again password $PW d-i network-console/start select continue EOS