Skip to content
Snippets Groups Projects
Commit c861d41e authored by Canek Peláez Valdés's avatar Canek Peláez Valdés :slight_smile:
Browse files

Add a MOUNT_BOOT_EFI option to mount a separate EFI partition. Thanks

to Stefan G. Weichinger <lists@xunil.at>.
parent ffb22dc3
Branches
No related tags found
No related merge requests found
...@@ -167,6 +167,10 @@ function make_initrd() { ...@@ -167,6 +167,10 @@ function make_initrd() {
function update_bootmanager_grub2() { function update_bootmanager_grub2() {
einfo "Updating GRUB2..." einfo "Updating GRUB2..."
if [ "${MOUNT_BOOT_EFI}" == "yes" ]; then
einfo "Mounting EFI boot directory..."
/bin/mountpoint -q /boot/efi || /bin/mount /boot/efi
fi
/usr/sbin/grub2-mkconfig -o "${GRUB2_CONFIG_FILE}" &>> "${LOGFILE}" || die /usr/sbin/grub2-mkconfig -o "${GRUB2_CONFIG_FILE}" &>> "${LOGFILE}" || die
} }
......
...@@ -32,3 +32,6 @@ UPDATE_KERNEL_CONFIG="no" ...@@ -32,3 +32,6 @@ UPDATE_KERNEL_CONFIG="no"
# Included files # Included files
#INCLUDES="" #INCLUDES=""
# Whether to mount a separate EFI boot-dir before updating GRUB2
MOUNT_BOOT_EFI="yes"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment