install --owner=iank --group=iank -d fai/config/files/usr/local/bin/ssh_filter_btrbk.sh
rsync -atL /a/opt/btrbk/ssh_filter_btrbk.sh fai/config/files/usr/local/bin/ssh_filter_btrbk.sh/STANDARD
-m rsync -rlpt --delete --relative --exclude /fai/config/basefiles/ fai/config "${rpre[@]}"/srv
+m rsync -rlpt --delete --relative --exclude /fai/config/basefiles/ fai/config /a/opt/btrfs-progs-release/btrfs-progs-v6.3.2 "${rpre[@]}"/srv
# todo: automatically disable faiserver after a period so
# these files are not available.
# set these early so they are lowest priority.
echo FAIBASE STANDARD DEBIAN
+# note, this is where this file comes from:
+# cp /usr/share/keyrings/freesh-archive-keyring.gpg STANDARD.gpg
+
# For multi-boot system.
# We check that we aren't in a pxe boot environment.
fi
+# for btrfs bug reporting, install latest kernel and btrfs progs, as of
+# 2023-07-21
+case $HOSTNAME in
+ sy)
+ mkdir -p $FAI_ROOT/tmp/kernel-debs
+ cd $FAI_ROOT/tmp/kernel-debs
+ va=6.4.3
+ vb=$va-060403
+ vc=${vb}.202307110536
+ pre="https://kernel.ubuntu.com/~kernel-ppa/mainline/v$va/amd64/linux-"
+ urls=(
+ ${pre}headers-${vb}_${vc}_all.deb
+ ${pre}{headers,image-unsigned,modules}-${vb}-generic_${vc}_amd64.deb
+ )
+ wget "${urls[@]}"
+ chroot $FAI_ROOT make install
+
+ chroot $FAI_ROOT bash <<EOF
+cd /tmp/kernel-debs
+dpkg -i *.deb
+EOF
+
+ ;;
+ *)
+ chroot $FAI_ROOT apt-get install linux-libre
+ ;;
+esac
+
+cp -ra /srv/a/opt/btrfs-progs-release/btrfs-progs-v6.3.2 $FAI_ROOT/tmp/btrfs-progs
+chroot $FAI_ROOT bash <<EOF
+cd /tmp/btrfs-progs
+make install
+EOF
+
+
if ifclass LINODE; then
mkdir -p $target/etc/initramfs-tools/conf.d
cat >$target/etc/initramfs-tools/conf.d/mine <<EOF