#346 Issue closed: rear for opensuse 12.3 grub2 issue

Labels: enhancement, bug, fixed / solved / done

huawiceo opened issue at 2013-12-12 09:03:

when reboot after recovery done, the system will run into grub, but opensuse use grub2. So I need to do below action to fix grub2 issue.
grub>root (hd0,1)
grub>setup (hd0)
grub>kernel /boot/vmlinuz
grub>initrd /boot/initrd
grub>boot
进入系统

grub2-mkconfig -o /boot/grub2/grub.cfg

grub2-install /dev/sda

reboot

An then, the system is OK.
Could you please check this issue for opensuse grub2? Thx

gdha commented at 2013-12-16 09:26:

Normally grub or grub2 mkconfig should run automatically during the recovery. Could you please upload the recovery log of rear (via a gist)?

huawiceo commented at 2013-12-16 09:35:

Could you please tell me the recovery log path? in /var/log/rear directory?

gdha commented at 2013-12-16 10:05:

Hi,
indeed that is correct. Or, on the recovered system under the /root
directory (a copy of it)

On Mon, Dec 16, 2013 at 10:35 AM, huawiceo notifications@github.com wrote:

Could you please tell me the recovery log path? in /var/log/rear directory?


Reply to this email directly or view it on GitHubhttps://github.com/rear/rear/issues/346#issuecomment-30646788
.

huawiceo commented at 2013-12-19 02:37:

2013-12-12 04:40:46 Relax-and-Recover 1.15 / Git
2013-12-12 04:40:47 Command line options: /bin/rear recover
2013-12-12 04:40:47 Using log file: /var/log/rear/rear-opensuse122.log
2013-12-12 04:40:47 Including /etc/rear/os.conf
2013-12-12 04:40:47 Including conf/Linux-i386.conf
2013-12-12 04:40:47 Including conf/GNU/Linux.conf
2013-12-12 04:40:47 Including /etc/rear/local.conf
2013-12-12 04:40:47 Including /etc/rear/rescue.conf
2013-12-12 04:40:47 Using build area '/tmp/rear.1oVSOA8QheOhZcv'
mkdir: created directory '/tmp/rear.1oVSOA8QheOhZcv/rootfs'
mkdir: created directory '/tmp/rear.1oVSOA8QheOhZcv/tmp'
2013-12-12 04:40:47 Running recover workflow
2013-12-12 04:40:47 Running 'setup' stage
2013-12-12 04:40:47 Including setup/default/01_pre_recovery_script.sh
2013-12-12 04:40:47 Finished running 'setup' stage in 0 seconds
2013-12-12 04:40:47 Running 'verify' stage
2013-12-12 04:40:47 Including verify/default/02_cciss_scsi_engage.sh
2013-12-12 04:40:49 Including verify/default/02_translate_url.sh
2013-12-12 04:40:49 Using NETFS_URL is deprecated. Use BACKUP_URL instead.
2013-12-12 04:40:49 Including verify/default/03_translate_tape.sh
2013-12-12 04:40:49 Including verify/default/04_validate_variables.sh
2013-12-12 04:40:49 Including verify/NETFS/default/05_check_NETFS_requirements.sh
2013-12-12 04:40:49 Skipping ping test
2013-12-12 04:40:49 Including verify/GNU/Linux/05_sane_recovery_check.sh
2013-12-12 04:40:49 Including verify/NETFS/default/07_set_backup_archive.sh
2013-12-12 04:40:49 Including verify/NETFS/default/08_start_required_daemons.sh
2013-12-12 04:40:49 Including verify/NETFS/default/09_set_readonly_options.sh
2013-12-12 04:40:49 Including verify/NETFS/default/10_mount_NETFS_path.sh
mkdir: created directory '/tmp/rear.1oVSOA8QheOhZcv/outputfs'
2013-12-12 04:40:49 Mounting with 'mount -v -t nfs -o ro 192.168.8.115:/backup/rear /tmp/rear.1oVSOA8QheOhZcv/outputfs'
mount.nfs: timeout set for Thu Dec 12 04:42:49 2013
mount.nfs: trying text-based options 'vers=4,addr=192.168.8.115,clientaddr=192.168.8.192'
2013-12-12 04:40:50 Including verify/GNU/Linux/23_storage_and_network_modules.sh
find: `/lib/modules/3.7.10-1.16-desktop/kernel/drivers/ide': No such file or directory
find: `/lib/modules/3.7.10-1.16-desktop/kernel/drivers/xen': No such file or directory
find: `/lib/modules/3.7.10-1.16-desktop/extra': No such file or directory
2013-12-12 04:40:50 Including verify/GNU/Linux/26_recovery_storage_drivers.sh
find: `/tmp/rear.1oVSOA8QheOhZcv/tmp/dev': No such file or directory
--- /var/lib/rear/recovery/storage_drivers  2013-12-12 02:05:21.000000000 +0000
+++ /tmp/rear.1oVSOA8QheOhZcv/tmp/storage_drivers   2013-12-12 04:40:51.038993000 +0000
@@ -1,16 +1,186 @@
+BusLogic
+DAC960
+a100u2w
+aacraid
+advansys
+aha152x_cs
+aic79xx
+aic7xxx
+aic94xx
+aoe
+arcmsr
 ata_generic
 ata_piix
+aten
+atp870u
+be2iscsi
+bfa
+bnx2fc
+bnx2i
+bpck
+brd
+cciss
+ch
+comm
+cxgb3i
+cxgb4i
+dc395x
+dmx3191d
+drbd
+dstr
+epat
+epia
+fcoe
+fdomain_cs
+fit2
+fit3
 floppy
+fnic
+friq
+frpw
+gdth
+hpsa
+hptiop
+i2o_block
+i2o_bus
+i2o_config
+i2o_core
+i2o_proc
+i2o_scsi
+imm
+initio
+ipr
+isci
+iscsi_boot_sysfs
+iscsi_tcp
+kbic
+ktti
+libcxgbi
+libfc
+libfcoe
+libiscsi
+libiscsi_tcp
+libosd
+libsas
+libsrp
+lpfc
+megaraid
+megaraid_mbox
+megaraid_mm
+megaraid_sas
+mpt2sas
 mptbase
 mptctl
+mptfc
+mptlan
+mptsas
 mptscsih
 mptspi
+mtip32xx
+mvsas
+mvumi
+nvme
+on20
+on26
+osd
+osdblk
+osst
+paride
+pata_acpi
+pata_ali
+pata_amd
+pata_arasan_cf
+pata_artop
+pata_atiixp
+pata_atp867x
+pata_cmd640
+pata_cmd64x
+pata_cs5520
+pata_cs5530
+pata_cs5536
+pata_cypress
+pata_efar
+pata_hpt366
+pata_hpt37x
+pata_hpt3x2n
+pata_hpt3x3
+pata_it8213
+pata_it821x
+pata_jmicron
+pata_marvell
+pata_mpiix
+pata_netcell
+pata_ninja32
+pata_ns87410
+pata_ns87415
+pata_oldpiix
+pata_opti
+pata_optidma
+pata_pcmcia
+pata_pdc2027x
+pata_pdc202xx_old
+pata_piccolo
+pata_radisys
+pata_rdc
+pata_rz1000
+pata_sc1200
+pata_sch
+pata_serverworks
+pata_sil680
+pata_sis
+pata_sl82c105
+pata_triflex
+pata_via
+pdc_adma
+pktcdvd
+pm8001
+pmcraid
+ppa
+qla1280
+qla2xxx
+qla4xxx
+qlogic_cs
+qlogicfas408
+raid_class
+rbd
+sata_highbank
+sata_inic162x
+sata_mv
+sata_nv
+sata_promise
+sata_qstor
+sata_sil
+sata_sil24
+sata_sis
+sata_svw
+sata_sx4
+sata_uli
+sata_via
+sata_vsc
+scsi_debug
 scsi_dh
 scsi_dh_alua
 scsi_dh_emc
 scsi_dh_hp_sw
 scsi_dh_rdac
+scsi_tgt
+scsi_transport_fc
+scsi_transport_iscsi
+scsi_transport_sas
 scsi_transport_spi
+scsi_transport_srp
+ses
 sg
 sr_mod
+st
+stex
+sx8
+sym53c500_cs
+sym53c8xx
+tcm_qla2xxx
+tmscsim
+ufshcd
+umem
+virtio_blk
+virtio_scsi
 vmw_pvscsi
2013-12-12 04:40:51 NOTICE: Will do driver migration
2013-12-12 04:40:51 Including verify/NETFS/default/55_check_backup_archive.sh
2013-12-12 04:40:51 Calculating backup archive size
2013-12-12 04:40:51 Backup archive size is 2.8G /tmp/rear.1oVSOA8QheOhZcv/outputfs/opensuse122/backup.tar.gz (compressed)
2013-12-12 04:40:51 Including verify/NETFS/default/60_check_encryption_key.sh
2013-12-12 04:40:51 Finished running 'verify' stage in 4 seconds
2013-12-12 04:40:51 Running 'layout/prepare' stage
2013-12-12 04:40:51 Including layout/prepare/default/01_prepare_files.sh
2013-12-12 04:40:51 Including layout/prepare/GNU/Linux/10_include_partition_code.sh
2013-12-12 04:40:51 Including layout/prepare/GNU/Linux/11_include_lvm_code.sh
2013-12-12 04:40:51 Including layout/prepare/GNU/Linux/12_include_raid_code.sh
2013-12-12 04:40:51 Including layout/prepare/GNU/Linux/13_include_filesystem_code.sh
2013-12-12 04:40:51 Including layout/prepare/GNU/Linux/14_include_swap_code.sh
2013-12-12 04:40:51 Including layout/prepare/GNU/Linux/15_include_drbd_code.sh
2013-12-12 04:40:51 Including layout/prepare/GNU/Linux/16_include_luks_code.sh
2013-12-12 04:40:51 Including layout/prepare/GNU/Linux/17_include_hpraid_code.sh
2013-12-12 04:40:51 Including layout/prepare/default/20_recreate_hpraid.sh
2013-12-12 04:40:51 Including layout/prepare/GNU/Linux/21_load_multipath.sh
2013-12-12 04:40:51 Including layout/prepare/default/25_compare_disks.sh
2013-12-12 04:40:51 Comparing disks.
2013-12-12 04:40:51 Looking for sda...
2013-12-12 04:40:51 Device sda exists.
2013-12-12 04:40:51 Size of device sda matches.
2013-12-12 04:40:51 Disk configuration is identical, proceeding with restore.
2013-12-12 04:40:51 Including layout/prepare/default/30_map_disks.sh
2013-12-12 04:40:51 Including layout/prepare/default/31_remove_exclusions.sh
2013-12-12 04:40:51 Including layout/prepare/default/32_apply_mappings.sh
2013-12-12 04:40:51 Including layout/prepare/default/40_autoresize_disks.sh
2013-12-12 04:40:51 Including layout/prepare/default/50_confirm_layout.sh
2013-12-12 04:40:51 Including layout/prepare/default/51_list_dependencies.sh
2013-12-12 04:40:51 Including layout/prepare/default/52_exclude_components.sh
2013-12-12 04:40:51 Including layout/prepare/default/54_generate_device_code.sh
2013-12-12 04:40:52 Including layout/prepare/default/55_finalize_script.sh
2013-12-12 04:40:52 Including layout/prepare/default/60_show_unprocessed.sh
2013-12-12 04:40:52 Including layout/prepare/default/61_exclude_from_restore.sh
2013-12-12 04:40:52 Finished running 'layout/prepare' stage in 1 seconds
2013-12-12 04:40:52 Running 'layout/recreate' stage
2013-12-12 04:40:52 Including layout/recreate/default/10_ask_confirmation.sh
2013-12-12 04:40:52 Including layout/recreate/default/20_run_script.sh
2013-12-12 04:40:52 Start system layout restoration.
  No volume groups found
+++ create_component /dev/sda disk
+++ local device=/dev/sda
+++ local type=disk
+++ local touchfile=disk--dev-sda
+++ '[' -e /tmp/rear.1oVSOA8QheOhZcv/tmp/touch/disk--dev-sda ']'
+++ return 0
+++ Log 'Erasing MBR of disk /dev/sda'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2013-12-12 04:40:53 Erasing MBR of disk /dev/sda'
2013-12-12 04:40:53 Erasing MBR of disk /dev/sda
+++ dd if=/dev/zero of=/dev/sda bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0110205 s, 46.5 kB/s
+++ sync
+++ LogPrint 'Creating partitions for disk /dev/sda (msdos)'
+++ Log 'Creating partitions for disk /dev/sda (msdos)'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2013-12-12 04:40:53 Creating partitions for disk /dev/sda (msdos)'
2013-12-12 04:40:53 Creating partitions for disk /dev/sda (msdos)
+++ Print 'Creating partitions for disk /dev/sda (msdos)'
+++ test 1
+++ echo -e 'Creating partitions for disk /dev/sda (msdos)'
+++ parted -s /dev/sda mklabel msdos
+++ parted -s /dev/sda mkpart '"primary"' 1048576B 1570766847B
+++ parted -s /dev/sda mkpart '"primary"' 1570766848B 17179869183B
+++ parted -s /dev/sda set 2 boot on
+++ partprobe -s /dev/sda
/dev/sda: msdos partitions 1 2
+++ sleep 10
+++ my_udevtrigger
+++ has_binary udevadm
+++ for bin in '$@'
+++ type udevadm
+++ return 0
+++ udevadm trigger
+++ my_udevsettle
+++ has_binary udevadm
+++ for bin in '$@'
+++ type udevadm
+++ return 0
+++ udevadm settle
+++ component_created /dev/sda disk
+++ local device=/dev/sda
+++ local type=disk
+++ local touchfile=disk--dev-sda
+++ touch /tmp/rear.1oVSOA8QheOhZcv/tmp/touch/disk--dev-sda
+++ create_component /dev/sda1 part
+++ local device=/dev/sda1
+++ local type=part
+++ local touchfile=part--dev-sda1
+++ '[' -e /tmp/rear.1oVSOA8QheOhZcv/tmp/touch/part--dev-sda1 ']'
+++ return 0
+++ component_created /dev/sda1 part
+++ local device=/dev/sda1
+++ local type=part
+++ local touchfile=part--dev-sda1
+++ touch /tmp/rear.1oVSOA8QheOhZcv/tmp/touch/part--dev-sda1
+++ create_component /dev/sda2 part
+++ local device=/dev/sda2
+++ local type=part
+++ local touchfile=part--dev-sda2
+++ '[' -e /tmp/rear.1oVSOA8QheOhZcv/tmp/touch/part--dev-sda2 ']'
+++ return 0
+++ component_created /dev/sda2 part
+++ local device=/dev/sda2
+++ local type=part
+++ local touchfile=part--dev-sda2
+++ touch /tmp/rear.1oVSOA8QheOhZcv/tmp/touch/part--dev-sda2
+++ create_component fs:/ fs
+++ local device=fs:/
+++ local type=fs
+++ local touchfile=fs-fs:-
+++ '[' -e /tmp/rear.1oVSOA8QheOhZcv/tmp/touch/fs-fs:- ']'
+++ return 0
+++ LogPrint 'Creating ext4-filesystem / on /dev/sda2'
+++ Log 'Creating ext4-filesystem / on /dev/sda2'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2013-12-12 04:41:04 Creating ext4-filesystem / on /dev/sda2'
2013-12-12 04:41:04 Creating ext4-filesystem / on /dev/sda2
+++ Print 'Creating ext4-filesystem / on /dev/sda2'
+++ test 1
+++ echo -e 'Creating ext4-filesystem / on /dev/sda2'
+++ mkfs -t ext4 -b 4096 -i 16381 /dev/sda2
mke2fs 1.42.6 (21-Sep-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
954720 inodes, 3810816 blocks
190540 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3904897024
117 block groups
32768 blocks per group, 32768 fragments per group
8160 inodes per group
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables:   0/117       done                            
Writing inode tables:   0/117       done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:   0/117       done

+++ tune2fs -U 563e3ae3-89a8-4cd5-8c8c-ff1c0c16fb7b /dev/sda2
tune2fs 1.42.6 (21-Sep-2012)
+++ tune2fs -m 4 -c -1 -i 0d -o user_xattr,acl /dev/sda2
tune2fs 1.42.6 (21-Sep-2012)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
Setting reserved blocks percentage to 4% (152432 blocks)
+++ LogPrint 'Mounting filesystem /'
+++ Log 'Mounting filesystem /'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2013-12-12 04:41:06 Mounting filesystem /'
2013-12-12 04:41:06 Mounting filesystem /
+++ Print 'Mounting filesystem /'
+++ test 1
+++ echo -e 'Mounting filesystem /'
+++ mkdir -p /mnt/local/
+++ mount -o rw,relatime,data=ordered /dev/sda2 /mnt/local/
+++ component_created fs:/ fs
+++ local device=fs:/
+++ local type=fs
+++ local touchfile=fs-fs:-
+++ touch /tmp/rear.1oVSOA8QheOhZcv/tmp/touch/fs-fs:-
+++ create_component swap:/dev/sda1 swap
+++ local device=swap:/dev/sda1
+++ local type=swap
+++ local touchfile=swap-swap:-dev-sda1
+++ '[' -e /tmp/rear.1oVSOA8QheOhZcv/tmp/touch/swap-swap:-dev-sda1 ']'
+++ return 0
+++ LogPrint 'Creating swap on /dev/sda1'
+++ Log 'Creating swap on /dev/sda1'
+++ test 1 -gt 0
++++ Stamp
++++ date '+%Y-%m-%d %H:%M:%S '
+++ echo '2013-12-12 04:41:06 Creating swap on /dev/sda1'
2013-12-12 04:41:06 Creating swap on /dev/sda1
+++ Print 'Creating swap on /dev/sda1'
+++ test 1
+++ echo -e 'Creating swap on /dev/sda1'
+++ mkswap -U e2986d1b-ef81-43b6-8ad8-87e877bc7d4a /dev/sda1
Setting up swapspace version 1, size = 1532924 KiB
no label, UUID=e2986d1b-ef81-43b6-8ad8-87e877bc7d4a
+++ component_created swap:/dev/sda1 swap
+++ local device=swap:/dev/sda1
+++ local type=swap
+++ local touchfile=swap-swap:-dev-sda1
+++ touch /tmp/rear.1oVSOA8QheOhZcv/tmp/touch/swap-swap:-dev-sda1
+++ set +x
2013-12-12 04:41:06 Disk layout created.
2013-12-12 04:41:06 Including layout/recreate/default/25_verify_mount.sh
df: no file systems processed
2013-12-12 04:41:07 Finished running 'layout/recreate' stage in 15 seconds
2013-12-12 04:41:07 Running 'restore' stage
2013-12-12 04:41:07 Including restore/NETFS/default/38_prepare_multiple_isos.sh
2013-12-12 04:41:07 Including restore/NETFS/default/40_restore_backup.sh
2013-12-12 04:41:07 Decrypting disabled
2013-12-12 04:41:07 Restoring tar archive '/tmp/rear.1oVSOA8QheOhZcv/outputfs/opensuse122/backup.tar.gz'
2013-12-12 04:41:07 dd if=/tmp/rear.1oVSOA8QheOhZcv/outputfs/opensuse122/backup.tar.gz | cat | tar --block-number --totals --verbose --gzip -C /mnt/local/ -x -f -
5671924+1 records in
5671924+1 records out
2904025323 bytes (2.9 GB) copied, 359.644 s, 8.1 MB/s
Total bytes read: 7027230720 (6.6GiB, 19MiB/s)
2013-12-12 04:47:10 Restored 6701 MiB in 362 seconds [avg 18957 KiB/sec]
2013-12-12 04:47:10 Including restore/NETFS/default/50_selinux_autorelabel.sh
2013-12-12 04:47:10 Including restore/NETFS/Linux-i386/51_selinux_fixfiles_exclude_dirs.sh
2013-12-12 04:47:10 Including restore/default/90_create_missing_directories.sh
2013-12-12 04:47:10 Including restore/NETFS/default/98_umount_NETFS_dir.sh
2013-12-12 04:47:10 Unmounting '/tmp/rear.1oVSOA8QheOhZcv/outputfs'
rmdir: removing directory, '/tmp/rear.1oVSOA8QheOhZcv/outputfs'
2013-12-12 04:47:10 Finished running 'restore' stage in 363 seconds
2013-12-12 04:47:10 Running 'finalize' stage
2013-12-12 04:47:10 Including finalize/default/01_prepare_checks.sh
2013-12-12 04:47:10 Including finalize/default/10_populate_dev.sh
2013-12-12 04:47:10 Including finalize/GNU/Linux/15_migrate_disk_devices_layout.sh
2013-12-12 04:47:10 Including finalize/GNU/Linux/15_migrate_uuid_tags.sh
2013-12-12 04:47:10 Including finalize/GNU/Linux/16_rename_diskbyid.sh
2013-12-12 04:47:11 Including finalize/Linux-i386/21_install_grub.sh
2013-12-12 04:47:11 Installing GRUB boot loader
Probing devices to guess BIOS drives. This may take a long time.


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]
grub> device (hd0) /dev/sda
grub> root (hd0,1)
 Filesystem type is ext2fs, partition type 0x83
grub> setup --stage2=/boot/grub/stage2 --prefix=/boot/grub (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
succeeded
 Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,1)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub> quit
2013-12-12 04:47:13 Including finalize/Linux-i386/22_install_grub2.sh
2013-12-12 04:47:13 Including finalize/Linux-i386/23_run_efibootmgr.sh
2013-12-12 04:47:13 Including finalize/GNU/Linux/30_create_mac_mapping.sh
2013-12-12 04:47:13 Including finalize/GNU/Linux/41_migrate_udev_rules.sh
2013-12-12 04:47:13 Including finalize/GNU/Linux/42_migrate_network_configuration_files.sh
2013-12-12 04:47:13 Including finalize/default/88_check_for_mount_by_id.sh
2013-12-12 04:47:13 Including finalize/default/89_finish_checks.sh
2013-12-12 04:47:13 Including finalize/default/90_remount_sync.sh
2013-12-12 04:47:14 Finished running 'finalize' stage in 4 seconds
2013-12-12 04:47:14 Running 'wrapup' stage
2013-12-12 04:47:14 Including wrapup/default/50_post_recovery_script.sh
2013-12-12 04:47:14 Including wrapup/default/98_good_bye.sh
2013-12-12 04:47:14 Including wrapup/default/99_copy_logfile.sh
2013-12-12 04:47:14 Finished running 'wrapup' stage in 0 seconds
2013-12-12 04:47:14 Finished running recover workflow
2013-12-12 04:47:14 Running exit tasks.
2013-12-12 04:47:14 The following jobs are still active:
[2]   2038 Done                    ( if [[ -f "${TMP_DIR}/backup.splitted" ]]; then
    Print ""; while read file; do
        name=${file%% *}; vol_name=${file##* }; file_path="${opath}/${name}"; touch ${TMP_DIR}/wait_dvd; while ! [[ -f $file_path ]]; do
            umount "${BUILD_DIR}/outputfs"; ProgressInfo "Please insert the media called $vol_name in your CD-ROM drive..."; sleep 2; drive=$(cat /proc/sys/dev/cdrom/info | grep -i "drive name:" | awk '{print $3 " " $4}'); for dev in $drive;
            do
                label=$(blkid /dev/${dev} | awk 'BEGIN{FS="[=\"]"} {print $3}'); if [[ $label = $vol_name ]]; then
                    LogPrint "\n${vol_name} detected in /dev/${dev} ..."; mount /dev/${dev} "${BUILD_DIR}/outputfs";
                fi;
            done;
        done; if [[ -f $file_path ]]; then
            if [[ $BACKUP_INTEGRITY_CHECK =~ ^[yY1] && -f "${TMP_DIR}/backup.md5" ]]; then
                LogPrint "Checking $name ..."; ( cd $(dirname $backuparchive) && grep $name "${TMP_DIR}/backup.md5" | md5sum -c ); ret=$?; if [[ $ret -ne 0 ]]; then
                    Error "Integrity check failed ! Restore aborted.
If you want to bypass this check, disable the option in your Rear configuration."; return;
                fi;
            fi; rm ${TMP_DIR}/wait_dvd; LogPrint "Processing $name ..."; dd if="${file_path}" of="$FIFO";
        else
            StopIfError "$name could not be found on the $vol_name media !";
        fi;
    done < "${TMP_DIR}/backup.splitted"; kill -9 $(cat "${TMP_DIR}/cat_pid"); rm "${TMP_DIR}/cat_pid"; rm "${TMP_DIR}/backup.splitted"; rm "${TMP_DIR}/backup.md5";
fi )
/usr/share/rear/lib/_input-output-functions.sh: line 65: kill: (2038) - No such process

gdha commented at 2013-12-19 12:41:

ok, it installed the legacy GRUB commands successfully, but it didn't boot up properly, right? When you used GRUB2 commands (on the recovered system) it booted up as before, is this a correct summary?

huawiceo commented at 2013-12-20 06:20:

Yes, you are right.

gdha commented at 2014-03-04 12:35:

@huawiceo see b671dbd for the fix.

gdha commented at 2014-05-22 12:25:

in rear-1.16 there is still a small annoying bug that it might caught 2 lines out of the /etc/sysconfig/bootloader file. This will be fixed in version 1.16.1 (or higher).

gdha commented at 2014-06-20 13:25:

@huawiceo any luck with testing 1.16.1 release?

gdha commented at 2015-02-16 18:44:

added to the release notes so we can close this issue


[Export of Github issue for rear/rear.]