Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Could not source '/mnt/local/etc/sysconfig/kernel' #430

Closed
a417237 opened this issue Jun 25, 2014 · 8 comments
Closed

ERROR: Could not source '/mnt/local/etc/sysconfig/kernel' #430

a417237 opened this issue Jun 25, 2014 · 8 comments

Comments

@a417237
Copy link

a417237 commented Jun 25, 2014

Hi all, I am trying to recover my system from dvd and i get the following log.

no label, UUID=5e478695-699e-4dbb-baf5-ae0198139c0f
+++ component_created swap:/dev/sda1 swap
+++ local device=swap:/dev/sda1
+++ local type=swap
+++ local touchfile=swap-swap:-dev-sda1
+++ touch /tmp/rear.2gMg5151SofCFUn/tmp/touch/swap-swap:-dev-sda1
+++ set +x
2014-06-25 14:54:02 Disk layout created.
2014-06-25 14:54:02 Including layout/recreate/default/25_verify_mount.sh
2014-06-25 14:54:02 Finished running 'layout/recreate' stage in 29 seconds
2014-06-25 14:54:02 Running 'restore' stage
2014-06-25 14:54:02 Including restore/default/90_create_missing_directories.sh
2014-06-25 14:54:02 Including restore/SUSE_LINUX/91_create_missing_directories.sh
2014-06-25 14:54:02 Finished running 'restore' stage in 0 seconds
2014-06-25 14:54:02 Running 'finalize' stage
2014-06-25 14:54:02 Including finalize/default/01_prepare_checks.sh
2014-06-25 14:54:02 Including finalize/default/10_populate_dev.sh
2014-06-25 14:54:02 Including finalize/GNU/Linux/15_migrate_disk_devices_layout.sh
2014-06-25 14:54:02 Including finalize/GNU/Linux/15_migrate_uuid_tags.sh
2014-06-25 14:54:02 Including finalize/GNU/Linux/16_rename_diskbyid.sh
2014-06-25 14:54:02 Including finalize/SUSE_LINUX/i386/17_rebuild_initramfs.sh
/usr/share/rear/finalize/SUSE_LINUX/i386/17_rebuild_initramfs.sh: line 16: /mnt/local/etc/sysconfig/kernel: No such file or directory
2014-06-25 14:54:02 ERROR: Could not source '/mnt/local/etc/sysconfig/kernel'
=== Stack trace ===
Trace 0: /bin/rear:249 main
Trace 1: /usr/share/rear/lib/recover-workflow.sh:34 WORKFLOW_recover
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/finalize/SUSE_LINUX/i386/17_rebuild_initramfs.sh:17 source
Trace 5: /usr/share/rear/lib/_input-output-functions.sh:132 StopIfError
Message: Could not source '/mnt/local/etc/sysconfig/kernel'
===================
2014-06-25 14:54:02 Running exit tasks.
2014-06-25 14:54:02 Finished in 29 seconds

any idea ?

Thanks in advance
Benson

@gdha gdha added the support label Jun 25, 2014
@gdha gdha self-assigned this Jun 25, 2014
@gdha
Copy link
Member

gdha commented Jun 25, 2014

The /mnt/local/etc/sysconfig should normally contain lots of files of the restored image. Was the restore successful? The kernel file is one of the many files you find under the /etc/sysconfig directory. At least at SLES

@a417237
Copy link
Author

a417237 commented Jun 25, 2014

Hi, as you see in the log file, the disk was partitioned and formatted as well, I can even see that it was mounted as "/mnt/local" , but no restore was taken place before running "finalize/SUSE_LINUX/i386/17_rebuild_initramfs.sh". there is no error regarding backup image, it seems that there is something went wrong in between format and finalize. thanks a lot for the reply.

@gdha
Copy link
Member

gdha commented Jun 25, 2014

What is the content of the /etc/rear/local.conf file? And, what is the output of rear dump?

@a417237
Copy link
Author

a417237 commented Jun 25, 2014

backup=netfs
netfs_url=file:///mnt/cdrom
netfs_mountcmd="mount -v -t iso9600 /dev/sr0"
netfs_umountcmd="umount"

@gdha
Copy link
Member

gdha commented Jun 25, 2014

@a417237 I cannot follow - I'm sure the system restore was not performed, but how did you make backup? And which variables did you define before running rear -v mkbackup? A rear dump would be really useful

@a417237
Copy link
Author

a417237 commented Jun 25, 2014

@gdha , I did a backup using a usb disk "output=iso,"; rear format /dev/sdb; rear -v mkbackup;
it was done pretty good. then I made a dvd using the following procedure.

  1. initrd.cgz , unpacked and edit the local.conf to netfs_mountcmd="mount -v -t iso9600 /dev/sr0"
    2 new initrd.cgz was again copied to isolinux
    linux-cllg:/tmp/onlytmp/linux-cllg # l
    total 1180608
    drw-rw-rw- 1 root root 0 Jun 21 19:11 isolinux
    -rwxrwxr-x 1 root root 202 Jun 21 19:11 README
    -rwxrwxr-x 1 root root 291 Jun 21 19:11 VERSION
    -rwxrwxr-x 1 root root 11703121 Jun 21 18:42 backup.log
    -rwxrwxr-x 1 root root 1134608378 Jun 21 18:42 backup.tar.gz
    -rwxrwxr-x 1 root root 62449664 Jun 21 19:11 rear-linux-cllg.iso
    -rwxrwxr-x 1 root root 162325 Jun 21 19:11 rear.log
    mkisofs -o /tmp/onlytmp/rear-linux-cllg.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V disks .
  2. the dvd is written on dvd media
  3. booting is fine, menu selection works, automatic recovery lands in the "ERROR"

@gdha
Copy link
Member

gdha commented Jun 26, 2014

Ok, you want to backup on a DVD, perhaps you could try (and use the latest rear-1.16.1):

## ISO backup included
OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL=iso://backup   # this could  be a mounted USB disk on /backup
OUTPUT_URL=nfs://SERVER/vol/linux_images_dr/rear  # location to copy ISO image to
ISO_MAX_SIZE=4400
TMPDIR=/mnt2/tmp  # alternative /tmp (as DVD size might be too big; use another location)

@a417237
Copy link
Author

a417237 commented Jun 26, 2014

Thank you very much for the help. is there any document available to create a disaste recovery dvd using rear ?. my understading is that the software can be used with USB and NFS backup only.

@gdha gdha added bug The code does not do what it is meant to do and removed documentation labels Oct 30, 2015
@gdha gdha added this to the Rear v1.18 milestone Oct 30, 2015
@gdha gdha added documentation and removed bug The code does not do what it is meant to do labels Oct 30, 2015
@gdha gdha closed this as completed in 5a0aa37 Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants