diff options
author | B. Stack <bgstack15@gmail.com> | 2023-01-20 16:44:12 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2023-01-20 16:44:12 -0500 |
commit | d989fe812903caa66595f9b40b38877f1e7bd493 (patch) | |
tree | 09388f4cb93252de6017c48974001af9b19a070d /preseed.cfg | |
parent | changes for day (diff) | |
download | foo1-d989fe812903caa66595f9b40b38877f1e7bd493.tar.gz foo1-d989fe812903caa66595f9b40b38877f1e7bd493.tar.bz2 foo1-d989fe812903caa66595f9b40b38877f1e7bd493.zip |
changes for day
Diffstat (limited to 'preseed.cfg')
-rw-r--r-- | preseed.cfg | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/preseed.cfg b/preseed.cfg index 48f6e87..e89ebd3 100644 --- a/preseed.cfg +++ b/preseed.cfg @@ -13,8 +13,9 @@ # 2018-12-29 fix up repos and in-target conclusion stuff # 2020-02-27 heavy rewrite to use ascii 2.1 # 2021-05-16 bump to chimaera which upgrades self to ceres +# 2023-01-20 kernel cmdline, remove newmoon # 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_chimaera_4.0.0_amd64_netinstall.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 ; 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_daedalus_5.0.preview-20230116_amd64_netinstall.iso --initrd-inject=/mnt/public/Support/Platforms/devuan/preseed/preseed.cfg --extra-args "NOTIFYEMAIL=bgstack15@gmail.com interface=auto netcfg/get_hostname=${vm}" --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/ @@ -53,6 +54,8 @@ d-i keyboard-configuration/variantcode string d-i keyboard-configuration/xkb-keymap select us d-i netcfg/disable_autoconfig boolean false +# The hostname is supposed to come from the kernel cmdline in the virt-install invocation +#d-i netcfg/get_hostname string NONE 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 @@ -186,7 +189,7 @@ d-i preseed/late_command string mkdir -p /target/etc/apt/sources.list.d /target/ in-target rm /etc/apt/trusted.gpg.d/ceres.gpg || : ; \ in-target curl --no-progress-meter http://albion320.no-ip.biz/smith122/certs/ca-ipa.smith122.com.crt --output /usr/local/share/ca-certificates/ca-ipa.smith122.com.crt && in-target update-ca-certificates || : ; \ in-target wget -O /root/update-devuan.sh http://albion320.no-ip.biz/smith122/Support/Platforms/devuan/scripts/update-devuan.sh ; in-target sh /root/update-devuan.sh preseed ; \ - in-target apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" alsamixergui alttab bgconf bgscripts bgscripts-core ca-certificates cifs-utils curl desktop-base fluxbox fluxbox-themes-stackrpms freeipa-client freeipa-helper git grub-pc gtk3-automnemonics gtk3-nocsd gtk3-nooverlayscrollbar krb5-auth-dialog logout-manager man mlocate net-tools newmoon nfs-common ntpdate p7zip parted postfix qemu-guest-agent rsync scite screen spice-vdagent strace sudo tcpdump ublock-origin-combined vim vlc volumeicon-alsa xdgmenumaker xfce4-terminal xfe xserver-xorg-input-libinput xserver-xorg-video-qxl ; \ + in-target apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" alsamixergui alttab bgconf bgscripts bgscripts-core ca-certificates cifs-utils curl desktop-base fluxbox fluxbox-themes-stackrpms freeipa-client freeipa-helper git grub-pc gtk3-automnemonics gtk3-nocsd gtk3-nooverlayscrollbar krb5-auth-dialog librewolf logout-manager man mlocate net-tools nfs-common ntpdate p7zip parted postfix qemu-guest-agent rsync scite screen spice-vdagent strace sudo tcpdump ublock-origin-combined vim vlc volumeicon-alsa xdgmenumaker xfce4-terminal xfe xserver-xorg-input-libinput xserver-xorg-video-qxl ; \ rm -f /target/etc/apt/sources.list.d/empty || : ; \ in-target sed -i -r -e '/^\s*linux/s/(\s*console=.{1,7}[0-9])*\s*$/ console=tty0 console=ttyS0/;' /boot/grub/grub.cfg || : ; \ in-target sed -i -r -e '/^\s*kernel/s/(\s*console=.{1,7}[0-9])*\s*$/ console=tty0 console=ttyS0/;' /boot/grub/menu.lst || : ; \ |