#254 Issue closed: bootloader grub2 issue [OpenSuSe 12.2]

Labels: waiting for info, support / question

porrier opened issue at 2013-06-21 16:24:

Executing rear mkrescue I get the following error:

ERROR: Unknown boot loader grub2 found in '/etc/sysconfig/bootloader'
Aborting due to an error, check /var/log/rear/rear-itxnew.log for details

2013-06-21 18:15:54 Relax-and-Recover 1.14 / Git
2013-06-21 18:15:54 Command line options: /usr/sbin/rear mkrescue
2013-06-21 18:15:54 Including conf/Linux-i386.conf
2013-06-21 18:15:54 Including conf/GNU/Linux.conf
2013-06-21 18:15:54 Including conf/SUSE_LINUX.conf
2013-06-21 18:15:54 Including /etc/rear/local.conf
2013-06-21 18:15:54 Using build area '/tmp/rear.qbEMeG9K3ozZuo6'
2013-06-21 18:15:54 Running mkrescue workflow
2013-06-21 18:15:54 Running 'prep' stage
2013-06-21 18:15:54 Including prep/default/00_remove_workflow_conf.sh
2013-06-21 18:15:54 Including prep/default/02_translate_url.sh
2013-06-21 18:15:54 Including prep/default/03_translate_tape.sh
2013-06-21 18:15:54 Including prep/GNU/Linux/20_include_agetty.sh
2013-06-21 18:15:54 Including prep/GNU/Linux/21_include_dhclient.sh
2013-06-21 18:15:54 Including prep/GNU/Linux/22_include_lvm_tools.sh
2013-06-21 18:15:54 Device mapper found enabled. Including LVM tools.
2013-06-21 18:15:54 Including prep/GNU/Linux/23_include_md_tools.sh
2013-06-21 18:15:54 Including prep/GNU/Linux/28_include_systemd.sh
2013-06-21 18:15:55 Including systemd (init replacement) tool-set to bootstrap Relax-and-Recover
2013-06-21 18:15:55 Including prep/GNU/Linux/28_include_vmware_tools.sh
2013-06-21 18:15:55 Including prep/GNU/Linux/29_include_drbd.sh
2013-06-21 18:15:55 Including prep/GNU/Linux/30_check_backup_and_output_url.sh
2013-06-21 18:15:55 Including prep/GNU/Linux/30_include_grub_tools.sh
2013-06-21 18:15:55 Finished running 'prep' stage in 1 seconds
2013-06-21 18:15:55 Running 'layout/save' stage
2013-06-21 18:15:55 Including layout/save/GNU/Linux/10_create_layout_file.sh
2013-06-21 18:15:55 Creating disk layout
2013-06-21 18:15:55 Preparing layout directory.
2013-06-21 18:15:55 Removing old layout file.
2013-06-21 18:15:55 Including layout/save/GNU/Linux/20_partition_layout.sh
2013-06-21 18:15:55 Saving disk partitions.
2013-06-21 18:15:56 Including layout/save/GNU/Linux/21_raid_layout.sh
2013-06-21 18:15:56 Including layout/save/GNU/Linux/22_lvm_layout.sh
2013-06-21 18:15:56 Saving LVM layout.
  No volume groups found
  No volume groups found
2013-06-21 18:15:56 Including layout/save/GNU/Linux/23_filesystem_layout.sh
2013-06-21 18:15:56 Saving Filesystem layout.
2013-06-21 18:15:57 Including layout/save/GNU/Linux/24_swaps_layout.sh
2013-06-21 18:15:57 Saving Swap information.
2013-06-21 18:15:57 Including layout/save/GNU/Linux/25_drbd_layout.sh
2013-06-21 18:15:57 Including layout/save/GNU/Linux/26_crypt_layout.sh
2013-06-21 18:15:57 Saving Encrypted volumes.
2013-06-21 18:15:57 Device Mapper name No not found in /dev/mapper.
2013-06-21 18:15:57 Including layout/save/GNU/Linux/27_hpraid_layout.sh
2013-06-21 18:15:57 Including layout/save/GNU/Linux/28_multipath_layout.sh
2013-06-21 18:15:57 Did not find multipath device No in the expected location.
2013-06-21 18:15:57 Including layout/save/default/30_list_dependencies.sh
2013-06-21 18:15:57 Including layout/save/default/31_include_exclude.sh
2013-06-21 18:15:57 Including layout/save/default/32_autoexclude.sh
2013-06-21 18:15:57 Including layout/save/default/33_remove_exclusions.sh
2013-06-21 18:15:57 Including layout/save/default/34_generate_mountpoint_device.sh
2013-06-21 18:15:57 Including layout/save/GNU/Linux/35_copy_drbdtab.sh
2013-06-21 18:15:57 Including layout/save/GNU/Linux/50_extract_vgcfg.sh
  No volume groups found
2013-06-21 18:15:57 Including layout/save/GNU/Linux/51_current_disk_usage.sh
2013-06-21 18:15:57 Including layout/save/SUSE_LINUX/60_create_mkbootloader.sh
2013-06-21 18:15:57 ERROR: Unknown boot loader grub2 found in '/etc/sysconfig/bootloader'
=== Stack trace ===
Trace 0: /usr/sbin/rear:245 main
Trace 1: /usr/share/rear/lib/mkrescue-workflow.sh:33 WORKFLOW_mkrescue
Trace 2: /usr/share/rear/lib/framework-functions.sh:79 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:40 Source
Trace 4: /usr/share/rear/layout/save/SUSE_LINUX/60_create_mkbootloader.sh:26 source
Message: Unknown boot loader grub2 found in '/etc/sysconfig/bootloader'
===================
2013-06-21 18:15:57 Running exit tasks.
2013-06-21 18:15:57 Finished in 3 seconds
2013-06-21 18:15:57 Removing build area /tmp/rear.qbEMeG9K3ozZuo6
2013-06-21 18:15:57 End of program reached

This is the content of /etc/sysconfig/bootloader:

# grep -v ^# bootloader
LOADER_TYPE="grub2"
DEFAULT_APPEND="   video=1440x900 resume=/dev/sda1 splash=silent quiet showopts"
DEFAULT_VGA=""
FAILSAFE_APPEND=""
FAILSAFE_VGA=""
XEN_KERNEL_APPEND="   video=1440x900 resume=/dev/sda1 splash=silent quiet showopts"
XEN_APPEND=""
XEN_VGA=""
CYCLE_DETECTION="no"
CYCLE_NEXT_ENTRY="1"
LOADER_LOCATION=""

I run an openSUSE 12.2 and installed rear-1.14-3.noarch.rpm

Can this be fixed?

Andreas

gdha commented at 2013-07-11 06:47:

The /usr/share/rear/layout/save/SUSE_LINUX/60_create_mkbootloader.sh script has been removed - please update the rear-1.14git (git pull)

commit 29b7d36c430cd1b5587d21f06980e22684859369
Author: Jeroen Hoekx jeroen@hoekx.be
Date: Fri Feb 8 11:00:49 2013 +0100

Remove special handling of Suse bootloader.

Using the Suse saved bootloader information does not work when restoring to a
system with a different layout.

gdha commented at 2013-08-09 12:03:

@porrier did you found the time to test it again with an updated repo?

porrier commented at 2013-08-09 12:10:

Hello!

No, I didn't find the time yet. To test it, I need an actual
rear-1.14-x.noarch.rpm. Don't know anything about git.

Andreas

gdha notifications@github.com wrote:

@porrier did you found the time to test it again with an updated repo?


Reply to this email directly or view it on GitHub:
https://github.com/rear/rear/issues/254#issuecomment-22390115

porrier commented at 2013-08-16 13:04:

Updated to the newest git and the problem with GRUB seems to be solved!

rear -V

Relax-and-Recover 1.14-git201308130912 / 2013-08-13


[Export of Github issue for rear/rear.]