HeadlessInstallation: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K (→Vorgehensweise) |
|||
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 20: | Zeile 20: | ||
udevil mount $ISO | udevil mount $ISO | ||
cp -rT /media/root/$ISO isofiles | cp -rT /media/root/$ISO isofiles | ||
chmod +w -R isofiles/install.$ | chmod +w -R isofiles/install.$ARCH/ | ||
gunzip isofiles/install.$ | gunzip isofiles/install.$ARCH/initrd.gz | ||
echo $CFG | cpio -H newc -o -A -F isofiles/install.$ | echo $CFG | cpio -H newc -o -A -F isofiles/install.$ARCH/initrd | ||
gzip isofiles/install.$ | gzip isofiles/install.$ARCH/initrd | ||
chmod -w -R isofiles/install.$ | chmod -w -R isofiles/install.$ARCH/ | ||
cd isofiles | cd isofiles | ||
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> |
Aktuelle Version vom 27. August 2019, 18:01 Uhr
Links[Bearbeiten]
Zielsetzung[Bearbeiten]
Installation eines Debian-Minimalsystems ohne/mit wenig Benutzereingriff
Abhängigkeiten[Bearbeiten]
apt-get install bsdtar syslinux syslinux-utils cpio genisoimage coreutils udevil
Vorgehensweise[Bearbeiten]
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.$ARCH/ gunzip isofiles/install.$ARCH/initrd.gz echo $CFG | cpio -H newc -o -A -F isofiles/install.$ARCH/initrd gzip isofiles/install.$ARCH/initrd chmod -w -R isofiles/install.$ARCH/ 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[Bearbeiten]
- 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