#2356 Issue closed
: rear mkrescue fails with "Cannot autodetect what is used as bootloader"¶
Labels: support / question
, fixed / solved / done
rog2e opened issue at 2020-04-09 18:32:¶
Trying to follow the Documentation for Rubrik but fails on step. 4 (running the mkrescue).
-
ReaR version ("/usr/sbin/rear -V"): 2.4
-
OS version ("cat /etc/rear/os.conf" or "lsb_release -a" or "cat /etc/os-release"): Redhat Enterpirse Linux 7.6
-
ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):
```
# Default is to create Relax-and-Recover rescue media as ISO image
# set OUTPUT to change that
# set BACKUP to activate an automated (backup and) restore of your data
# Possible configuration values can be found in /usr/share/rear/conf/default.conf
#
# This file (local.conf) is intended for manual configuration. For configuration
# through packages and other automated means we recommend creating a new
# file named site.conf next to this file and to leave the local.conf as it is.
# Our packages will never ship with a site.conf.
OUTPUT=ISO
BACKUP=CDM
```
-
Hardware: Dell FC430 Server
-
System architecture: x86 compatible
-
Firmware : UEFI GRUB
-
Storage: Local SSD RAID1 Using (2) drives with Dell Perc S130 Software RAID
-
Storage layout ("lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,SIZE,MOUNTPOINT" or "lsblk" as makeshift):
```
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 186.3G 0 disk
└─md127 9:127 0 186.2G 0 raid1
├─md127p1 259:0 0 200M 0 md /boot/efi
├─md127p2 259:1 0 1G 0 md /boot
└─md127p3 259:2 0 184.9G 0 md
├─rhel_39--haproxy1-root 253:0 0 134.3G 0 lvm /
├─rhel_39--haproxy1-swap 253:1 0 4G 0 lvm [SWAP]
└─rhel_39--haproxy1-home 253:2 0 46.6G 0 lvm /home
sdb 8:16 0 186.3G 0 disk
└─md127 9:127 0 186.2G 0 raid1
├─md127p1 259:0 0 200M 0 md /boot/efi
├─md127p2 259:1 0 1G 0 md /boot
└─md127p3 259:2 0 184.9G 0 md
├─rhel_39--haproxy1-root 253:0 0 134.3G 0 lvm /
├─rhel_39--haproxy1-swap 253:1 0 4G 0 lvm [SWAP]
└─rhel_39--haproxy1-home 253:2 0 46.6G 0 lvm /home
```
- Description of the issue (ideally so that others can reproduce
it):
When I run rear -V mkrescue I get:
```
[root@39-haproxy1 recovery]# rear -v mkrescue
Relax-and-Recover 2.4 / Git
Using log file: /var/log/rear/rear-39-haproxy1.log
Using UEFI Boot Loader for Linux (USING_UEFI_BOOTLOADER=1)
Creating disk layout
ERROR: Cannot autodetect what is used as bootloader, see default.conf about 'BOOTLOADER'
Aborting due to an error, check /var/log/rear/server.log for details
Exiting rear mkrescue (PID 159504) and its descendant processes
Running exit tasks
Terminated
```
- Workaround, if any:
NONE
- Attachments, as applicable ("rear -D mkrescue/mkbackup/recover" debug log files):
Rear.log file:
```
2020-04-09 13:51:59.797581930 Relax-and-Recover 2.4 / Git
2020-04-09 13:51:59.798786067 Command line options: /usr/sbin/rear -v mkrescue
2020-04-09 13:51:59.799855584 Using log file: /var/log/rear/rear-39-haproxy1.log
2020-04-09 13:51:59.801463218 Including /etc/rear/os.conf
2020-04-09 13:51:59.804979082 Including conf/Linux-i386.conf
2020-04-09 13:51:59.806590551 Including conf/GNU/Linux.conf
2020-04-09 13:51:59.827078270 Including /etc/rear/local.conf
2020-04-09 13:51:59.829917179 ======================
2020-04-09 13:51:59.830940985 Running 'init' stage
2020-04-09 13:51:59.831893752 ======================
2020-04-09 13:51:59.838900198 Including init/default/005_verify_os_conf.sh
2020-04-09 13:51:59.843331676 Including init/default/010_set_drlm_env.sh
2020-04-09 13:51:59.847503590 Including init/default/030_update_recovery_system.sh
2020-04-09 13:51:59.851469774 Including init/default/050_check_rear_recover_mode.sh
2020-04-09 13:51:59.852860674 Finished running 'init' stage in 0 seconds
2020-04-09 13:51:59.861126156 Using build area '/tmp/rear.MMJUu89jyBzQRdK'
mkdir: created directory '/tmp/rear.MMJUu89jyBzQRdK/rootfs'
mkdir: created directory '/tmp/rear.MMJUu89jyBzQRdK/tmp'
2020-04-09 13:51:59.864892907 Running mkrescue workflow
2020-04-09 13:51:59.866293049 ======================
2020-04-09 13:51:59.867504738 Running 'prep' stage
2020-04-09 13:51:59.868869306 ======================
2020-04-09 13:51:59.876477802 Including prep/default/005_remove_workflow_conf.sh
mkdir: created directory '/tmp/rear.MMJUu89jyBzQRdK/rootfs/etc'
mkdir: created directory '/tmp/rear.MMJUu89jyBzQRdK/rootfs/etc/rear'
2020-04-09 13:51:59.883033700 Including prep/default/020_translate_url.sh
2020-04-09 13:51:59.887406768 Including prep/default/030_translate_tape.sh
2020-04-09 13:51:59.892122659 Including prep/default/040_check_backup_and_output_scheme.sh
2020-04-09 13:51:59.896593900 Including prep/default/050_check_keep_old_output_copy_var.sh
2020-04-09 13:51:59.900524991 Including prep/default/100_init_workflow_conf.sh
2020-04-09 13:51:59.906121645 Including prep/GNU/Linux/200_include_getty.sh
2020-04-09 13:51:59.932268406 Including prep/GNU/Linux/200_include_serial_console.sh
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: getty: not found
2020-04-09 13:51:59.943085133 Including prep/GNU/Linux/210_include_dhclient.sh
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: dhcpcd: not found
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: dhcp6c: not found
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: dhclient6: not found
2020-04-09 13:51:59.965910541 Including prep/GNU/Linux/220_include_lvm_tools.sh
2020-04-09 13:51:59.967867285 Device mapper found enabled. Including LVM tools.
2020-04-09 13:52:00.010914631 Including prep/GNU/Linux/230_include_md_tools.sh
2020-04-09 13:52:00.013544104 Software RAID detected. Including mdadm tools.
2020-04-09 13:52:00.018445018 Including prep/GNU/Linux/240_include_multipath_tools.sh
2020-04-09 13:52:00.022964067 Including prep/GNU/Linux/280_include_systemd.sh
2020-04-09 13:52:00.040272350 Including systemd (init replacement) tool-set to bootstrap Relax-and-Recover
2020-04-09 13:52:00.044573581 Including prep/GNU/Linux/280_include_virtualbox.sh
2020-04-09 13:52:00.053494285 Including prep/GNU/Linux/280_include_vmware_tools.sh
2020-04-09 13:52:00.061789439 Including prep/GNU/Linux/290_include_drbd.sh
2020-04-09 13:52:00.069777993 Including prep/GNU/Linux/300_check_backup_and_output_url.sh
2020-04-09 13:52:00.074395100 Including prep/ISO/default/300_check_iso_dir.sh
2020-04-09 13:52:00.078532511 Including prep/GNU/Linux/300_include_grub_tools.sh
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: grub-probe: not found
2020-04-09 13:52:00.097265870 Including prep/GNU/Linux/310_include_cap_utils.sh
2020-04-09 13:52:00.101774181 Including prep/ISO/default/320_check_cdrom_size.sh
2020-04-09 13:52:00.105922787 ISO Directory '/var/lib/rear/output' [/dev/mapper/rhel_39--haproxy1-root] has 130465 MB free space
2020-04-09 13:52:00.110693198 Including prep/default/320_include_uefi_env.sh
2020-04-09 13:52:00.121988133 Using UEFI Boot Loader for Linux (USING_UEFI_BOOTLOADER=1)
2020-04-09 13:52:00.127761048 Including prep/ISO/GNU/Linux/320_verify_mkisofs.sh
2020-04-09 13:52:00.129245229 Using '/bin/mkisofs' to create ISO images
2020-04-09 13:52:00.133389998 Including prep/ISO/Linux-i386/330_find_isolinux.sh
2020-04-09 13:52:00.142848533 Including prep/default/330_include_uefi_tools.sh
2020-04-09 13:52:00.147286805 Including prep/ISO/GNU/Linux/340_add_isofs_module.sh
2020-04-09 13:52:00.153664242 Including prep/default/380_include_opal_tools.sh
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: sedutil-cli: not found
2020-04-09 13:52:00.157864041 Including prep/default/400_save_directories.sh
/boot 555 root root
/boot/efi 700 root root
/home 755 root root
2020-04-09 13:52:00.259540011 FHS directory /usr/X11R6 does not exist
2020-04-09 13:52:00.295989127 Including prep/default/950_check_missing_programs.sh
2020-04-09 13:52:00.300530118 Finished running 'prep' stage in 1 seconds
2020-04-09 13:52:00.301670420 ======================
2020-04-09 13:52:00.302748566 Running 'layout/save' stage
2020-04-09 13:52:00.303815132 ======================
2020-04-09 13:52:00.311529874 Including layout/save/GNU/Linux/100_create_layout_file.sh
2020-04-09 13:52:00.313012800 Creating disk layout
2020-04-09 13:52:00.314582787 Preparing layout directory.
2020-04-09 13:52:00.322482341 Removing old layout file.
2020-04-09 13:52:00.328510559 Including layout/save/GNU/Linux/150_save_diskbyid_mappings.sh
2020-04-09 13:52:00.458784430 Saved diskbyid_mappings
2020-04-09 13:52:00.462787474 Including layout/save/GNU/Linux/190_opaldisk_layout.sh
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: sedutil-cli: not found
2020-04-09 13:52:00.467229674 Including layout/save/GNU/Linux/200_partition_layout.sh
2020-04-09 13:52:00.479814297 Saving disk partitions.
Error: /dev/sda: unrecognised disk label
Error: /dev/sdb: unrecognised disk label
2020-04-09 13:52:00.523436248 Including layout/save/GNU/Linux/210_raid_layout.sh
2020-04-09 13:52:00.526554355 Saving Software RAID configuration.
2020-04-09 13:52:00.648336096 Including layout/save/GNU/Linux/220_lvm_layout.sh
2020-04-09 13:52:00.650031048 Saving LVM layout.
2020-04-09 13:52:00.774472936 Including layout/save/GNU/Linux/230_filesystem_layout.sh
2020-04-09 13:52:00.776074702 Begin saving filesystem layout
2020-04-09 13:52:00.778866872 Saving filesystem layout (using the findmnt command).
2020-04-09 13:52:00.930630673 End saving filesystem layout
2020-04-09 13:52:00.935123769 Including layout/save/GNU/Linux/240_swaps_layout.sh
2020-04-09 13:52:00.936796776 Saving Swap information.
2020-04-09 13:52:00.953430022 Including layout/save/GNU/Linux/250_drbd_layout.sh
2020-04-09 13:52:00.958301030 Including layout/save/GNU/Linux/260_crypt_layout.sh
2020-04-09 13:52:00.959879909 Saving Encrypted volumes.
2020-04-09 13:52:00.967990821 Including layout/save/GNU/Linux/270_hpraid_layout.sh
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: hpacucli: not found
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: hpssacli: not found
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: ssacli: not found
2020-04-09 13:52:00.971849099 Including layout/save/GNU/Linux/280_multipath_layout.sh
2020-04-09 13:52:00.979399656 Including layout/save/default/300_list_dependencies.sh
2020-04-09 13:52:01.051588286 Including layout/save/default/310_autoexclude_usb.sh
2020-04-09 13:52:01.056463222 Including layout/save/default/310_include_exclude.sh
2020-04-09 13:52:01.060908382 Including layout/save/default/320_autoexclude.sh
2020-04-09 13:52:01.202435610 Including layout/save/default/330_remove_exclusions.sh
2020-04-09 13:52:01.210416983 Including layout/save/default/335_remove_excluded_multipath_vgs.sh
2020-04-09 13:52:01.214713392 Including layout/save/GNU/Linux/340_false_blacklisted.sh
2020-04-09 13:52:01.222547411 Including layout/save/default/340_generate_mountpoint_device.sh
2020-04-09 13:52:01.264030821 Including layout/save/GNU/Linux/350_copy_drbdtab.sh
2020-04-09 13:52:01.268663347 Including layout/save/default/350_save_partitions.sh
2020-04-09 13:52:01.272740194 Including layout/save/default/400_check_backup_special_files.sh
2020-04-09 13:52:01.276737306 Including layout/save/default/445_guess_bootloader.sh
4+0 records in
4+0 records out
2048 bytes (2.0 kB) copied, 4.5481e-05 s, 45.0 MB/s
2020-04-09 13:52:01.307585363 No known bootloader matches the first bytes on /dev/sda
2020-04-09 13:52:01.308872726 Begin of strings in the first bytes on /dev/sda
2020-04-09 13:52:01.310858373 End of strings in the first bytes on /dev/sda
4+0 records in
4+0 records out
2048 bytes (2.0 kB) copied, 4.4068e-05 s, 46.5 MB/s
2020-04-09 13:52:01.330885602 No known bootloader matches the first bytes on /dev/sdb
2020-04-09 13:52:01.332325727 Begin of strings in the first bytes on /dev/sdb
2020-04-09 13:52:01.334538712 End of strings in the first bytes on /dev/sdb
2020-04-09 13:52:01.336102373 ERROR: Cannot autodetect what is used as bootloader, see default.conf about 'BOOTLOADER'
==== Stack trace ====
Trace 0: /usr/sbin/rear:543 main
Trace 1: /usr/share/rear/lib/mkrescue-workflow.sh:14 WORKFLOW_mkrescue
Trace 2: /usr/share/rear/lib/framework-functions.sh:101 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:49 Source
Trace 4: /usr/share/rear/layout/save/default/445_guess_bootloader.sh:104 source
Message: Cannot autodetect what is used as bootloader, see default.conf about 'BOOTLOADER'
== End stack trace ==
2020-04-09 13:52:01.341643730 Exiting rear mkrescue (PID 159504) and its descendant processes
2020-04-09 13:52:02.373664844 rear,159504 /usr/sbin/rear -v mkrescue
`-rear,161006 /usr/sbin/rear -v mkrescue
`-pstree,161007 -Aplau 159504
/usr/share/rear/lib/_input-output-functions.sh: line 157: kill: (161010) - No such process
2020-04-09 13:52:02.411333555 Running exit tasks
2020-04-09 13:52:02.412892913 Finished in 3 seconds
2020-04-09 13:52:02.414293331 Removing build area /tmp/rear.MMJUu89jyBzQRdK
removed directory: '/tmp/rear.MMJUu89jyBzQRdK'
2020-04-09 13:52:02.421352635 End of program reached
```
abbbi commented at 2020-04-09 19:11:¶
hi
is your system running on regular BIOS or UEFI? According to the log
output it detects
UEFI bios but in your report you tell its a regular BIOS?
Anyway, mkrescue fails to detect an known bootloader on any of your
devices.
If you are running mkrescue with debug mode the temporary directory in
/tmp/rear.<random_number> should be left over after execution.
There you should find a file named "bootloader_area_strings" which
should contain more information about whats in the first bytes on the
disk.
rog2e commented at 2020-04-09 19:27:¶
Oh sorry yes it is UEFI GRUB not BIOS. I will try the debug mode. Thanks
rog2e commented at 2020-04-09 19:43:¶
OK I ran debug mode.
```
[root@39-haproxy1 tmp]# rear -d -v mkrescue
Relax-and-Recover 2.4 / Git
Using log file: /var/log/rear/rear-39-haproxy1.log
Using UEFI Boot Loader for Linux (USING_UEFI_BOOTLOADER=1)
Creating disk layout
ERROR: Cannot autodetect what is used as bootloader, see default.conf about 'BOOTLOADER'
Aborting due to an error, check /var/log/rear/rear-39-haproxy1.log for details
Exiting rear mkrescue (PID 179247) and its descendant processes
Running exit tasks
You should also rm -Rf /tmp/rear.sBlYOwS6OTgjYrC
Terminated
```
I went to the directory and saw the file you mentioned however it was empty. All other files had something in it.
```
[root@39-haproxy1 rear.sBlYOwS6OTgjYrC]# cd tmp
[root@39-haproxy1 tmp]# ls
bootloader_area_strings mdraid parted partitions partitions-data partitions_unsorted
[root@39-haproxy1 tmp]# cat bootloader_area_strings
[root@39-haproxy1 tmp]#
```
Could this be because I am using this Dell Perc 150 Software RAID1 on my server?
abbbi commented at 2020-04-10 06:45:¶
hi,
please attach the debug logging that was created.
The following code is used to read the first bytes from the disk to
guess the bootloader:
bootloader_area_strings_file="$TMP_DIR/bootloader_area_strings"
block_size=$( get_block_size ${disk_device##*/} )
dd if=$disk_device bs=$block_size count=4 | strings >$bootloader_area_strings_file
maybe there is an issue where the block size is wrongly guessed for your
disk and as such
no data is read? Just an assumption. Debug log should clarify.
From the regular log it is to be seen that at least some data is read from disk:
2020-04-09 13:52:01.310858373 End of strings in the first bytes on /dev/sda
4+0 records in
4+0 records out
2048 bytes (2.0 kB) copied, 4.4068e-05 s, 46.5 MB/s
rog2e commented at 2020-04-10 13:36:¶
Hello is the debug logging placed in the same location as normal logging if so here it is? I just ran it again this morning. Or is it in that tmp directory with the generated characters?
```
[root@39-haproxy1 rear]# cat /var/log/rear/rear-39-haproxy1.log
2020-04-10 09:26:35.309770727 Relax-and-Recover 2.4 / Git
2020-04-10 09:26:35.311210909 Command line options: /usr/sbin/rear -d -v mkrescue
2020-04-10 09:26:35.312478651 Using log file: /var/log/rear/rear-39-haproxy1.log
2020-04-10 09:26:35.313921116 Current set of flags is 'hB'
2020-04-10 09:26:35.315020464 The debugscripts flags are 'x'
2020-04-10 09:26:35.316282552 Combining configuration files
2020-04-10 09:26:35.317605795 Including /etc/rear/os.conf
2020-04-10 09:26:35.320861423 Including conf/Linux-i386.conf
2020-04-10 09:26:35.322560933 Including conf/GNU/Linux.conf
2020-04-10 09:26:35.343249630 Including /etc/rear/local.conf
2020-04-10 09:26:35.345889723 ======================
2020-04-10 09:26:35.347150813 Running 'init' stage
2020-04-10 09:26:35.348341030 ======================
2020-04-10 09:26:35.355604436 Including init/default/005_verify_os_conf.sh
2020-04-10 09:26:35.359582416 Including init/default/010_set_drlm_env.sh
2020-04-10 09:26:35.363740183 Including init/default/030_update_recovery_system.sh
2020-04-10 09:26:35.367466754 Including init/default/050_check_rear_recover_mode.sh
2020-04-10 09:26:35.368675512 Finished running 'init' stage in 0 seconds
2020-04-10 09:26:35.376834247 Using build area '/tmp/rear.DVJ4n0MK2ILqz8J'
mkdir: created directory '/tmp/rear.DVJ4n0MK2ILqz8J/rootfs'
mkdir: created directory '/tmp/rear.DVJ4n0MK2ILqz8J/tmp'
2020-04-10 09:26:35.380200329 Running mkrescue workflow
2020-04-10 09:26:35.381716877 ======================
2020-04-10 09:26:35.382884209 Running 'prep' stage
2020-04-10 09:26:35.383907133 ======================
2020-04-10 09:26:35.390712710 Including prep/default/005_remove_workflow_conf.sh
mkdir: created directory '/tmp/rear.DVJ4n0MK2ILqz8J/rootfs/etc'
mkdir: created directory '/tmp/rear.DVJ4n0MK2ILqz8J/rootfs/etc/rear'
2020-04-10 09:26:35.396796343 Including prep/default/020_translate_url.sh
2020-04-10 09:26:35.400708929 Including prep/default/030_translate_tape.sh
2020-04-10 09:26:35.404172999 Including prep/default/040_check_backup_and_output_scheme.sh
2020-04-10 09:26:35.408588115 Including prep/default/050_check_keep_old_output_copy_var.sh
2020-04-10 09:26:35.412468019 Including prep/default/100_init_workflow_conf.sh
2020-04-10 09:26:35.417538382 Including prep/GNU/Linux/200_include_getty.sh
2020-04-10 09:26:35.442602606 Including prep/GNU/Linux/200_include_serial_console.sh
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: getty: not found
2020-04-10 09:26:35.452686475 Including prep/GNU/Linux/210_include_dhclient.sh
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: dhcpcd: not found
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: dhcp6c: not found
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: dhclient6: not found
2020-04-10 09:26:35.477386706 Including prep/GNU/Linux/220_include_lvm_tools.sh
2020-04-10 09:26:35.479512318 Device mapper found enabled. Including LVM tools.
2020-04-10 09:26:35.510468437 Including prep/GNU/Linux/230_include_md_tools.sh
2020-04-10 09:26:35.512724718 Software RAID detected. Including mdadm tools.
2020-04-10 09:26:35.517138101 Including prep/GNU/Linux/240_include_multipath_tools.sh
2020-04-10 09:26:35.521146243 Including prep/GNU/Linux/280_include_systemd.sh
2020-04-10 09:26:35.537973570 Including systemd (init replacement) tool-set to bootstrap Relax-and-Recover
2020-04-10 09:26:35.542511996 Including prep/GNU/Linux/280_include_virtualbox.sh
2020-04-10 09:26:35.550879980 Including prep/GNU/Linux/280_include_vmware_tools.sh
2020-04-10 09:26:35.559326792 Including prep/GNU/Linux/290_include_drbd.sh
2020-04-10 09:26:35.567027141 Including prep/GNU/Linux/300_check_backup_and_output_url.sh
2020-04-10 09:26:35.571649106 Including prep/ISO/default/300_check_iso_dir.sh
2020-04-10 09:26:35.575649960 Including prep/GNU/Linux/300_include_grub_tools.sh
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: grub-probe: not found
2020-04-10 09:26:35.592453492 Including prep/GNU/Linux/310_include_cap_utils.sh
2020-04-10 09:26:35.596569650 Including prep/ISO/default/320_check_cdrom_size.sh
2020-04-10 09:26:35.599435430 ISO Directory '/var/lib/rear/output' [/dev/mapper/rhel_39--haproxy1-root] has 130463 MB free space
2020-04-10 09:26:35.603538229 Including prep/default/320_include_uefi_env.sh
2020-04-10 09:26:35.611988845 Using UEFI Boot Loader for Linux (USING_UEFI_BOOTLOADER=1)
2020-04-10 09:26:35.617874548 Including prep/ISO/GNU/Linux/320_verify_mkisofs.sh
2020-04-10 09:26:35.619355705 Using '/bin/mkisofs' to create ISO images
2020-04-10 09:26:35.623651034 Including prep/ISO/Linux-i386/330_find_isolinux.sh
2020-04-10 09:26:35.632142915 Including prep/default/330_include_uefi_tools.sh
2020-04-10 09:26:35.636472535 Including prep/ISO/GNU/Linux/340_add_isofs_module.sh
2020-04-10 09:26:35.642896054 Including prep/default/380_include_opal_tools.sh
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: sedutil-cli: not found
2020-04-10 09:26:35.646856441 Including prep/default/400_save_directories.sh
/boot 555 root root
/boot/efi 700 root root
/home 755 root root
2020-04-10 09:26:35.746945979 FHS directory /usr/X11R6 does not exist
2020-04-10 09:26:35.783034957 Including prep/default/950_check_missing_programs.sh
2020-04-10 09:26:35.787408446 Finished running 'prep' stage in 0 seconds
2020-04-10 09:26:35.788635844 ======================
2020-04-10 09:26:35.789760306 Running 'layout/save' stage
2020-04-10 09:26:35.790838243 ======================
2020-04-10 09:26:35.798329625 Including layout/save/GNU/Linux/100_create_layout_file.sh
2020-04-10 09:26:35.799577777 Creating disk layout
2020-04-10 09:26:35.801225059 Preparing layout directory.
2020-04-10 09:26:35.809349243 Removing old layout file.
2020-04-10 09:26:35.813553198 Including layout/save/GNU/Linux/150_save_diskbyid_mappings.sh
2020-04-10 09:26:35.930588392 Saved diskbyid_mappings
2020-04-10 09:26:35.934662537 Including layout/save/GNU/Linux/190_opaldisk_layout.sh
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: sedutil-cli: not found
2020-04-10 09:26:35.938728516 Including layout/save/GNU/Linux/200_partition_layout.sh
2020-04-10 09:26:35.948017581 Saving disk partitions.
Error: /dev/sda: unrecognised disk label
2020-04-10 09:26:35.969233140 No partitions found on /dev/sda.
Error: /dev/sdb: unrecognised disk label
2020-04-10 09:26:35.989966771 No partitions found on /dev/sdb.
2020-04-10 09:26:35.994873135 Including layout/save/GNU/Linux/210_raid_layout.sh
2020-04-10 09:26:35.997615187 Saving Software RAID configuration.
2020-04-10 09:26:36.113134094 Including layout/save/GNU/Linux/220_lvm_layout.sh
2020-04-10 09:26:36.114748039 Saving LVM layout.
2020-04-10 09:26:36.242740964 Including layout/save/GNU/Linux/230_filesystem_layout.sh
2020-04-10 09:26:36.244445293 Begin saving filesystem layout
2020-04-10 09:26:36.247225248 Saving filesystem layout (using the findmnt command).
2020-04-10 09:26:36.392306600 End saving filesystem layout
2020-04-10 09:26:36.396751385 Including layout/save/GNU/Linux/240_swaps_layout.sh
2020-04-10 09:26:36.398432779 Saving Swap information.
2020-04-10 09:26:36.413429885 Including layout/save/GNU/Linux/250_drbd_layout.sh
2020-04-10 09:26:36.417330937 Including layout/save/GNU/Linux/260_crypt_layout.sh
2020-04-10 09:26:36.418933780 Saving Encrypted volumes.
2020-04-10 09:26:36.426412369 Including layout/save/GNU/Linux/270_hpraid_layout.sh
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: hpacucli: not found
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: hpssacli: not found
/usr/share/rear/lib/_input-output-functions.sh: line 331: type: ssacli: not found
2020-04-10 09:26:36.430689794 Including layout/save/GNU/Linux/280_multipath_layout.sh
2020-04-10 09:26:36.438862832 Including layout/save/default/300_list_dependencies.sh
2020-04-10 09:26:36.511108702 Including layout/save/default/310_autoexclude_usb.sh
2020-04-10 09:26:36.515649492 Including layout/save/default/310_include_exclude.sh
2020-04-10 09:26:36.519774132 Including layout/save/default/320_autoexclude.sh
2020-04-10 09:26:36.661716163 Including layout/save/default/330_remove_exclusions.sh
2020-04-10 09:26:36.669863785 Including layout/save/default/335_remove_excluded_multipath_vgs.sh
2020-04-10 09:26:36.673900073 Including layout/save/GNU/Linux/340_false_blacklisted.sh
2020-04-10 09:26:36.681713142 Including layout/save/default/340_generate_mountpoint_device.sh
2020-04-10 09:26:36.720476999 Including layout/save/GNU/Linux/350_copy_drbdtab.sh
2020-04-10 09:26:36.724554095 Including layout/save/default/350_save_partitions.sh
2020-04-10 09:26:36.728512538 Including layout/save/default/400_check_backup_special_files.sh
2020-04-10 09:26:36.732860390 Including layout/save/default/445_guess_bootloader.sh
4+0 records in
4+0 records out
2048 bytes (2.0 kB) copied, 4.7261e-05 s, 43.3 MB/s
2020-04-10 09:26:36.754498561 No known bootloader matches the first bytes on /dev/sda
2020-04-10 09:26:36.756152466 Begin of strings in the first bytes on /dev/sda
2020-04-10 09:26:36.758534805 End of strings in the first bytes on /dev/sda
4+0 records in
4+0 records out
2048 bytes (2.0 kB) copied, 4.4638e-05 s, 45.9 MB/s
2020-04-10 09:26:36.778750192 No known bootloader matches the first bytes on /dev/sdb
2020-04-10 09:26:36.780145463 Begin of strings in the first bytes on /dev/sdb
2020-04-10 09:26:36.782458712 End of strings in the first bytes on /dev/sdb
2020-04-10 09:26:36.784290902 ERROR: Cannot autodetect what is used as bootloader, see default.conf about 'BOOTLOADER'
==== Stack trace ====
Trace 0: /usr/sbin/rear:543 main
Trace 1: /usr/share/rear/lib/mkrescue-workflow.sh:14 WORKFLOW_mkrescue
Trace 2: /usr/share/rear/lib/framework-functions.sh:101 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:49 Source
Trace 4: /usr/share/rear/layout/save/default/445_guess_bootloader.sh:104 source
Message: Cannot autodetect what is used as bootloader, see default.conf about 'BOOTLOADER'
== End stack trace ==
2020-04-10 09:26:36.789679952 Exiting rear mkrescue (PID 156185) and its descendant processes
2020-04-10 09:26:37.817312122 rear,156185 /usr/sbin/rear -d -v mkrescue
`-rear,157702 /usr/sbin/rear -d -v mkrescue
`-pstree,157703 -Aplau 156185
/usr/share/rear/lib/_input-output-functions.sh: line 157: kill: (157706) - No such process
2020-04-10 09:26:37.854448838 Running exit tasks
2020-04-10 09:26:37.856423497 Exit task 'cleanup_build_area_and_end_program'
2020-04-10 09:26:37.858031841 Finished in 2 seconds
2020-04-10 09:26:37.859469708 You should also rm -Rf /tmp/rear.DVJ4n0MK2ILqz8J
2020-04-10 09:26:37.861011004 End of program reached
2020-04-10 09:26:37.862678003 Exit task '(( EXIT_FAIL_MESSAGE )) && echo 'rear mkrescue failed, check /var/log/rear/rear-39-haproxy1.log for details' 1>&8'
2020-04-10 09:26:37.864340905 Exit task 'exec 8>&-'
2020-04-10 09:26:37.866084700 Exit task 'exec 7>&-'
2020-04-10 09:26:37.867865600 Exit task 'exec 6<&-'
2020-04-10 09:26:37.869398208 Exit task ''
```
gdha commented at 2020-04-10 14:40:¶
What is the output of dd if=/dev/md127 bs=512 count=4 | strings
?
rog2e commented at 2020-04-10 15:00:¶
Here is the output
[root@39-haproxy1 rear]# dd if=/dev/md127 bs=512 count=4
▒▒▒▒▒▒EU▒EFI PART\>ed▒▒▒E"▒▒E▒l▒▒▒TB▒▒▒▒▒+▒)
(s*▒▒▒▒K▒▒>▒;%▒▒▒ /▒I▒y$▒▒$▒GEFI System Partition▒▒▒▒▒3D▒▒h▒▒&▒▒#▒▒▒▒1cI▒.▒"y▒▒H▒G&y▒▒▒▒▒D▒<#▒*=▒(▒▒s▒hA▒s▒D▒▒▒H&▒OC4+0 records in
4+0 records out
2048 bytes (2.0 kB) copied, 4.9166e-05 s, 41.7 MB/s
[root@39-haproxy1 rear]#
jsmeix commented at 2020-04-14 12:27:¶
@rog2e
didn't the error message
ERROR: Cannot autodetect what is used as bootloader,
see default.conf about 'BOOTLOADER'
tell you all you need to proceed:
https://github.com/rear/rear/blob/master/usr/share/rear/conf/default.conf#L2731
So what did you set as BOOTLOADER
in your etc/rear/local.conf file
and how did then "rear mkrescue" work of still fail for you?
When you use UEFI see also the UEFI related entries in default.conf
gdha commented at 2020-04-15 09:09:¶
@jsmeix we scan physical devices, but it seems that meta-devices can contain bootloader info as well.
jsmeix commented at 2020-04-15 09:29:¶
So there is a possible enhancement for autodetection
what is used as bootloader.
When we scan more kind of devices for bootloader autodetection
we might get different bootloader autodetection results
e.g. GRUB2-EFI on physical disk but plain GRUB on a meta-device
or GRUB2 on /dev/sda and an old remainder of LILO on another device.
So we may need to even more enhance
layout/save/default/445_guess_bootloader.sh
to keep our bootloader autodetection guesswork reasonably fail-safe.
rog2e commented at 2020-04-28 20:06:¶
Thanks @jsmeix. My problem was I didn't realize you were talking about default.conf. I kept on looking at local.conf and didn't realize the message was pointing to the location of the default.conf directory. I added GRUB to the BootLoader parameter and got further than before. I have different errors now but I will see if I can figure it out based on the messages.
jsmeix commented at 2020-06-24 11:33:¶
According to
https://github.com/rear/rear/issues/2356#issuecomment-620826746
this particular issue here is solved.
@rog2e
in case of further issues please report each one as a separated new
issue here
to avoid that different issues get mixed up in one same report.
[Export of Github issue for rear/rear.]