Re: mondorestore command not found
Stanislav Tokoš <[email protected]>
| Newsgroups | gmane.linux.mondo.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello everyone, I had serious problems with mondoarchive and mondorestore on Leap42.2. I have already written about them. I used 2 email threads. My subjects were "mondorestore command not found" and "bigdir out of space". I finally figured them out. I am using mondo and mindi in the version 3.2.2. Patches from the attachments are applicable to versions 3.2.2. I created them because I don't have access to mondo svn. PS: Thanks for any feedback. Have a nice day Stanislav On 08/08/2017 05:59 PM, Gattegno, Victor wrote: > Hello, > > It comes from the fact that the backup cannot be mounted by mondo, because when mondo can mount the backup successfully it automatically untar images/all.tar.gz, then mondo can find the files (mondorestore, CDROM-LIVES-HERE, etc.) and mondo should restore well. > > It happens if you use the mindi iso image (/var/cache/mindi/mondorescue.iso), instead of using the backup first file image (that contains images/all.tar.gz, the configuration, mondorestore, etc.). > > Cordially, Victor > > -----Original Message----- > From: Stanislav Tokoš [mailto:[email protected]] > Sent: mardi 8 août 2017 17:16 > To: Mondo mailing list <[email protected]> > Subject: [Mondo-devel] mondorestore command not found > > Hello everyone, > > I have problem with mondorestore. I get this output: > > /usr/sbin/post-init: line 114: mondorestore: command not found. > > I attached screen shot from my virtual machine to this email. > > I am using this packages: > > stokos@mango:~/iso/rpm/20170807$ ls > extra_space.patch > mindi-busybox-1.25.1-0.20170117201019.s3648.opensuse42.2.x86_64.rpm note.txt mindi-3.3.0-0.20170802170101.s3676M.opensuse42.2.x86_64.rpm > mondo-3.3.0-0.20170802170101.s3676M.opensuse42.2.x86_64.rpm > perl-MondoRescue-3.3.0-0.20170802170101.s3676M.opensuse42.2.noarch.rpm > > I created backup for OpenSuse(Leap42.2) by this command: > > mondoarchive -O -p linux-k2ln -i -N -g -s 4300m -E /mnt/mondo-backup -d /mnt/mondo-backup -T /mnt/mondo-backup > > Do you have any idea? > > Thanks in advance > > Stanislav > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Mondo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mondo-devel ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mondo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mondo-devel
0001-add-notice-about-no_root_squash-to-man-page.patch
(text/x-patch, 901 B)
From b1d02b29a2e1c1a26809f7815be1fb5749afa244 Mon Sep 17 00:00:00 2001 From: Stanislav Tokos <[email protected]> Date: Thu, 17 Aug 2017 11:54:20 +0200 Subject: [PATCH] add notice about no_root_squash to man page --- docs/man/mondoarchive.8 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/man/mondoarchive.8 b/docs/man/mondoarchive.8 index 4d80974..4b1e822 100644 --- a/docs/man/mondoarchive.8 +++ b/docs/man/mondoarchive.8 @@ -128,6 +128,8 @@ and mondoarchive will try to do its best to support it. Other protocols are available such as sshfs for fuse SSH based filesystem mount, with the same syntax e.g. 'sshfs://[email protected]/home/nfs' and smbfs (aka cifs) for SaMBa or Windows based filesystem mount. +.B WARNING for NFS4 use no_root_squash at /etc/exports eg: +/mnt/nfs-share 192.168.122.136(rw,sync,no_subtree_check,no_root_squash) .TP .BI "\-t " -- 2.11.0
0001-grub2-install-force.patch
(text/x-patch, 1.6 KB)
From a308743f3eaae3af2000ac5c616d43f1083d6dbb Mon Sep 17 00:00:00 2001 From: Stanislav Tokos <[email protected]> Date: Thu, 17 Aug 2017 10:53:12 +0200 Subject: [PATCH] grub2 install force --- src/restore-scripts/mondo/mr-grub | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/restore-scripts/mondo/mr-grub b/src/restore-scripts/mondo/mr-grub index 1b7dca5..e3326a0 100755 --- a/src/restore-scripts/mondo/mr-grub +++ b/src/restore-scripts/mondo/mr-grub @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: mr-grub 3542 2016-03-24 16:48:03Z bruno $ +# $Id: mr-grub 3645 2017-01-03 01:06:25Z bruno $ # # mr-grub ------ a rudimentary replacement for grub-install # @@ -13,6 +13,7 @@ Die() { FindBootPart() { + # Work only for grub v1 local i bootpart="" BOOTPATHNAME="" @@ -137,10 +138,10 @@ echo "grub-install returned $res" >> $LOGFILE echo "Now I'll use grub2-install" >> $LOGFILE if [ "$MNT_RESTORING" ] ; then - chroot $MNT_RESTORING grub2-install $1 >> $LOGFILE 2>> $LOGFILE + chroot $MNT_RESTORING grub2-install --force $1 >> $LOGFILE 2>> $LOGFILE res=$? else - grub2-install $1 >> $LOGFILE 2>> $LOGFILE + grub2-install --force $1 >> $LOGFILE 2>> $LOGFILE res=$? fi echo "grub2-install returned $res" >> $LOGFILE @@ -174,9 +175,10 @@ if echo $mbrdev | grep "/md" > /dev/null ; then fi echo ".............Cool." 2>&1 | tee -a $LOGFILE -grub=`FindPathOfRESTExe grub` +grub=`FindPathOfRESTExe grub | head -1` mkdir -p /boot [ "$MNT_RESTORING" ] && ln -sf /mnt/RESTORING/boot/grub /boot/grub +[ "$MNT_RESTORING" ] && ln -sf /mnt/RESTORING/boot/grub2 /boot/grub2 # --------------------------------- -- 2.11.0
0001-fix-for-adding-bootable-flag-plus-simplified-logic.patch
(text/x-patch, 1.8 KB)
From 0549ad075f7e56f17f4d7cbfd22c10326d7ec51e Mon Sep 17 00:00:00 2001 From: Stanislav Tokos <[email protected]> Date: Thu, 17 Aug 2017 11:03:59 +0200 Subject: [PATCH] fix for adding bootable flag plus simplified logic bootable flag is only one for one machine --- src/restore-scripts/mondo/mr-make-me-bootable | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/restore-scripts/mondo/mr-make-me-bootable b/src/restore-scripts/mondo/mr-make-me-bootable index 5ed8bc1..face5d1 100755 --- a/src/restore-scripts/mondo/mr-make-me-bootable +++ b/src/restore-scripts/mondo/mr-make-me-bootable @@ -55,20 +55,22 @@ fi if [ "$drive" ] ; then if [ "$partno" = "0" ] || [ ! "$partno" ] ; then partno="1" - fi - cmd="" - for p in "$activepart"; do - # First desactivate active partitions (coming from previous usage) - cmd="${cmd}a\n$p\n" + fi + + if [ "$activepart" != "" ] ; then + erase_partno=`echo $activepart | sed -e 's/^.*[^0-9]\([0-9]*\)$/\1/'` + echo -en "a\n$erase_partno\nw\n" | mr-parted2fdisk $drive >> $LOGFILE 2>> $LOGFILE if [ "$dummy" != "" ] ; then - echo "Will desactivate $p on $drive" >> $LOGFILE - fi - done + echo "Will desactivate $p on $drive" >> $LOGFILE + fi + fi # Then activate the one which should if [ "$dummy" != "" ] ; then - echo "Would activate $partno on $drive" >> $LOGFILE - else - echo -en "${cmd}a\n$partno\np\nw\n" | mr-parted2fdisk $drive >> $LOGFILE 2>> $LOGFILE - fi + echo "Would activate $partno on $drive" >> $LOGFILE + elif [ ! "$dummy" ] ; then + echo -en "a\n$partno\nw\n" | mr-parted2fdisk $drive >> $LOGFILE 2>> $LOGFILE + else + echo -en "a\n$partno\nw\n" | mr-parted2fdisk $drive >> $LOGFILE 2>> $LOGFILE + fi fi exit 0 -- 2.11.0
0001-fixed-dbus-binaries-for-openSuse-Leap.patch
(text/x-patch, 908 B)
From 529f22c6058d8963dd7230fa7fd45b0837ccefa6 Mon Sep 17 00:00:00 2001 From: Stanislav Tokos <[email protected]> Date: Wed, 26 Jul 2017 13:43:46 +0200 Subject: [PATCH] fixed dbus binaries for openSuse(Leap) --- deplist.d/udev.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deplist.d/udev.conf b/deplist.d/udev.conf index 8df232b..0c01bd3 100644 --- a/deplist.d/udev.conf +++ b/deplist.d/udev.conf @@ -66,17 +66,17 @@ /usr/bin/timedatectl # systemd needs dbus -/usr/bin/dbus-daemon +/bin/dbus-daemon /usr/bin/dbus-launch /etc/dbus-1 /usr/share/dbus-1 /var/run/dbus /usr/lib64/dbus-1 /usr/bin/dbus-binding-tool -/usr/bin/dbus-cleanup-sockets -/usr/bin/dbus-monitor -/usr/bin/dbus-send -/usr/bin/dbus-uuidgen +/bin/dbus-cleanup-sockets +/bin/dbus-monitor +/bin/dbus-send +/bin/dbus-uuidgen /sbin/udevstart.static /sbin/udev_volume_id -- 2.11.0
0001-increase-if-you-run-out-of-ramdisk-space-from-150000.patch
(text/x-patch, 685 B)
From 6c031768307f2b71f784976ad64a99a827bf43ed Mon Sep 17 00:00:00 2001 From: Stanislav Tokos <[email protected]> Date: Thu, 17 Aug 2017 11:30:33 +0200 Subject: [PATCH] increase if you run out of ramdisk space from 150000 to 300000 --- mindi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindi b/mindi index 0861149..18ae8dd 100755 --- a/mindi +++ b/mindi @@ -43,7 +43,7 @@ if [ ! -d $TMPDIR ]; then mkdir -p $TMPDIR fi -EXTRA_SPACE=150000 # increase if you run out of ramdisk space +EXTRA_SPACE=300000 # increase if you run out of ramdisk space PROMPT_MAKE_CD_IMAGE="yes" # Ask if you want to make a CD Image to be written? -- 2.11.0