/lib/recovery-mode/options/grub is in friendly-recovery 0.2.25.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/sh
. /lib/recovery-mode/l10n.sh
if [ "$1" = "test" ]; then
echo $(eval_gettext "Update grub bootloader")
exit 0
fi
# FIXME: add this too? how to find out boot device?
# add menu to ask?
#grub-install
update-grub
echo ""
echo $(eval_gettext "Finished, please press ENTER")
read TMP
exit 0
|