# BULLSEYE_FREE, BULLSEYE_NONFREE
# BOOKWORM_FREE, BOOKWORM_NONFREE
# TESTING_FREE, TESTING_NONFREE,
-# XENIAL_FREE, BIONIC, FOCAL, FLIDAS, ETIONA, NABIA, ARAMO, ECNE, ECNE_MISSING (some noble packages).
+# XENIAL_FREE, BIONIC, FOCAL, FLIDAS, ETIONA, NABIA, ARAMO, ECNE, ECNE_MISSING (some noble packages, probably not needed for FSF server packages).
+#
+# Note: if we find we need to add ubuntu repos from a trisquel install,
+# after adding the sources.list, run:
+# apt-get -o Acquire::AllowInsecureRepositories=true update
+# apt-get -o Acquire::AllowInsecureRepositories=true install ubuntu-keyring
#
# It's all a little redundant in some cases, but it keeps things
# simpler.
export FAI_ROOT=/
fi
+
### dependencies
-{
- for f in $(dpkg-query -L btrfs-progs | grep '/man/|^/s?bin/|^/usr/lib/udev') ; do
- if [[ ! -f $f ]]; then
- continue
- fi
- # use --no-rename so that I don't need to track whether this was the first
- # btrfs-progs install.
- $ROOTCMD dpkg-divert --no-rename --local --add $f
- done
-
- # from packages listed in .github/workflows/devel.yml
- # The dumb makefile makes us build docs even if they were already built.
- if ! type -p sphinx-build &>/dev/null; then
- $ROOTCMD apt-get -y install python3-sphinx-rtd-theme
- fi
+# from packages listed in .github/workflows/devel.yml
+# The dumb makefile makes us build docs even if they were already built.
+if ! type -p sphinx-build &>/dev/null; then
+ $ROOTCMD apt-get -y install python3-sphinx-rtd-theme
+fi
- if ! type -p curl &>/dev/null; then
- $ROOTCMD apt-get -y install curl
- fi
- if ! type -p wget &>/dev/null; then
- $ROOTCMD apt-get -y install wget
+if ! type -p curl &>/dev/null; then
+ $ROOTCMD apt-get -y install curl
+fi
+if ! type -p wget &>/dev/null; then
+ $ROOTCMD apt-get -y install wget
+fi
+
+
+$ROOTCMD apt-get -y install btrfs-progs
+for f in $(dpkg-query -L btrfs-progs | grep -E '/man/|^/s?bin/|^/usr/lib/udev') ; do
+ if [[ ! -f $f ]]; then
+ continue
fi
-}
+ # use --no-rename so that I don't need to track whether this was the first
+ # btrfs-progs install.
+ $ROOTCMD dpkg-divert --no-rename --local --add $f
+done
## If we need to use a dev version temporarily, this to true
EOF
if ! fsf; then
cat >> /tmp/fai/fstab <<EOF
-/dev/mapper/crypt-${vgs[0]}-o /mnt/o btrfs nofail,$fstabstd,noatime,subvolid=0$mopts 0 0
+/dev/mapper/crypt-${vgs[0]}-o /mnt/o btrfs nofail,$fstabstd,noatime,subvolid=0$mopts_o 0 0
EOF
fi
rm -f /tmp/fai/crypttab
if [[ $HOSTNAME == x[23] ]]; then
mopts=,nodiscard,flushoncommit
+ mopts_o=$mopts,compress=zstd
+else
+ mopts_o=$mopts
fi
declare -A disk_excludes
esac
-#### begin btrfs-progs
+. $FAI/distro-install-common/new-btrfs-progs
## end get new kernel and btrfs-progs ##
-
-
-. $FAI/distro-install-common/new-btrfs-progs
curl is sometimes not preinstalled on a live cd.
Alternative to http server:
-1. on install machine nc -l 1234 | sudo bash
+1. on install machine nc -l 1234 | sudo bash. (note: the other nc is: nc -l -p 1234)
2. On another machine nc INSTALL_MACHINE 1234 <live-kexec
Obviously beware that anyone on your network could send commands to the install machine.