From a9242586e509be25c1b3f746f6cdb45104c5e9f5 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sat, 24 Sep 2016 21:22:24 -0700 Subject: [PATCH] small fixes and additions --- distro-begin | 35 +++++++++++++++++++++++++---------- distro-end | 44 +++++++++++++++++++++++++++++--------------- input-setup | 4 ++++ postfix-setup | 2 +- 4 files changed, 59 insertions(+), 26 deletions(-) diff --git a/distro-begin b/distro-begin index 3997217..1c15acf 100755 --- a/distro-begin +++ b/distro-begin @@ -14,15 +14,12 @@ # limitations under the License. -# todo. dunno why, but original bootstrap of timezone is not sticking. -# fixed manually with: -# s dpkg-reconfigure tzdata -# enter 12 then 11. # for bootstrapping a new machine -# to make ssh interactive shell run better, first run this: +# in case we need it, +# to make ssh interactive shell run better, we run this first. sudo bash -c 'source /a/c/repos/bash/.bashrc && source /a/exe/ssh-emacs-setup' @@ -73,8 +70,8 @@ fi for f in iank-dev htpc treetowl x2 frodo tp li lj demohost; do eval "$f() { [[ $HOSTNAME == $f ]]; }" done -has_p() { iank-dev || x2 || frodo || tp; } -has_x() { ! { lj || li || demohost; }; } +has_p() { treetowl || iank-dev || x2 || frodo || tp || demohost; } +has_x() { ! { lj || li; }; } linode() { lj || li; } encrypted() { has_p; } @@ -572,7 +569,7 @@ s chown ian:ian "${dirs[@]}" if [[ $HOSTNAME == treetowl ]]; then tu /etc/fstab <<'EOF' -UUID=3f7b31cd-f299-40b4-a86b-7604282e2715 /i btrfs noatime 0 2 +/dev/disk/by-id/ata-TOSHIBA_MD04ACA500_84REK6NTFS9A-part1 /i btrfs noatime,subvol=i 0 0 EOF else tu /etc/fstab <<'EOF' @@ -697,6 +694,24 @@ if isubuntu; then s dd of=/etc/default/apport <<<'enabled=0' fi +# fai sets this an old way that doesn't work for stretch. +# no harm in setting it universally here. +# using debconf-set-selection, the area gets reset to ETC +# on my linode test machine after doing a dpkg-reconfigure, or a reinstall, +# so we are using expect :( +apt-get install --no-install-recommends expect +s expect <