File: isinstallable

package info (click to toggle)
grub-installer 1.213
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,020 kB
  • sloc: sh: 1,334; ansic: 128; makefile: 16
file content (47 lines) | stat: -rwxr-xr-x 824 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
. /usr/share/debconf/confmodule

log() {
	logger -t grub-installer "$@"
}

ARCH="$(archdetect)"

case $ARCH in
    i386/mac|amd64/mac)
	# Note: depends on partman-efi to load the efivars module!
	if [ -d /sys/firmware/efi ]; then
		log "GRUB not yet usable on Intel-based Macs booted using EFI"
		exit 1
	fi
	;;
    mipsel/loongson-2f)
	;;
    mipsel/*)
	log "GRUB not yet usable on MIPS systems other than Yeeloong"
	exit 1
	;;
    arm64/efi|armhf/efi)
	;;
    arm64/*)
	log "GRUB is only usable on EFI arm64 systems, not $ARCH"
	exit 1
	;;
    armhf/*)
	log "GRUB is only usable on EFI armhf systems, not $ARCH"
	exit 1
	;;
    riscv64/efi)
	;;
    riscv64/*)
	log "GRUB is only usable on EFI riscv64 systems, not $ARCH"
	exit 1
	;;
esac

db_get grub-installer/skip
if [ "$RET" = true ]; then
	exit 1
fi

exit 0