move grub2_map to correct place, right after package installation

This commit is contained in:
Tobias Powalowski 2011-02-09 15:22:39 +01:00
parent a850ed673c
commit ae3c8a7618

View file

@ -3636,8 +3636,6 @@ dogrub2_common_before() {
USE_DMRAID="" USE_DMRAID=""
RAID_ON_LVM="" RAID_ON_LVM=""
common_bootloader_checks common_bootloader_checks
get_grub2_map
} }
dogrub2_config() { dogrub2_config() {
@ -3827,7 +3825,7 @@ dogrub2_bios() {
# reset PACKAGES after installing # reset PACKAGES after installing
PACKAGES="" PACKAGES=""
fi fi
get_grub2_map
# try to auto-configure GRUB2... # try to auto-configure GRUB2...
if [[ "${PART_ROOT}" != "" ]]; then if [[ "${PART_ROOT}" != "" ]]; then
check_bootpart check_bootpart
@ -3975,7 +3973,7 @@ dogrub2_efi_common() {
run_pacman run_pacman
# reset PACKAGES after installing # reset PACKAGES after installing
PACKAGES="" PACKAGES=""
get_grub2_map
DISC=$(mount | grep ${DESTDIR}/boot/efi | cut -d' ' -f 1 | sed 's/\(.\{8\}\).*/\1/') DISC=$(mount | grep ${DESTDIR}/boot/efi | cut -d' ' -f 1 | sed 's/\(.\{8\}\).*/\1/')
if [[ "${DISC}" = "" ]]; then if [[ "${DISC}" = "" ]]; then