diff options
Diffstat (limited to 'preseed.cfg')
-rw-r--r-- | preseed.cfg | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/preseed.cfg b/preseed.cfg index 0f98f39..ab8365c 100644 --- a/preseed.cfg +++ b/preseed.cfg @@ -17,8 +17,8 @@ # 2023-02-28 add ssh_config EnableEscapeCommandline yes, disable apparmor for sssd # 2023-06-26 add configure-postfix.sh # 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_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}"; +# vm=d2-05a ; 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-05a; sudo virsh destroy "${vm}"; sudo virsh undefine --remove-all-storage "${vm}"; # Reference: # https://sysadmin.compxtreme.ro/automatically-set-the-hostname-during-kickstart-installation/ # /mnt/public/Support/Platforms/CentOS7/install-vm.txt @@ -86,22 +86,22 @@ d-i apt-setup/cdrom/set-next boolean false ## 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/local0/repository string http://albion320.no-ip.biz/smith122/repo/deb/ / +d-i apt-setup/local0/key string http://storage3/smith122/repo/deb/smith122deb.gpg +d-i apt-setup/local0/repository string http://storage3/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/local1/repository string http://albion320.no-ip.biz/smith122/repo/devuan-deb/ / +d-i apt-setup/local1/key string http://storage3/smith122/repo/deb/smith122deb.gpg +d-i apt-setup/local1/repository string http://storage3/smith122/repo/devuan-deb/ / d-i apt-setup/local2/comment string ceres -d-i apt-setup/local2/key string http://albion320.no-ip.biz/mirror/devuan/dists/ceres/Release.gpg -d-i apt-setup/local2/repository string http://albion320.no-ip.biz/mirror/devuan ceres main contrib non-free +d-i apt-setup/local2/key string http://storage3/mirror/devuan/dists/ceres/Release.gpg +d-i apt-setup/local2/repository string http://storage3/mirror/devuan ceres main contrib non-free #d-i apt-setup/local2/key string http://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 d-i apt-setup/local3/comment string obsmirror -d-i apt-setup/local3/key string http://albion320.no-ip.biz/mirror/obs/Release.key -d-i apt-setup/local3/repository string http://albion320.no-ip.biz/mirror/obs/ / +d-i apt-setup/local3/key string http://storage3/mirror/obs/Release.key +d-i apt-setup/local3/repository string http://storage3/mirror/obs/ / d-i apt-setup/local4/comment string obsmirror-gtk3-classic -d-i apt-setup/local4/key string http://albion320.no-ip.biz/mirror/obs-gtk3-classic/Release.key -d-i apt-setup/local4/repository string http://albion320.no-ip.biz/mirror/obs-gtk3-classic/ / +d-i apt-setup/local4/key string http://storage3/mirror/obs-gtk3-classic/Release.key +d-i apt-setup/local4/repository string http://storage3/mirror/obs-gtk3-classic/ / # if for some reason I really need to turn off the gpg key check: #d-i debian-installer/allow_unauthenticated boolean false @@ -187,24 +187,28 @@ d-i openssh-server/password-authentication boolean true d-i openssh-server/permit-root-login boolean false # Sometimes the update-devuan has to happen before the laundry list of packages, because upgrading from some stable release to Ceres causes package numbering-name mismatches. +# dpkg.deb: somehow start-stop-daemon is diverted or gone or something stupid, so re-get it manually. d-i preseed/late_command string mkdir -p /target/etc/apt/sources.list.d /target/mnt/bgirton /target/mnt/public /target/etc/apt/sources.list.d /target/root/input ; touch /target/etc/apt/sources.list.d/empty ; cd /target/etc/apt ; \ - in-target apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" gpg grub-pc sudo ; \ - in-target curl --no-progress-meter --output /root/set-local-devuan-repo.sh http://albion320.no-ip.biz/smith122/Support/Platforms/devuan/scripts/set-local-devuan-repo.sh ; in-target sh /root/set-local-devuan-repo.sh ; \ - in-target curl --no-progress-meter --output /root/input/52apt-file-stackrpms.conf http://albion320.no-ip.biz/smith122/Support/Platforms/devuan/scripts/input/52apt-file-stackrpms.conf ; in-target curl --no-progress-meter --output /root/set-my-repos.sh http://albion320.no-ip.biz/smith122/Support/Platforms/devuan/scripts/set-my-repos.sh ; in-target sh /root/set-my-repos.sh || : ; \ + in-target apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" gpg grub-pc sudo usrmerge ; \ + in-target curl --no-progress-meter --output /root/get-latest-devuan-keyring.sh http://storage3/smith122/Support/Platforms/devuan/scripts/get-latest-devuan-keyring.sh ; in-target sh /root/get-latest-devuan-keyring.sh ; \ + in-target curl --no-progress-meter --output /root/get-start-stop-daemon.sh http://storage3/smith122/Support/Platforms/devuan/scripts/get-start-stop-daemon.sh ; in-target sh /root/get-start-stop-daemon.sh ; \ + in-target curl --no-progress-meter --output /root/set-local-devuan-repo.sh http://storage3/smith122/Support/Platforms/devuan/scripts/set-local-devuan-repo.sh ; in-target sh /root/set-local-devuan-repo.sh ; \ + in-target curl --no-progress-meter --output /root/input/52apt-file-stackrpms.conf http://storage3/smith122/Support/Platforms/devuan/scripts/input/52apt-file-stackrpms.conf ; in-target curl --no-progress-meter --output /root/set-my-repos.sh http://storage3/smith122/Support/Platforms/devuan/scripts/set-my-repos.sh ; in-target sh /root/set-my-repos.sh || : ; \ 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 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 ; \ + in-target curl --no-progress-meter http://storage3/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://storage3/smith122/Support/Platforms/devuan/scripts/update-devuan.sh ; in-target sh /root/update-devuan.sh preseed ; \ + in-target sh /root/get-start-stop-daemon.sh ; \ + 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 plocate 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 || : ; \ in-target sed -i -r -e '$aT0:23:respawn:/sbin/getty -L ttyS0 9600 vt100' /etc/inittab ; \ in-target apt-get update ; \ in-target apt-get purge -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" consolekit exim4\* lxqt\* udev ; \ - in-target curl --no-progress-meter --output /root/lightdm-elogind.sh http://albion320.no-ip.biz/smith122/Support/Platforms/devuan/scripts/lightdm-elogind.sh ; in-target sh /root/lightdm-elogind.sh -y ; \ + in-target curl --no-progress-meter --output /root/lightdm-elogind.sh http://storage3/smith122/Support/Platforms/devuan/scripts/lightdm-elogind.sh ; in-target sh /root/lightdm-elogind.sh -y ; \ in-target su bgirton-local -c "sudo /usr/bin/bgconf.py -d 10 1>/home/bgirton-local/clone.log 2>&1" ; \ in-target updateval -a -v /etc/ssh/ssh_config '^\s*EnableEscapeCommandline.*' 'EnableEscapeCommandline yes' ; \ in-target ln -sf /etc/apparmor.d/usr.sbin.sssd /etc/apparmor.d/disable/ ; \ in-target apparmor_parser -R /etc/apparmor.d/usr.sbin.sssd ; \ - in-target curl --no-progress-meter --output /root/configure-postfix.sh http://albion320.no-ip.biz/smith122/Support/Platforms/devuan/scripts/configure-postfix.sh ; in-target sh /root/configure-postfix.sh ; \ - in-target curl --no-progress-meter --output /root/send-mail-ip-address.sh http://albion320.no-ip.biz/smith122/Support/Platforms/devuan/scripts/send-mail-ip-address.sh ; in-target sh /root/send-mail-ip-address.sh bgstack15@gmail.com ; + in-target curl --no-progress-meter --output /root/configure-postfix.sh http://storage3/smith122/Support/Platforms/devuan/scripts/configure-postfix.sh ; in-target sh /root/configure-postfix.sh ; \ + in-target curl --no-progress-meter --output /root/send-mail-ip-address.sh http://storage3/smith122/Support/Platforms/devuan/scripts/send-mail-ip-address.sh ; in-target sh /root/send-mail-ip-address.sh bgstack15@gmail.com ; |