diff options
author | B. Stack <bgstack15@gmail.com> | 2020-02-25 19:58:45 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2020-02-25 19:58:45 -0500 |
commit | 09147d083666c925f26fedeec80a50cb57aaf692 (patch) | |
tree | 213eab22d8de91fa6e7e38b18dc2ff13cb7910e8 | |
parent | changes for day (diff) | |
download | foo1-09147d083666c925f26fedeec80a50cb57aaf692.tar.gz foo1-09147d083666c925f26fedeec80a50cb57aaf692.tar.bz2 foo1-09147d083666c925f26fedeec80a50cb57aaf692.zip |
changes for day
-rw-r--r-- | preseed.cfg | 77 |
1 files changed, 49 insertions, 28 deletions
diff --git a/preseed.cfg b/preseed.cfg index 2b35edb..ac3bc1a 100644 --- a/preseed.cfg +++ b/preseed.cfg @@ -13,7 +13,7 @@ # 2019-12-29 fix up repos and in-target conclusion stuff # 2020-02-20 use ascii 2.1 # 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.1_amd64_netinst.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_ascii_2.1_amd64_dvd-1.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/ @@ -35,11 +35,13 @@ # https://ubuntuforums.org/showthread.php?t=2387570 # sudo debconf-get-selections -c /mnt/public/Support/Platforms/devuan/preseed/preseed.cfg # on d2-03a: sudo debconf-get-selections --installer +# https://serverfault.com/questions/593388/unable-to-nfs-mount-in-debian-preseed-target/593389 # Improve: # 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/\/.*$//' )" | -# add the kernel lines: console=ttyS0 console=tty1. Get this to work; tried manually but perhaps devuan doesn't use console the same way? -# 2020-02-20 unfortunately need to use the in-target stuff now because the localrepo d-i components are invalid +# 2020-02-24 add the kernel lines: console=ttyS0 console=tty1. Get this to work; use grub.cfg and "linux" line, not "kernel" +# add the apt-key crap, from the localrepo0 lines, to the in-target stuff at end +# the /mnt/bgirton in fstab must exist after the successful bgconf invocation, when the repo is trusted? d-i debian-installer/country string US d-i debian-installer/keymap select us @@ -64,7 +66,7 @@ d-i apt-setup/disable-cdrom-entries boolean true d-i apt-setup/non-free boolean true d-i apt-setup/use_mirror boolean true d-i mirror/country string manual -d-i mirror/http/directory string /devuan +d-i mirror/http/directory string /merged d-i mirror/http/hostname string deb.devuan.org d-i mirror/http/proxy string d-i mirror/protocol string http @@ -74,7 +76,7 @@ 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 and ceres +## 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/ / @@ -87,22 +89,25 @@ d-i apt-setup/local2/repository string http://albion320.no-ip.biz/mirror/devuan #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.gpg +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/ / # if for some reason I really need to turn off the gpg key check: #d-i debian-installer/allow_unauthenticated boolean false -tasksel tasksel/first multiselect standard, ssh-server +#tasksel tasksel/first multiselect standard, ssh-server +tasksel tasksel/first multiselect none # adapted from /mnt/public/Support/Platforms/devuan/devuan.txt, main fluxbox desktop, but for a vm # no xscreensaver, for a vm. -d-i pkgsel/include string \ - 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.0.1-1 openssh-server \ - p7zip palemoon palemoon-ublock-origin parted qemu-guest-agent rsync scite \ - screen spice-vdagent strace sudo tcpdump vim vlc volumeicon-alsa waterfox \ - xfce4-terminal xfe xserver-xorg-video-qxl fluxbox-themes-stackrpms +#d-i pkgsel/include string \ +# 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.0.1-1 openssh-server \ +# p7zip palemoon palemoon-ublock-origin parted qemu-guest-agent rsync scite \ +# screen spice-vdagent strace sudo tcpdump vim vlc volumeicon-alsa waterfox \ +# xfce4-terminal xfe xserver-xorg-video-qxl fluxbox-themes-stackrpms +#d-i pkgsel/include string cifs-utils curl grub lightdm vim sudo vlc screen p7zip nfs-common +d-i pkgsel/include string openssh-server d-i pkgsel/upgrade select none @@ -113,17 +118,19 @@ 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 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 -d-i grub-installer/skip-confirm boolean true -d-i grub-installer/confirm_skip boolean true -d-i nobootloader/confirmation_common boolean true +#d-i grub-installer/skip boolean true +#d-i grub-installer/skip-again boolean true +#d-i grub-installer/skip-confirm boolean true +#d-i grub-installer/confirm_skip boolean true +#d-i nobootloader/confirmation_common boolean true +d-i choose-init/select_init select sysvinit +d-i choose-init/selected_sysvinit bool true +grub-installer grub-installer/choose_bootdev select /dev/vda d-i lilo-installer/skip boolean true #d-i grub-installer/with_other_os boolean true -#d-i grub-installer/only_debian boolean true -#d-i grub-installer/grub2_instead_of_grub_legacy boolean true +d-i grub-installer/only_debian boolean true +d-i grub-installer/grub2_instead_of_grub_legacy boolean true #d-i grub-installer/bootdev string /dev/vda #d-i grub-installer/choose_bootdev select /dev/vda #grub-installer grub-installer/force-efi-extra-removable boolean false @@ -168,15 +175,29 @@ d-i openssh-server/password-authentication boolean true d-i openssh-server/permit-root-login boolean false # 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\* lxqt\* udev ; \ - in-target grub-install /dev/vda ; in-target update-grub ; \ +d-i preseed/late_command string mkdir -p /target/etc/apt/sources.list.d ; cd /target/etc/apt ; \ + in-target wget -O /Release.gpg http://albion320.no-ip.biz/mirror/devuan/dists/ceres/Release.gpg ; in-target apt-key add /Release.gpg ; \ + echo "deb http://albion320.no-ip.biz/mirror/devuan ceres main contrib non-free" > sources.list ; \ + in-target wget -O /smith122deb.gpg http://albion320.no-ip.biz/smith122/repo/deb/smith122deb.gpg ; in-target apt-key add /smith122deb.gpg ; \ + echo "deb http://albion320.no-ip.biz/smith122/repo/deb/ /" > sources.list.d/smith122deb.list ; \ + echo "deb http://albion320.no-ip.biz/smith122/repo/devuan-deb/ /" > sources.list.d/devuan-deb.list ; \ + in-target wget -O /Release.key http://albion320.no-ip.biz/mirror/obs/Release.key ; in-target apt-key add /Release.key ; \ + echo "deb http://download.opensuse.org/repositories/home:/bgstack15/Debian_Unstable/ /" > sources.list.d/home\:bgstack15.list ; \ + 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 apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" 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.0.1-1 openssh-server p7zip palemoon palemoon-ublock-origin parted qemu-guest-agent rsync scite screen spice-vdagent strace sudo tcpdump vim vlc volumeicon-alsa waterfox xfce4-terminal xfe xserver-xorg-video-qxl fluxbox-themes-stackrpms libpolkit-backend-elogind-1-0 policykit-1 lightdm lightdm-gtk-greeter ; \ 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 ; \ - in-target sed -i -r -e '/^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 mkdir -p /mnt/public /mnt/bgirton ; in-target mount -v /mnt/public ; mount -v /mnt/bgirton ; \ + in-target modprobe nfs ; in-target modprobe nfsv4 ; \ + mkdir -p /target/mnt/public /target/mnt/bgirton ; in-target mount -v /mnt/public ; in-target mount -v /mnt/bgirton ; \ in-target /mnt/public/Support/Platforms/devuan/set-my-repos.sh ; \ in-target /mnt/public/Support/Platforms/devuan/lightdm-elogind.sh ; \ in-target /mnt/public/Support/Platforms/devuan/set-local-devuan-repo.sh ; \ in-target install -m0644 /mnt/public/Support/Platforms/devuan/sources.list /etc/apt/sources.list ; \ - in-target apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" postfix ; + in-target apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" postfix ; \ + in-target /mnt/public/Support/Platforms/devuan/update-devuan.sh ; + +# in-target sed -i -r -e '/^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 ; \ +#### SHOULDN'T NEED THIS ANYMORE +# in-target grub-install /dev/vda ; in-target update-grub ; \ |