diff options
Diffstat (limited to 'config/chroot_local-hooks/refind')
-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 |