EFIROOT=/EFI/debian
export LC_COLLATE=C
+ARCHITECTURE=$(dpkg --print-installation-architecture)
+
## catch signals, clean up junk in /tmp.
trap "cleanup" 0
trap "cleanup; exit 129" HUP
CONFERR=1
fi
+ # efibootmgr needs efivars, make sure kernel module is loaded
+ if modprobe -q efivars ; then
+ echo "Loaded efivars kernel module to enable use of efibootmgr"
+ fi
+
if [ ! -d /proc/efi/vars ] && [ ! -d /sys/firmware/efi/vars ] && [ "$efiboot" = 1 ] ; then
echo 1>&2 "$PRG: no efi/vars under /proc or /sys/firmware, boot menu not updated"
efiboot=0
default=$label
" > "$TMPCONF" || return 1
-if [ -d /proc/sgi_sn ]
+if [ "$ARCHITECTURE" = "ia64" ]
then
- # aha! This is an SGI Altix, and they need the relocatable option.
echo "relocatable" >> "$TMPCONF" || return 1
fi