diff options
-rw-r--r-- | preseed.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/preseed.cfg b/preseed.cfg index e89ebd3..a0bd881 100644 --- a/preseed.cfg +++ b/preseed.cfg @@ -14,6 +14,7 @@ # 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 +# 2023-02-28 add ssh_config EnableEscapeCommandline yes, disable apparmor for sssd # 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}"; @@ -39,6 +40,7 @@ # on d2-03a: sudo debconf-get-selections --installer # https://serverfault.com/questions/593388/unable-to-nfs-mount-in-debian-preseed-target/593389 # https://preseed.debian.net/debian-preseed/sid/amd64-main-full.txt +# https://bgstack15.ddns.net/blog/posts/2020/12/03/disable-apparmor-for-sssd/ # 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/\/.*$//' )" | @@ -198,4 +200,7 @@ d-i preseed/late_command string mkdir -p /target/etc/apt/sources.list.d /target/ 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 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/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 ; |