summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2024-03-09 12:07:14 +0100
committerHolger Paradies <retabell@gmx.de>2024-03-09 12:13:59 +0100
commitea2ed4c3e31318f058d6c41a5e67f46fdfa8e2ff (patch)
tree54f6a3fea252bb4a90fac854145b3f772c730ac0
parente20b4059cad4c995ebd6771508c43fbbc2be4a93 (diff)
downloadkanotix-ea2ed4c3e31318f058d6c41a5e67f46fdfa8e2ff.zip
kanotix-ea2ed4c3e31318f058d6c41a5e67f46fdfa8e2ff.tar.gz
Prepare Refind on amd64
install refind on iso but do not activate
-rwxr-xr-xconfig/chroot_local-hooks/refind25
1 files changed, 25 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/refind b/config/chroot_local-hooks/refind
new file mode 100755
index 0000000..45884af
--- /dev/null
+++ b/config/chroot_local-hooks/refind
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+for file in /root/config/*; do [ -r $file ] && . $file; done
+
+case "${LB_DISTRIBUTION}" in
+
+whezzy|jessie|stretch|buster|bullseye)
+ exit 0
+ ;;
+*)
+if [ "$LB_ARCHITECTURE" = "amd64" ]; then
+
+cat << EOF | debconf-set-selections
+refind refind/install_to_esp boolean false
+EOF
+
+DEBIAN_FRONTEND=noninteractive apt-get install -y refind
+
+cat << EOF | debconf-set-selections
+refind refind/install_to_esp boolean true
+EOF
+
+fi
+ ;;
+esac