lots of fixes, automation for bitfolk
[distro-setup] / bitfolk-chroot-install
index 37e77b78a365e3b1bc400cf42f29a69bfa101471..a28efeec9ac9bffcb1f1c89d041a5339089a4561 100755 (executable)
@@ -42,8 +42,7 @@ cat >/root/.ssh/authorized_keys <<'EOF'
 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDX42yru/h6r6UDRy/VwVZjcYEmNLG5/SUjv7xwu43OaW0wL+uHYg2rkfn4Ygh5o1I5pgBh2SWg8TeWuVGhgL1SCuBzzeai/+58Sny065Qak+D2WjVOuRonRelh+CBA5EpNZPuiWQkoWdf9NACTBCbS2Zu7r8OOgRqu/ruaDNePlG5+U0Wlpy3oBnpbzQiuSA3AKMW30fsCJtOBjz5qQaiPbYEKJy3AOvtbq10wliKx9TpsTzrq8dKWs7PLhZnzqVCsaq6D95IzjqXcSpx4Cga5bn+YEuAnJQ53PGA5eO+hpz6HDmawTbJlaV/Dufb9bJ/ZZy1DXzs07yWRtTEY54/X ian@iankelling.org
 EOF
 
-
-# todo update this and hostname depending on host
+# https://tools.bitfolk.com/wiki/IPv6
 cat >/etc/network/interfaces <<EOF
 auto lo
 iface lo inet loopback
@@ -87,3 +86,16 @@ EOF
 cat >/etc/hostname <<EOF
 $host
 EOF
+
+# from fai/fai/config/scripts/FAIBASE/10-misc
+
+TIMEZONE=US/Eastern
+echo $TIMEZONE >/etc/timezone
+if [[ -L /etc/localtime ]]; then
+  ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime
+else
+  cp -f /usr/share/zoneinfo/${TIMEZONE} /etc/localtime
+fi
+
+
+echo $0 SUCCESS