Re: Diffs for Mondo on Debian 11
Rich Goodwin via Mondo-devel <[email protected]> Wed, 21 Feb 2024 19:53:12 -0600
| Newsgroups | gmane.linux.mondo.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============3911400911997213266==
Content-Type: multipart/alternative;
boundary="------------lDZkfLbzoIqmJj1S00d8eE93"
Content-Language: en-US
This is a multi-part message in MIME format.
--------------lDZkfLbzoIqmJj1S00d8eE93
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Thanks for all the help. I believe that I now have a functioning
MondoRescue for my Debian 11 systems. I can boot backup media and do a
compare without errors.
I need to get hardware together to test further.
Seeing as I do not build packages from source, here is what I've done to
get where I am at, which I hope will help others.
I started with the Debian 10 packages at
'http://ftp.mondorescue.org//debian 10 contrib', because they appear to
have the newest packages.
Which gave me 'mindi 3.3.0-1' (v3.3.0-r3762)
'mindi-busybox 1.25.1-1
'mondo 3.3.0-1 (v3.3.0-r3762)
'libmondorescue-perl 3.3.0-1
I then proceeded to apply changesets 3764, 3766, 3767, 3768, 3769, 3771,
3774 and 3778 from
'http://trac.mondorescue.org/changeset/####/MondoRescue' to
'/usr/sbin/mindi'.
I then applied the following 3 patches from the 'mindi.diff' that
Christoph Griesbeck so graciously sent me that were not already in mindi
after applying above changesets.
##### Not in 3778 ######## line 856
@@ -846,7 +852,7 @@ ListAllPartitions() {
ListKernelModulePaths() {
- local module_list module fname r kern
+ local module_list module module2 fname r r2 kern
module_list="$MODULES"
# Remove unwanted modules from list
for i in $DENY_MODS; do
@@ -874,6 +880,13 @@ ListKernelModulePaths() {
else
r="[extra module file not found]"
fi
+ module2=`echo ${module} | tr '_' '-'`
+ module2=`echo ${module2} | sed -e 's/x86-64/x86_64/g'`
+ r2=`find /lib/modules/$kern -type f | grep
"/${module2}\..*o" | tail -n1`
+ if [ -n "$r2" ]; then
+ [ -f "$r2" ] && echo "$r2"
+ r="$r2"
+ fi
else
[ -f "$r" ] && echo "$r"
fi
#####################
########## Not in 3778 ############# line 2393
@@ -2374,6 +2388,18 @@ PrepareBigDir() {
DropOptimizedLibraries $needlist $bigdir
echo -en "INFO: Assembling dependency files"
+ # Fixup $needlist w.r.t directories and usrmerge
+ grep -v '/$' $needlist | sort -u > ${needlist}.new
+ for i in /bin /lib /lib32 /lib64 /libx32 /sbin ; do
+ if [ -h $i ]; then
+ j=`readlink -f $i`
+ perl -pi -e 's@^'"$j"'$@@g' ${needlist}.new
+ perl -pi -e 's@^'"$i"'/@'"$j"'/@g' ${needlist}.new
+ fi
+ done
+ grep -v '^$' ${needlist}.new >$needlist
+ rm ${needlist}.new
+
CopyDependenciesToDirectory < $needlist $bigdir `wc -l $needlist` 1
rm -f $needlist
echo -e "$DONE"
###########################
###### Not in 3778 ##################
@@ -3016,6 +3044,17 @@ EOF
echo $m >> $targetdir/tmp/modules
done
+ # Fixup modprobe et.al. when /bin/kmod is available
+ if [ -f $targetdir/bin/kmod ]; then
+ (
+ cd $targetdir/usr/sbin
+ for j in depmod insmod lsmod modinfo modprobe rmmod ; do
+ rm -f $j
+ ln -sf /bin/kmod $j
+ done
+ )
+ fi
+
mkdir -p $targetdir/proc
LogFile "---------------------------"
LogFile "Content of initial targetdir:"
#####################################
Plus these 2 changes also from Christoph in
'/usr/lib/mindi/rootfs/etc/init.d/rcS' and
'/usr/lib/mindi/rootfs/usr/sbin/start-usb'.
#### rcS ##############
diff --git a/mindi-3.3.0/rootfs/etc/init.d/rcS
b/mindi-3.3.0/rootfs/etc/init.d/rcS
index 0c6329f..0a77f17 100755
--- a/mindi-3.3.0/rootfs/etc/init.d/rcS
+++ b/mindi-3.3.0/rootfs/etc/init.d/rcS
@@ -313,6 +313,7 @@ HandleCDROM() {
LogIt "Your archives are probably fine but" 1
LogIt "your tape streamer and/or CD-ROM drive are unsupported
at that point." 1
CD_MOUNTED_OK=""
+ . /usr/sbin/start-usb && CD_MOUNTED_OK=yes && echo "/mnt/cdrom"
> /tmp/CDROM-LIVES-HERE
fi
return 0
}
#####################
#### start-usb #########
diff --git a/mindi-3.3.0/rootfs/usr/sbin/start-usb
b/mindi-3.3.0/rootfs/usr/sbin/start-usb
index a16cd52..a7ad64a 100755
--- a/mindi-3.3.0/rootfs/usr/sbin/start-usb
+++ b/mindi-3.3.0/rootfs/usr/sbin/start-usb
@@ -13,19 +13,24 @@ for i in `cat /proc/cmdline` ; do
echo $i | grep -qi usb= && MRUSBDEV=`echo $i | cut -d= -f2`
done
-if [ $MRUSBDEV = "" ]; then
- # No usb configuration neither stored during archive
- # nor on cmdline so no usb wanted => exiting
- exit 0
-fi
-
-export MRUSBDEV
-
-echo -en "Mounting USB device (${MRUSBDEV}1) on /mnt/cdrom..."
/sbin/modprobe usb-storage
for i in 1 2 3 4 5 6 7 8 9 10 ; do
sleep 1
echo -en "."
done
-mount -t vfat ${MRUSBDEV}1 /mnt/cdrom && LogIt "USB device
(${MRUSBDEV}1) mounted on /mnt/cdrom"
+
+if [ "$MRUSBDEV" = "" ]; then
+ # No usb configuration neither stored during archive
+ # nor on cmdline so trying all
+ for i in sdh sdg sdf sde sdd sdc sdb ; do
+ mount -t vfat /dev/${i}1 /mnt/cdrom && LogIt "USB device
(/dev/${i}1) mounted on /mnt/cdrom" && break
+ done
+ MRUSBDEV=/dev/${i}
+else
+ echo -en "Mounting USB device (${MRUSBDEV}1) on /mnt/cdrom..."
+ mount -t vfat ${MRUSBDEV}1 /mnt/cdrom && LogIt "USB device
(${MRUSBDEV}1) mounted on /mnt/cdrom"
+fi
+
+export MRUSBDEV
+
echo "."
####################
I then applied the patch to '/usr/share/perl5/MondoRescue/Kernel.pm'
also supplied by Christoph.
####################
diff --git a/libmondorescue-perl-3.3.0/lib/MondoRescue/Kernel.pm
b/libmondorescue-perl-3.3.0/lib/MondoRescue/Kernel.pm
index 2bffbdb..1310158 100644
--- a/libmondorescue-perl-3.3.0/lib/MondoRescue/Kernel.pm
+++ b/libmondorescue-perl-3.3.0/lib/MondoRescue/Kernel.pm
@@ -80,7 +80,7 @@ my @allmodules = @_;
my $ver = shift @allmodules;
$ver = mr_kernel_get_version() if (not defined ($ver));
-my $module = "";
+my $module = "";
my %modlist;
my %modpath;
my $void = "";
@@ -136,8 +136,16 @@ my $modpath;
foreach my $m (@allmodules) {
pb_log(1,"Analyzing $m\n");
if (not defined $modpath{$m}) {
- pb_log(1,"WARNING: No modpath for module $m\n");
- next;
+ my $mm;
+ $mm = $m;
+ $mm =~ tr/_/-/;
+ $mm =~ s/x86-64/x86_64/g;
+ if (defined $modpath{$mm}) {
+ $m = $mm;
+ } else {
+ pb_log(1,"WARNING: No modpath for module $m\n");
+ next;
+ }
}
pb_log(2,"$m has a modpath of $modpath{$m}\n");
open(MODINFO, "/sbin/modinfo -n $modpath{$m} 2>/dev/null |") or
die "Unable to launch modinfo";
@@ -172,7 +180,7 @@ The main Web site of the project is available at
L<http://www.mondorescue.org/>.
=head1 USER MAILING LIST
The mailing list of the project is available at
L<mailto:[email protected]>
-
+
=head1 AUTHORS
The Mondorescue.org team L<http://www.mondorescue.org/> lead by Bruno
Cornec L<mailto:[email protected]>.
####################
Sorry for such a long post, but I hope it will help someone in the
future and maybe show that there is still interest and use of this very
important tool.
-- rich
On 2/15/2024 12:36 PM, Rich Goodwin via Mondo-devel wrote:
>
> Christoph,
>
> Again, many thanks for sharing.
> I did find where to increase the created size of '/tmp/tmpfs'. It is
> in '/usr/lib/mindi/rootfs/etc/init.d/rcS'.
> I needed to increase to 2048m to get mine to fit.
> Now running into issues with mondorestore not finding some shared
> libraries and mounting filesystems during a compare.
> Guess it is time for me to start hacking on things with the 'diffs'
> you have supplied.
> Wish me luck!
>
> -- rich
>
> On 2/15/2024 11:42 AM, Griesbeck Christoph via Mondo-devel wrote:
>>
>> Hi rich,
>>
>> in our experience this was an issue, because Debian uses symlinks for
>> the /lib, /bin, /sbin directories and therefore mondo copied them
>> twice into the restore media.
>>
>> The hunk fixing this issue in mindi.diff should be:
>>
>> @@ -2374,6 +2388,18 @@ PrepareBigDir() {
>>
>> Therefore no increase was needed after fixing this.
>>
>> But please read all the diffs, since other critical bugfixes are in
>> there as well. For example not correctly handled module paths in
>> libmondorescue-perl, duplicate toggle of bootable flags in effect not
>> setting it, silent fails when labeling partitions or when extracting
>> afio archives.
>>
>> Christoph
>>
>> *Von:*Rich Goodwin <[email protected]>
>> *Gesendet:* Mittwoch, 14. Februar 2024 18:30
>> *An:* [email protected]
>> *Betreff:* Re: [Mondo-devel] Diffs for Mondo on Debian 11
>>
>>
>>
>>
>> *Strama-IT informs/Die Strama-IT informiert: Caution/Vorsicht:*This
>> is an external email. Please take care with links or attachments.
>> When in doubt, contact [email protected]
>> <mailto:[email protected]>.
>> Dies ist eine externe E-Mail. Bitte seien Sie vorsichtig mit Links
>> oder Anhängen. Wenden Sie sich im Zweifelsfall an
>> [email protected] <mailto:[email protected]>.
>>
>> Christoph,
>>
>> Thank You for sharing this.
>> I too, hope project gets revisited someday.
>> I've used it for as long as we've been using Linux (20+) years. And
>> only had to deal with the occasional needed module that I could add
>> to mindi.
>>
>> By chance you know if any of these patches affect the size of the
>> ramdisk created during restore?
>> Currently I am fighting with it as it creates a 265mb /tmp/tmpfs to
>> restore(untar) base needed programs (mondorestore, etc.)
>> from boot media (CD,DVD or USB) so it can run mondorestore. But runs
>> out of space before completing the untar.
>>
>> If you know of where I can increase size, it would be great.
>>
>> -- rich
>>
>> On 2/14/2024 3:39 AM, Griesbeck Christoph via Mondo-devel wrote:
>>
>> Dear MailingList,
>>
>> to get Mondo working on Debian11 Bullseye, using mbr partitioned
>> harddrives and grub legacy, several adjustments have been made by
>> a colleague and me.
>>
>> The first batch of changes were sent by a colleague to Bruno
>> Cornec in Summer 2020 but have as far as I know not been integrated.
>>
>> Since some of you are struggling with the same problems as we
>> have, I have attached diffs for each package.
>>
>> Use this at your own risk as we might have broken stuff that we
>> are not using!
>>
>> In hope that this project some day is revived by Bruno,
>>
>> Christoph
>>
>> F & K DELVOTEC Bondtechnik GmbH
>> Daimlerstraße 5 – DE-85521 Ottobrunn
>> Rechtsform GmbH - Sitz Ottobrunn, Registergericht Amtsgericht
>> München - HR B 101812
>> Umsatzsteuer-Identifikations-Nr.: DE 811350414, Steuer-Nr.:
>> 143/202/61792
>> Geschäftsführer: Dipl.-Ing. Ralph Christoph
>>
>> Diese Nachricht und/oder die Anhänge sind vertraulich und daher
>> ausschließlich für den bezeichneten Adressaten bestimmt.
>> Jegliche Weitergabe oder Vervielfältigung dieser Mitteilung oder
>> die unerlaubte Benutzung ihres Inhalts ist streng verboten.
>> Wenn Sie diese Email empfangen haben und nicht der beabsichtigte
>> Adressat sind, benachrichtigen Sie den Absender bitte
>> unverzüglich und löschen Sie die Originalnachricht.
>>
>> This message and/ or attachments contains information that is
>> confidential and thereby intended solely for the use of the
>> addressed recipient.
>> Any distribution or copying of this e-mail, or the unauthorized
>> use of its contents, is strictly prohibited.
>> If you have received this e-mail and are not the intended
>> recipient, please notify the sender immediately and delete the
>> original e-mail.
>>
>>
>>
>>
>> _______________________________________________
>>
>> Mondo-devel mailing list
>>
>> [email protected] <mailto:[email protected]>
>>
>> https://lists.sourceforge.net/lists/listinfo/mondo-devel <https://lists.sourceforge.net/lists/listinfo/mondo-devel>
>>
>>
>>
>> _______________________________________________
>> Mondo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mondo-devel
>
>
> _______________________________________________
> Mondo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mondo-devel
--------------lDZkfLbzoIqmJj1S00d8eE93
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Thanks for all the help. I believe that I now have a functioning
MondoRescue for my Debian 11 systems. I can boot backup media and
do a compare without errors.<br>
I need to get hardware together to test further.</p>
<p>Seeing as I do not build packages from source, here is what I've
done to get where I am at, which I hope will help others.</p>
<p>I started with the Debian 10 packages at
'<a class="moz-txt-link-freetext" href="http://ftp.mondorescue.org//debian">http://ftp.mondorescue.org//debian</a> 10 contrib', because they
appear to have the newest packages.<br>
Which gave me 'mindi 3.3.0-1' (v3.3.0-r3762)<br>
'mindi-busybox 1.25.1-1<br>
'mondo 3.3.0-1 (v3.3.0-r3762)<br>
'libmondorescue-perl 3.3.0-1</p>
<p>I then proceeded to apply changesets 3764, 3766, 3767, 3768,
3769, 3771, 3774 and 3778 from
'<a class="moz-txt-link-freetext" href="http://trac.mondorescue.org/changeset/####/MondoRescue">http://trac.mondorescue.org/changeset/####/MondoRescue</a>' to
'/usr/sbin/mindi'.<br>
I then applied the following 3 patches from the 'mindi.diff' that
Christoph Griesbeck so graciously sent me that were not already in
mindi after applying above changesets.<br>
##### Not in 3778 ######## line 856<br>
@@ -846,7 +852,7 @@ ListAllPartitions() {<br>
<br>
<br>
ListKernelModulePaths() {<br>
- local module_list module fname r kern<br>
+ local module_list module module2 fname r r2 kern<br>
module_list="$MODULES"<br>
# Remove unwanted modules from list<br>
for i in $DENY_MODS; do<br>
@@ -874,6 +880,13 @@ ListKernelModulePaths() {<br>
else<br>
r="[extra module file not found]"<br>
fi<br>
+ module2=`echo ${module} | tr '_' '-'`<br>
+ module2=`echo ${module2} | sed -e
's/x86-64/x86_64/g'`<br>
+ r2=`find /lib/modules/$kern -type f | grep
"/${module2}\..*o" | tail -n1`<br>
+ if [ -n "$r2" ]; then<br>
+ [ -f "$r2" ] && echo "$r2"<br>
+ r="$r2"<br>
+ fi<br>
else<br>
[ -f "$r" ] && echo "$r"<br>
fi<br>
#####################</p>
<p>########## Not in 3778 ############# line 2393<br>
@@ -2374,6 +2388,18 @@ PrepareBigDir() {<br>
DropOptimizedLibraries $needlist $bigdir<br>
echo -en "INFO: Assembling dependency files"<br>
<br>
+ # Fixup $needlist w.r.t directories and usrmerge<br>
+ grep -v '/$' $needlist | sort -u > ${needlist}.new<br>
+ for i in /bin /lib /lib32 /lib64 /libx32 /sbin ; do<br>
+ if [ -h $i ]; then<br>
+ j=`readlink -f $i`<br>
+ perl -pi -e 's@^'"$j"'$@@g' ${needlist}.new<br>
+ perl -pi -e 's@^'"$i"'/@'"$j"'/@g' ${needlist}.new<br>
+ fi<br>
+ done<br>
+ grep -v '^$' ${needlist}.new >$needlist<br>
+ rm ${needlist}.new<br>
+<br>
CopyDependenciesToDirectory < $needlist $bigdir `wc -l
$needlist` 1<br>
rm -f $needlist<br>
echo -e "$DONE"<br>
###########################</p>
<p>###### Not in 3778 ##################<br>
@@ -3016,6 +3044,17 @@ EOF<br>
echo $m >> $targetdir/tmp/modules<br>
done<br>
<br>
+ # Fixup modprobe et.al. when /bin/kmod is available<br>
+ if [ -f $targetdir/bin/kmod ]; then<br>
+ (<br>
+ cd $targetdir/usr/sbin<br>
+ for j in depmod insmod lsmod modinfo modprobe rmmod ;
do<br>
+ rm -f $j<br>
+ ln -sf /bin/kmod $j<br>
+ done<br>
+ )<br>
+ fi<br>
+<br>
mkdir -p $targetdir/proc<br>
LogFile "---------------------------"<br>
LogFile "Content of initial targetdir:"<br>
#####################################</p>
<p>Plus these 2 changes also from Christoph in
'/usr/lib/mindi/rootfs/etc/init.d/rcS' and
'/usr/lib/mindi/rootfs/usr/sbin/start-usb'.<br>
</p>
<p>#### rcS ##############<br>
diff --git a/mindi-3.3.0/rootfs/etc/init.d/rcS
b/mindi-3.3.0/rootfs/etc/init.d/rcS<br>
index 0c6329f..0a77f17 100755<br>
--- a/mindi-3.3.0/rootfs/etc/init.d/rcS<br>
+++ b/mindi-3.3.0/rootfs/etc/init.d/rcS<br>
@@ -313,6 +313,7 @@ HandleCDROM() {<br>
LogIt "Your archives are probably fine but" 1<br>
LogIt "your tape streamer and/or CD-ROM drive are
unsupported at that point." 1<br>
CD_MOUNTED_OK=""<br>
+ . /usr/sbin/start-usb && CD_MOUNTED_OK=yes
&& echo "/mnt/cdrom" > /tmp/CDROM-LIVES-HERE<br>
fi<br>
return 0<br>
}<br>
#####################<br>
</p>
<p>#### start-usb #########<br>
diff --git a/mindi-3.3.0/rootfs/usr/sbin/start-usb
b/mindi-3.3.0/rootfs/usr/sbin/start-usb<br>
index a16cd52..a7ad64a 100755<br>
--- a/mindi-3.3.0/rootfs/usr/sbin/start-usb<br>
+++ b/mindi-3.3.0/rootfs/usr/sbin/start-usb<br>
@@ -13,19 +13,24 @@ for i in `cat /proc/cmdline` ; do<br>
echo $i | grep -qi usb= && MRUSBDEV=`echo $i | cut
-d= -f2`<br>
done<br>
<br>
-if [ $MRUSBDEV = "" ]; then<br>
- # No usb configuration neither stored during archive<br>
- # nor on cmdline so no usb wanted => exiting<br>
- exit 0<br>
-fi<br>
-<br>
-export MRUSBDEV<br>
-<br>
-echo -en "Mounting USB device (${MRUSBDEV}1) on /mnt/cdrom..."<br>
/sbin/modprobe usb-storage<br>
for i in 1 2 3 4 5 6 7 8 9 10 ; do<br>
sleep 1<br>
echo -en "."<br>
done<br>
-mount -t vfat ${MRUSBDEV}1 /mnt/cdrom && LogIt "USB
device (${MRUSBDEV}1) mounted on /mnt/cdrom" <br>
+<br>
+if [ "$MRUSBDEV" = "" ]; then<br>
+ # No usb configuration neither stored during archive<br>
+ # nor on cmdline so trying all<br>
+ for i in sdh sdg sdf sde sdd sdc sdb ; do<br>
+ mount -t vfat /dev/${i}1 /mnt/cdrom && LogIt "USB
device (/dev/${i}1) mounted on /mnt/cdrom" && break<br>
+ done<br>
+ MRUSBDEV=/dev/${i}<br>
+else<br>
+ echo -en "Mounting USB device (${MRUSBDEV}1) on
/mnt/cdrom..."<br>
+ mount -t vfat ${MRUSBDEV}1 /mnt/cdrom && LogIt "USB
device (${MRUSBDEV}1) mounted on /mnt/cdrom"<br>
+fi<br>
+<br>
+export MRUSBDEV<br>
+<br>
echo "."<br>
####################</p>
<p>I then applied the patch to
'/usr/share/perl5/MondoRescue/Kernel.pm' also supplied by
Christoph.</p>
<p>####################<br>
diff --git a/libmondorescue-perl-3.3.0/lib/MondoRescue/Kernel.pm
b/libmondorescue-perl-3.3.0/lib/MondoRescue/Kernel.pm<br>
index 2bffbdb..1310158 100644<br>
--- a/libmondorescue-perl-3.3.0/lib/MondoRescue/Kernel.pm<br>
+++ b/libmondorescue-perl-3.3.0/lib/MondoRescue/Kernel.pm<br>
@@ -80,7 +80,7 @@ my @allmodules = @_;<br>
my $ver = shift @allmodules;<br>
$ver = mr_kernel_get_version() if (not defined ($ver));<br>
<br>
-my $module = ""; <br>
+my $module = "";<br>
my %modlist;<br>
my %modpath;<br>
my $void = "";<br>
@@ -136,8 +136,16 @@ my $modpath;<br>
foreach my $m (@allmodules) {<br>
pb_log(1,"Analyzing $m\n");<br>
if (not defined $modpath{$m}) {<br>
- pb_log(1,"WARNING: No modpath for module $m\n");<br>
- next;<br>
+ my $mm;<br>
+ $mm = $m;<br>
+ $mm =~ tr/_/-/;<br>
+ $mm =~ s/x86-64/x86_64/g;<br>
+ if (defined $modpath{$mm}) {<br>
+ $m = $mm;<br>
+ } else {<br>
+ pb_log(1,"WARNING: No modpath for module $m\n");<br>
+ next;<br>
+ }<br>
}<br>
pb_log(2,"$m has a modpath of $modpath{$m}\n");<br>
open(MODINFO, "/sbin/modinfo -n $modpath{$m} 2>/dev/null
|") or die "Unable to launch modinfo";<br>
@@ -172,7 +180,7 @@ The main Web site of the project is available
at L<a class="moz-txt-link-rfc2396E" href="http://www.mondorescue.org/"><http://www.mondorescue.org/></a>.<br>
=head1 USER MAILING LIST<br>
<br>
The mailing list of the project is available at
L<a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><mailto:[email protected]></a><br>
- <br>
+<br>
=head1 AUTHORS<br>
<br>
The Mondorescue.org team L<a class="moz-txt-link-rfc2396E" href="http://www.mondorescue.org/"><http://www.mondorescue.org/></a>
lead by Bruno Cornec L<a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><mailto:[email protected]></a>.<br>
####################</p>
<p>Sorry for such a long post, but I hope it will help someone in
the future and maybe show that there is still interest and use of
this very important tool.</p>
<p>-- rich<br>
</p>
<div class="moz-cite-prefix">On 2/15/2024 12:36 PM, Rich Goodwin via
Mondo-devel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:[email protected]">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Christoph,</p>
<p>Again, many thanks for sharing.<br>
I did find where to increase the created size of '/tmp/tmpfs'.
It is in '/usr/lib/mindi/rootfs/etc/init.d/rcS'.<br>
I needed to increase to 2048m to get mine to fit.<br>
Now running into issues with mondorestore not finding some
shared libraries and mounting filesystems during a compare.<br>
Guess it is time for me to start hacking on things with the
'diffs' you have supplied.<br>
Wish me luck!</p>
<p>-- rich<br>
</p>
<div class="moz-cite-prefix">On 2/15/2024 11:42 AM, Griesbeck
Christoph via Mondo-devel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DB3P189MB237935771435D930C0E2CD34BA4D2@DB3P189MB2379.EURP189.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";}span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:Consolas;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}span.E-MailFormatvorlage21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi rich,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">in our experience this
was an issue, because Debian uses symlinks for the /lib,
/bin, /sbin directories and therefore mondo copied them
twice into the restore media.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The hunk fixing this
issue in mindi.diff should be:<o:p></o:p></span></p>
<p class="MsoNormal">@@ -2374,6 +2388,18 @@ PrepareBigDir() {<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Therefore no increase
was needed after fixing this.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But please read all
the diffs, since other critical bugfixes are in there as
well. For example not correctly handled module paths in
libmondorescue-perl, duplicate toggle of bootable flags in
effect not setting it, silent fails when labeling
partitions or when extracting afio archives.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Christoph<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="mso-ligatures:none;mso-fareast-language:DE">Von:</span></b><span
style="mso-ligatures:none;mso-fareast-language:DE">
Rich Goodwin <a class="moz-txt-link-rfc2396E"
href="mailto:[email protected]"
moz-do-not-send="true"><[email protected]></a>
<br>
<b>Gesendet:</b> Mittwoch, 14. </span><span
style="mso-ligatures:none;mso-fareast-language:DE"
lang="EN-US">Februar 2024 18:30<br>
<b>An:</b> <a
class="moz-txt-link-abbreviated moz-txt-link-freetext"
href="mailto:[email protected]"
moz-do-not-send="true">[email protected]</a><br>
<b>Betreff:</b> Re: [Mondo-devel] Diffs for Mondo on
Debian 11<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<table class="MsoNormalTable" style="width:100.0%"
width="100%" cellspacing="0" cellpadding="0" border="0"
align="left">
<tbody>
<tr>
<td
style="background:red;padding:5.0pt 2.0pt 5.0pt 2.0pt"><br>
</td>
<td
style="width:100.0%;background:#D49C55;padding:5.0pt 4.0pt 5.0pt 12.0pt"
width="100%">
<div>
<p
style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<b><span
style="font-size:9.0pt;font-family:"Times New Roman",serif;color:#222222"
lang="EN-US">Strama-IT informs/Die Strama-IT
informiert: Caution/Vorsicht:</span></b><span
style="font-size:9.0pt;font-family:"Times New Roman",serif;color:#222222"
lang="EN-US"> This is an external email. Please
take care with links or attachments. </span><span
style="font-size:9.0pt;font-family:"Times New Roman",serif;color:#222222">When
in doubt, contact </span><span
style="font-size:10.0pt;font-family:"Times New Roman",serif;color:black"><a
href="mailto:[email protected]"
moz-do-not-send="true"><span
style="font-size:9.0pt">[email protected]</span></a></span><span
style="font-size:9.0pt;font-family:"Times New Roman",serif;color:#222222">.<br>
Dies ist eine externe E-Mail. Bitte seien Sie
vorsichtig mit Links oder Anhängen. Wenden Sie
sich im Zweifelsfall an </span><span
style="font-size:10.0pt;font-family:"Times New Roman",serif;color:black"><a
href="mailto:[email protected]"
moz-do-not-send="true"><span
style="font-size:9.0pt">[email protected]</span></a></span><span
style="font-size:9.0pt;font-family:"Times New Roman",serif;color:#222222">.
<o:p></o:p></span></p>
</div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p><span lang="EN-US">Christoph,<o:p></o:p></span></p>
<p><span lang="EN-US">Thank You for sharing this.<br>
I too, hope project gets revisited someday.<br>
I've used it for as long as we've been using Linux (20+)
years. And only had to deal with the occasional needed
module that I could add to mindi.<o:p></o:p></span></p>
<p><span lang="EN-US">By chance you know if any of these
patches affect the size of the ramdisk created during
restore?<br>
Currently I am fighting with it as it creates a 265mb
/tmp/tmpfs to restore(untar) base needed programs
(mondorestore, etc.)<br>
from boot media (CD,DVD or USB) so it can run
mondorestore. But runs out of space before completing
the untar.<o:p></o:p></span></p>
<p><span lang="EN-US">If you know of where I can increase
size, it would be great.<o:p></o:p></span></p>
<p><span lang="EN-US">-- rich<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On 2/14/2024 3:39
AM, Griesbeck Christoph via Mondo-devel wrote:<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Dear MailingList,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">to get Mondo
working on Debian11 Bullseye, using mbr partitioned
harddrives and grub legacy, several adjustments have
been made by a colleague and me.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The first batch of
changes were sent by a colleague to Bruno Cornec in
Summer 2020 but have as far as I know not been
integrated.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Since some of you
are struggling with the same problems as we have, I
have attached diffs for each package.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Use this at your
own risk as we might have broken stuff that we are not
using!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In hope that this
project some day is revived by Bruno,<o:p></o:p></span></p>
<p class="MsoNormal">Christoph <o:p></o:p></p>
<p><span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray">F
& K DELVOTEC Bondtechnik GmbH<br>
Daimlerstraße 5 – DE-85521 Ottobrunn<br>
Rechtsform GmbH - Sitz Ottobrunn, Registergericht
Amtsgericht München - HR B 101812<br>
Umsatzsteuer-Identifikations-Nr.: DE 811350414,
Steuer-Nr.: 143/202/61792<br>
Geschäftsführer: Dipl.-Ing. Ralph Christoph</span><o:p></o:p></p>
<p><span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray">Diese
Nachricht und/oder die Anhänge sind vertraulich und
daher ausschließlich für den bezeichneten Adressaten
bestimmt.</span><br>
<span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray">Jegliche
Weitergabe oder Vervielfältigung dieser Mitteilung
oder die unerlaubte Benutzung ihres Inhalts ist streng
verboten. </span><br>
<span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray">Wenn
Sie diese Email empfangen haben und nicht der
beabsichtigte Adressat sind, benachrichtigen Sie den
Absender bitte unverzüglich und löschen Sie die
Originalnachricht.</span><o:p></o:p></p>
<p><span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray"
lang="EN-US">This message and/ or attachments contains
information that is confidential and thereby intended
solely for the use of the addressed recipient.</span><span
lang="EN-US"><br>
</span><span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray"
lang="EN-US">Any distribution or copying of this
e-mail, or the unauthorized use of its contents, is
strictly prohibited.</span><span lang="EN-US"><br>
</span><span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray"
lang="EN-US">If you have received this e-mail and are
not the intended recipient, please notify the sender
immediately and delete the original e-mail.</span><span
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="mso-ligatures:none;mso-fareast-language:DE"
lang="EN-US"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre><span lang="EN-US">_______________________________________________<o:p></o:p></span></pre>
<pre><span lang="EN-US">Mondo-devel mailing list<o:p></o:p></span></pre>
<pre><a href="mailto:[email protected]"
moz-do-not-send="true"><span lang="EN-US">[email protected]</span></a><span
lang="EN-US"><o:p></o:p></span></pre>
<pre><a
href="https://lists.sourceforge.net/lists/listinfo/mondo-devel"
moz-do-not-send="true"><span lang="EN-US">https://lists.sourceforge.net/lists/listinfo/mondo-devel</span></a><span
lang="EN-US"><o:p></o:p></span></pre>
</blockquote>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Mondo-devel mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext"
href="mailto:[email protected]"
moz-do-not-send="true">[email protected]</a>
<a class="moz-txt-link-freetext"
href="https://lists.sourceforge.net/lists/listinfo/mondo-devel"
moz-do-not-send="true">https://lists.sourceforge.net/lists/listinfo/mondo-devel</a>
</pre>
</blockquote>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Mondo-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/mondo-devel">https://lists.sourceforge.net/lists/listinfo/mondo-devel</a>
</pre>
</blockquote>
</body>
</html>
--------------lDZkfLbzoIqmJj1S00d8eE93--
--===============3911400911997213266==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============3911400911997213266==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
--===============3911400911997213266==--