summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/refind
blob: 45884af1178953e5443886981745ac23cc4cefce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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