mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add firmware, reboot and halt to default grub.cfg
This commit is contained in:
parent
e30f96e467
commit
a52cecb96c
1 changed files with 16 additions and 0 deletions
|
@ -900,6 +900,22 @@ fi
|
|||
EOF
|
||||
fi
|
||||
fi
|
||||
if [[ -n "${_UEFI_BOOT}" ]]; then
|
||||
cat << EOF >> "${_DESTDIR}/${_GRUB_PREFIX_DIR}/${_GRUB_CFG}"
|
||||
menuentry "UEFI Firmware Setup" {
|
||||
fwsetup
|
||||
}
|
||||
EOF
|
||||
fi
|
||||
cat << EOF >> "${_DESTDIR}/${_GRUB_PREFIX_DIR}/${_GRUB_CFG}"
|
||||
menuentry "Reboot System" {
|
||||
reboot
|
||||
}
|
||||
|
||||
menuentry "Poweroff System" {
|
||||
halt
|
||||
}
|
||||
EOF
|
||||
## copy ter-u16n.pf2 font file
|
||||
[[ -d ${_DESTDIR}/${_GRUB_PREFIX_DIR}/fonts ]] || mkdir -p "${_DESTDIR}/${_GRUB_PREFIX_DIR}/fonts"
|
||||
cp -f "${_DESTDIR}/usr/share/grub/ter-u16n.pf2" "${_DESTDIR}/${_GRUB_PREFIX_DIR}/fonts/ter-u16n.pf2"
|
||||
|
|
Loading…
Reference in a new issue