diff options
author | Holger Paradies <retabell@gmx.de> | 2024-03-09 12:07:14 +0100 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2024-03-09 12:13:59 +0100 |
commit | ea2ed4c3e31318f058d6c41a5e67f46fdfa8e2ff (patch) | |
tree | 54f6a3fea252bb4a90fac854145b3f772c730ac0 /config/chroot_local-hooks | |
parent | e20b4059cad4c995ebd6771508c43fbbc2be4a93 (diff) | |
download | kanotix-ea2ed4c3e31318f058d6c41a5e67f46fdfa8e2ff.zip kanotix-ea2ed4c3e31318f058d6c41a5e67f46fdfa8e2ff.tar.gz |
Prepare Refind on amd64
install refind on iso but do not activate
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-x | config/chroot_local-hooks/refind | 25 |
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 |