diff options
-rw-r--r-- | preseed.cfg | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/preseed.cfg b/preseed.cfg index 6152fe4..0425e86 100644 --- a/preseed.cfg +++ b/preseed.cfg @@ -11,7 +11,7 @@ # 2017-10-29 major revision to use local repository # 2019-06-25 fork from centos7-ks.cfg # Usage with virt-install: -# vm=d2-04a ; time sudo virt-install -n "${vm}" --memory 2048 --vcpus=1 --os-variant=debiantesting -v --disk path=/var/lib/libvirt/images/"${vm}".qcow2,size=20 -l /mnt/public/Support/SetupsBig/Linux/devuan_ascii_2.0.0-beta_amd64_DVD.iso --initrd-inject=/mnt/public/Support/Platforms/devuan/preseed.cfg --extra-args "hostname=${vm} NOTIFYEMAIL=bgstack15@gmail.com interface=auto" --debug --network type=bridge,source=br0 --noautoconsole +# vm=d2-04a ; time sudo virt-install -n "${vm}" --memory 2048 --vcpus=1 --os-variant=debiantesting -v --disk path=/var/lib/libvirt/images/"${vm}".qcow2,size=20 -l /mnt/public/Support/SetupsBig/Linux/devuan_ascii_2.0.0-beta_amd64_DVD.iso --initrd-inject=/mnt/public/Support/Platforms/devuan/preseed/preseed.cfg --extra-args "hostname=${vm} NOTIFYEMAIL=bgstack15@gmail.com interface=auto" --debug --network type=bridge,source=br0 --noautoconsole # vm=d2-04a; sudo virsh destroy "${vm}"; sudo virsh undefine --remove-all-storage "${vm}"; # Reference: # https://sysadmin.compxtreme.ro/automatically-set-the-hostname-during-kickstart-installation/ @@ -24,22 +24,24 @@ # skip next dvd question https://unix.stackexchange.com/questions/409212/preseed-directive-to-skip-another-cd-dvd-scanning # grub problem caused by consolekit:amd64 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915947#10 # https://stackoverflow.com/questions/39861614/how-to-fully-automate-unattended-virt-install +# https://www.debian.org/releases/stable/i386/apbs03.html.en +# https://dev1galaxy.org/viewtopic.php?id=1853 # Improve: -# test the lvm auto approval -# learn how to skip the "scan another DVD?" question. +# discover how to send email, using postfix or sendmail. Don't care which, but exclude exim4. +# echo "$( hostname ) has IP $( ip -4 -o a s eth0 | awk '{print $4}' | sed -r -e 's/\/.*$//' )" | -d-i debian-installer/locale string en_US -d-i debian-installer/language string en d-i debian-installer/country string US d-i debian-installer/keymap select us +d-i debian-installer/language string en +d-i debian-installer/locale string en_US d-i localechooser/supported-locales string en_US.UTF-8 -d-i keyboard-configuration/xkb-keymap select us d-i keyboard-configuration/layoutcode string us d-i keyboard-configuration/variantcode string +d-i keyboard-configuration/xkb-keymap select us -d-i netcfg/get_domain string ipa.smith122.com d-i netcfg/disable_autoconfig boolean false +d-i netcfg/get_domain string ipa.smith122.com d-i netcfg/wireless_wep string # disable asking for non-free firmware, because this is a vm and has none d-i hw-detect/load_firmware boolean false @@ -61,16 +63,16 @@ d-i apt-setup/cdrom/set-failed boolean false d-i apt-setup/cdrom/set-first boolean false d-i apt-setup/cdrom/set-next boolean false -# my repos -d-i apt-setup/local0/repository string http://albion320.no-ip.biz/smith122/repo/deb/ / +# my repos and ceres d-i apt-setup/local0/comment string smith122deb d-i apt-setup/local0/key string http://albion320.no-ip.biz/smith122/repo/deb/smith122deb.gpg -d-i apt-setup/local1/repository string http://albion320.no-ip.biz/smith122/repo/devuan-deb/ / +d-i apt-setup/local0/repository string http://albion320.no-ip.biz/smith122/repo/deb/ / d-i apt-setup/local1/comment string devuan-deb d-i apt-setup/local1/key string http://albion320.no-ip.biz/smith122/repo/deb/smith122deb.gpg -d-i apt-setup/local2/repository string http://pkgmaster.devuan.org/merged ceres main contrib non-free +d-i apt-setup/local1/repository string http://albion320.no-ip.biz/smith122/repo/devuan-deb/ / d-i apt-setup/local2/comment string ceres d-i apt-setup/local2/key string https://pkgmaster.devuan.org/merged/dists/ceres/Release.gpg +d-i apt-setup/local2/repository string http://pkgmaster.devuan.org/merged ceres main contrib non-free # if for some reason I really need to turn off the gpg key check: #d-i debian-installer/allow_unauthenticated boolean false @@ -78,7 +80,13 @@ tasksel tasksel/first multiselect standard, ssh-server # adapted from /mnt/public/Support/Platforms/devuan/devuan.txt, main fluxbox desktop, but for a vm d-i pkgsel/include string \ - alsamixergui alttab apt-transport-https bgconf bgscripts bgscripts-core cifs-utils fluxbox lightdm lightdm-gtk-greeter mlocate nfs-common ntpdate openssh-server p7zip palemoon palemoon-ublock-origin scite screen sudo vim volumeicon-alsa waterfox xfe xscreensaver spice-vdagent qemu-guest-agent xserver-xorg-video-qxl grub + alsamixergui alttab apt-transport-https bgconf bgscripts bgscripts-core \ + cifs-utils curl fluxbox freeipa-client git grub lightdm lightdm-gtk-greeter \ + mlocate net-tools nfs-common ntpdate oddjob-mkhomedir=0.1-1 openssh-server \ + p7zip palemoon palemoon-ublock-origin parted qemu-guest-agent rsync scite \ + screen spice-vdagent strace sudo tcpdump vim volumeicon-alsa waterfox xfe \ + xscreensaver xserver-xorg-video-qxl vlc xfce4-terminal + d-i pkgsel/upgrade select none popularity-contest popularity-contest/participate boolean true @@ -87,7 +95,7 @@ d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string dns1.ipa.smith122.com d-i time/zone string America/New_York -# skip grub during main part, because the ceres overlay adds some cruft to /boot/grub/locale/ from consolekit +# skip grub during main part, because we will do it in late_command d-i grub-installer/skip boolean true # these next 2 are experimental d-i grub-installer/skip-again boolean true @@ -142,6 +150,8 @@ d-i shared/ldapns/ldap-server string ldapi:///ipa.smith122.com d-i openssh-server/password-authentication boolean true d-i openssh-server/permit-root-login boolean false -# this will install a few things instead of consolekit, but that is ok. we need consolekit gone because it laid down some /boot/grub/locale/*mo files that interfere with grub-install -d-i preseed/late_command string in-target apt-get purge -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" consolekit ; \ - in-target grub-install /dev/vda ; in-target update-grub +# Remove consolekit from ceres, which disrupts /boot/grub/local/*mo files, that grub-install wants. +d-i preseed/late_command string in-target apt-get purge -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" consolekit exim4\* ; \ + apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" postfix ; \ + in-target grub-install /dev/vda ; in-target update-grub ; \ + in-target wget http://albion320.no-ip.biz/smith122/certs/ca-ipa.smith122.com.crt -O /usr/local/share/ca-certificates/ca-ipa.smith122.com.crt && update-ca-certificates || : ; in-target su bgirton-local -c "sudo /usr/bin/bgconf.py" 1>/root/clone.log 2>&1 ; |