add newer kernels
authorIan Kelling <iank@fsf.org>
Sat, 22 Jul 2023 04:34:44 +0000 (00:34 -0400)
committerIan Kelling <iank@fsf.org>
Sat, 22 Jul 2023 04:34:44 +0000 (00:34 -0400)
fai-redep
fai/config/class/50-host-classes
fai/config/package_config/STANDARD.gpg [new file with mode: 0644]
fai/config/scripts/IANK/11-iank

index dc134894dcdcc4b2c83840037861dfbf679ca378..de195d56e4893f7c39285604781bcee52fe57d7c 100755 (executable)
--- a/fai-redep
+++ b/fai-redep
@@ -76,7 +76,7 @@ install --owner=iank --group=iank -d fai/config/files/usr/local/bin/hssh
 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.
index a59ff3b41fce2602c827f8b553033adc39423d0d..600fd1add4afb35979d867b8957c1c059672482e 100755 (executable)
@@ -8,6 +8,9 @@
 # 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.
diff --git a/fai/config/package_config/STANDARD.gpg b/fai/config/package_config/STANDARD.gpg
new file mode 100644 (file)
index 0000000..465f673
Binary files /dev/null and b/fai/config/package_config/STANDARD.gpg differ
index e65510b53ea3602d8ebfa841aa05a72997f48582..43fc13bcf5ff83db61307ac733f38278f6019573 100755 (executable)
@@ -202,6 +202,41 @@ EOF
 
 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