File: isinstallable

package info (click to toggle)
systemd-boot-installer 0.11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 372 kB
  • sloc: sh: 52; makefile: 3
file content (20 lines) | stat: -rwxr-xr-x 334 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
. /usr/share/debconf/confmodule

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

ARCH="$(archdetect)"

case $ARCH in
    amd64/efi|arm64/efi|loong64/efi|riscv64/efi)
	;;
    *)
	logger -t systemd-boot-installer "systemd-boot is only usable on 64bit EFI systems, not $ARCH"
	exit 1
	;;
esac

exit 0