dns updates and apt sources
authorIan Kelling <iank@fsf.org>
Sat, 7 Nov 2020 20:49:44 +0000 (15:49 -0500)
committerIan Kelling <iank@fsf.org>
Sat, 7 Nov 2020 20:49:44 +0000 (15:49 -0500)
fai/config/class/50-host-classes
fai/config/files/etc/apt/sources.list.d/focal.list/ETIONA
fai/config/package_config/STANDARD
wrt-setup-local

index 6f2e407979c754706c1eecbcd2b6facccdb463f6..6ab31dacadd5d8edb8d0754616d85d94ca48791f 100755 (executable)
@@ -98,17 +98,26 @@ fi
 
 if [[ -e /a/bin/fai/fai-wrapper ]]; then
   source /a/bin/distro-functions/src/identify-distros
 
 if [[ -e /a/bin/fai/fai-wrapper ]]; then
   source /a/bin/distro-functions/src/identify-distros
-  if isdebian; then
-    echo "DEBIAN"
-    tmp=$(debian-codename)
-    echo ${tmp^^}
-    # nonfree repo is not going away any time soon due to
-    # gcc-doc being in nonfree
-    echo ${tmp^^}_NONFREE
+  if isdeb; then
+    codename=$(debian-codename)
+    echo ${codename^^}
+    distro=$(distro-name)
+    case $distro in
+      debian)
+        echo ${distro^^}
+        # nonfree repo is not going away any time soon due to
+        # gcc-doc being in nonfree
+        echo ${codename^^}_NONFREE
+        ;;
+      trisquel)
+        # easier to stay with fai example config if we just call it ubuntu
+        echo UBUNTU
+        ;;
+    esac
   fi
   case $HOSTNAME in
     li|lj) echo "LINODE" ;;
   fi
   case $HOSTNAME in
     li|lj) echo "LINODE" ;;
-    bk) echo "NOCRYPT" ;;
+    bk|je) echo "NOCRYPT" ;;
   esac
 fi
 
   esac
 fi
 
index a4d6395eb838a906fbc2a551abfcf88617910b42..2f4fbcbbc12c659418a3f19aab2c037dd2a1e5e3 100644 (file)
@@ -1,6 +1,8 @@
-deb http://us.archive.ubuntu.com/ubuntu/ focal main universe
-deb http://us.archive.ubuntu.com/ubuntu/ focal-updates main universe
-deb http://us.archive.ubuntu.com/ubuntu/ focal-security main universe
-deb-src http://us.archive.ubuntu.com/ubuntu/ focal main universe
-deb-src http://us.archive.ubuntu.com/ubuntu/ focal-updates main universe
-deb-src http://us.archive.ubuntu.com/ubuntu/ focal-security main universe
+deb http://archive.ubuntu.com/ubuntu/ focal main universe
+deb http://archive.ubuntu.com/ubuntu/ focal-updates main universe
+deb http://archive.ubuntu.com/ubuntu/ focal-security main universe
+deb http://archive.ubuntu.com/ubuntu/ focal-backports main universe
+deb-src http://archive.ubuntu.com/ubuntu/ focal main universe
+deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main universe
+deb-src http://archive.ubuntu.com/ubuntu/ focal-security main universe
+deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main universe
index 1870c2e4a7843e3b0ad20b1a047f73e4773e4ba4..02f27b35b5d1712c4174e56f52d9ff543dae1246 100644 (file)
@@ -56,6 +56,7 @@ apt-transport-https
 # and fai scripts want to call ifquery.
 ifupdown
 netplan.io-
 # and fai scripts want to call ifquery.
 ifupdown
 netplan.io-
+libnss-resolve
 
 # iank, copied from DEBIAN so it goes into ubuntu too
 PACKAGES install GRUB_PC
 
 # iank, copied from DEBIAN so it goes into ubuntu too
 PACKAGES install GRUB_PC
index 4b61c08d82b9e3b1c9a5c046218c58d219c75094..17fb9d2adb4ff915f94f5e33aaa0f64b2e9a12b8 100755 (executable)
@@ -679,7 +679,7 @@ case $hostname in
     v cedit host /etc/hosts <<EOF || dnsmasq_restart=true
 $l.1 $hostname b8.nz
 $l.2 kd
     v cedit host /etc/hosts <<EOF || dnsmasq_restart=true
 $l.1 $hostname b8.nz
 $l.2 kd
-$l.3 frodo
+#$l.3 frodo
 $l.4 wrt2
 $l.5 x2 faiserver
 $l.6 x2w
 $l.4 wrt2
 $l.5 x2 faiserver
 $l.6 x2w
@@ -689,7 +689,7 @@ $l.9 bb8
 $l.14 wrt3
 #$l.18 x3
 $l.19 brother
 $l.14 wrt3
 #$l.18 x3
 $l.19 brother
-$l.28 frodow
+#$l.28 frodow
 EOF
     ;;
 esac
 EOF
     ;;
 esac
@@ -707,6 +707,7 @@ uset system.@system[0].hostname $hostname
 # uci doesnt seem to have a way to set an empty value,
 # if you delete it, it goes back to the default. this seems
 # to be a decent workaround.
 # uci doesnt seem to have a way to set an empty value,
 # if you delete it, it goes back to the default. this seems
 # to be a decent workaround.
+# todo: setup /etc/resolv.conf to point to 127.0.0.1
 uset dhcp.@dnsmasq[0].resolvfile=/dev/null
 
 # disabled for now. i want to selectively enable it
 uset dhcp.@dnsmasq[0].resolvfile=/dev/null
 
 # disabled for now. i want to selectively enable it
@@ -735,6 +736,7 @@ server=/_dmarc.b8.nz/#
 server=/ns1.b8.nz/#
 server=/ns2.b8.nz/#
 server=/bk.b8.nz/#
 server=/ns1.b8.nz/#
 server=/ns2.b8.nz/#
 server=/bk.b8.nz/#
+server=/je.b8.nz/#
 mx-host=b8.nz,mail.iankelling.org,10
 txt-record=b8.nz,"v=spf1 a ?all"
 
 mx-host=b8.nz,mail.iankelling.org,10
 txt-record=b8.nz,"v=spf1 a ?all"