From ea2ed4c3e31318f058d6c41a5e67f46fdfa8e2ff Mon Sep 17 00:00:00 2001 From: Holger Paradies Date: Sat, 9 Mar 2024 12:07:14 +0100 Subject: Prepare Refind on amd64 install refind on iso but do not activate --- config/chroot_local-hooks/refind | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 config/chroot_local-hooks/refind 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 -- cgit v1.0