X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=distro-begin;h=eb51dcbe33fb67d0008357e8bddc203ad6f125f3;hp=72d4d44f613e6ca7ef521dac93344526fc6a753f;hb=a1ebefe19ab910d20fad0c2fd88637fee23dee7c;hpb=7f759d320592e791a62cd0a966350e8c53ee0976 diff --git a/distro-begin b/distro-begin index 72d4d44..eb51dcb 100755 --- a/distro-begin +++ b/distro-begin @@ -127,7 +127,7 @@ if encrypted; then # but it happened too late in the shutdown process. sudo dd of=/etc/systemd/system/keyscripton.service <<'EOF' [Unit] -Description=Turn on automatic decryption of drives on boot +Description=keyscripton # This is triggered by reboot and when keyscriptoff stops. # tried using graphical.target, but it made my display manager restart before rebooting. @@ -153,7 +153,7 @@ EOF sudo dd of=/etc/systemd/system/keyscriptoff.service <<'EOF' [Unit] -Description=Turn off automatic decryption of drives on boot +Description=keyscriptoff [Service] Type=oneshot @@ -212,8 +212,13 @@ if [[ $HOSTNAME != $(cat /etc/hostname) ]]; then echo $HOSTNAME > /etc/hostname hostname -F /etc/hostname fi +# office vpn dhcp adds to /etc/resolv.conf search office.fsf.org which +# makes that be #1 priority, which makes dnsmasq resolve that for +# unqualified hosts first, which means we skip the hosts file. Ya, its +# kinda dumb, but it is what it is. There is a dnsmasq config option to +# override it too, but this seems simpler. sudo sed -i --follow-symlinks -f - /etc/hosts <