echo " --mount, -m Try to mount /boot/efi first"
echo " --verbose, -v Verbose output"
echo " --force Force file updates"
+ echo " --auto Automatic run from packages %post"
}
msg () {
echo -n "$*" | tr -c '[a-zA-Z0-9_]' '_'
}
+ALLOW_AUTO="no"
FORCE_UPDATES="no"
MOUNT_EFI_PARTITION="no"
LABEL_PREFIX=""
-DEFAULT=""
VERBOSE="no"
[ -e /etc/efi-boot/update.conf ] && . /etc/efi-boot/update.conf
+AUTO_RUN=no
+
while [ -n "$*" ] ; do
local arg
arg="$1"
--force)
FORCE_UPDATES="yes"
;;
+ --auto)
+ is_yes "$ALLOW_AUTO" || exit 0
+ AUTO_RUN=yes
+ ;;
*)
usage >&2
exit 2
fi
fi
+if ! is_yes "$ALLOW_AUTO" && ! is_yes "$AUTO_RUN"; then
+ msg "ALLOW_AUTO is not enabled in /etc/efi-boot/update.conf,"
+ msg "files will not be automatically updated on upgrades."
+fi
+
# vi: ft=sh sw=4 sts=4 et
+
+# Set to 'yes' to allow efi-boot-update being run automatically
+ALLOW_AUTO=no
+
+# Prefix for all module labels
LABEL_PREFIX="PLD "
+
+# Preferred boot order
ORDER="grub shellx64"
+
+# subdirectory on the EFI system partition to put files in
PLATFORM_DIR="pld-linux/@ARCH@"
+
+# vi: ft=sh