minor fixes
authorIan Kelling <iank@fsf.org>
Tue, 8 Feb 2022 23:21:20 +0000 (18:21 -0500)
committerIan Kelling <iank@fsf.org>
Tue, 8 Feb 2022 23:21:20 +0000 (18:21 -0500)
fai/config/hooks/partition.DEFAULT
fai/config/scripts/GRUB_PC/11-iank

index 80f0d7c4a70afd9dfb86f616c7830089bb06bcc3..19b80238081b1cda61f5430f03cbad2c376d9f55 100755 (executable)
@@ -360,8 +360,8 @@ if (( boot_space > 60000 )); then
   # becuase I keep a minimal debian install on it for
   # recovery needs and for doing pxe-kexec.
   boot_mib=10000
-  root2_mib=200000
-  boot2_mib=2000
+  root2_mib=1000000
+  boot2_mib=5000
 elif (( boot_spa_ce > 30000 )); then
   boot_mib=$(( 5000 + (boot_space - 30000) / 2 ))
   root2_mib=100
@@ -369,8 +369,9 @@ elif (( boot_spa_ce > 30000 )); then
 else
   # Small vms don't have room for /boot recovery.  With 3 kernels
   # installed, i'm using 132M on t8, so this seems like plenty of
-  # room. note: rhel 8 recomments 1g for /boot.
-  boot_mib=500
+  # room. note: rhel 8 recomments 1g for /boot.  u20.04 with 3 kernels =
+  # 308 mb, so things have grown significantly
+  boot_mib=1000
   root2_mib=100
   boot2_mib=100
 fi
index 93df65558234e1a2537ec50ea83009817228f5a2..eb315ce83b872345b01a1160452302414835f712 100755 (executable)
@@ -353,22 +353,8 @@ fi
 # appropriate things into a new service.
 rm -f /home/iank/.config/systemd/user/default.target.wants/ssh-agent.service
 
-mkdir -p /home/iank/.local/share/systemd/user
-cat >/home/iank/.local/share/systemd/user/sshaiank.service <<'EOF'
-[Unit]
-Description=OpenSSH User Agent
-Documentation=man:ssh-agent(1)
-[Service]
-ExecStart=/usr/lib/openssh/agent-launch start
-ExecStopPost=/usr/lib/openssh/agent-launch stop
-[Install]
-WantedBy=default.target
-EOF
-# enable it
-# systemctl --user is not available at fai time, so create the link ourselves
-dir=/home/iank/.config/systemd/user/default.target.wants
-mkdir -p $dir
-ln -sf /home/iank/.local/share/systemd/user/sshaiank.service $dir
+rm -f /home/iank/.local/share/systemd/user/sshaiank.service \
+  /home/iank/.config/systemd/user/default.target.wants/sshaiank.service
 
 #### end .ssh setup ###