/run needs to be excluded from mindi but is included

"Frank Schütte" <[email protected]> Fri, 02 Apr 2021 16:27:13 +0200
Newsgroups gmane.linux.mondo.devel
Message-ID <[email protected]>
Hallo,
I do use MondoRescue for a long time now without problems, but on one of my systems
with a encrypted volume mounted below /run, mindi tries to include the whole volume
in mondo dependencies.
How can I avoid that? I searched the code to some extend but I cannot detect where
/run gets into the dependencies.
On my other systems this is no problem but for the system with the volume mounted 
below /run/media it ist definitely a problem.

My system is openSUSE Linux 15.2.

Thank you for your help.

---------------------------------------- MINDI OUTPUT
Mindi Linux mini-distro generator v3.3.0-r3776M
Latest Mindi is available from http://www.mondorescue.org
BusyBox sources are available from http://www.busybox.net
------------------------------------------------------------------------------
INFO: You are using Mindi-BusyBox v1.25.1 (2017-01-17 19:49:16 UTC) multi-call binary.

Do you want to use your own kernel to build the boot disk ([y]/n) ?y
INFO: Analyzing dependency requirements                         Done.         
INFO: Making complete dependency list...                        Done.         
INFO: Analyzing your keyboard's configuration.
INFO: Adding keyboard mapping tables                            Done.         
INFO: Assembling dependency filestar: Das sieht nicht wie ein „tar“-Archiv aus.
tar: Beende mit Fehlerstatus aufgrund vorheriger Fehler
FATAL ERROR. Cannot copy /run/media/fschuett/linuxdata/2020/KGSOrganisatorisches/Kollegenbrief 20.11.2020 -Wiedereinstieg Szenario A-Ks.pdf to /tmp/mindi.sjXhP4jmd1/bigdir.26345 - did you run out of disk space?
Please e-mail a copy of /var/log/mindi.log to the mailing list.
See http://www.mondorescue.org for more information.
WE CANNOT HELP unless you enclose that file.
------------------------------------------------ MINDI OUTPUT END

Bye, Frank Schütte

PS: with the attached patch mindi is able to detect my keyboard mapping correctly, otherwise
it tries to read from /usr/lib/kbd and /etc/sysconfig/keyboard, which are available on my system
but don't contain the required information.

_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
mindi_keyboard.patch (text/x-patch, 1.2 KB)
--- mindi.orig	2021-04-02 14:35:38.255116870 +0200
+++ mindi	2021-04-02 14:38:29.267210418 +0200
@@ -402,8 +402,8 @@
 FindAndAddUserKeyboardMappingFile() {
 	local r res mapfile mappath included_item included_list keyfile mp locale
 	LogAll "INFO: Analyzing your keyboard's configuration."
-	KEYDIR=/usr/lib/kbd
-	[ ! -e "$KEYDIR" ] && KEYDIR=/usr/share/kbd		# Slackware
+	KEYDIR=/usr/share/kbd		# Slackware
+	[ ! -e "$KEYDIR" ] && KEYDIR=/usr/lib/kbd
 	[ ! -e "$KEYDIR" ] && KEYDIR=/etc/console
 	[ ! -e "$KEYDIR" ] && KEYDIR=/etc/console-setup
 	[ ! -e "$KEYDIR" ] && KEYDIR=/lib/kbd
@@ -413,12 +413,12 @@
 	else
 		LogFile "INFO: KEYDIR=$KEYDIR"
 	fi
-	if [ -e "/etc/sysconfig/keyboard" ] ; then
-		LogFile "INFO: Red Hat-style config detected."
-		keyfile=/etc/sysconfig/keyboard
-	elif [ -e "/etc/vconsole.conf" ] ; then
+	if [ -e "/etc/vconsole.conf" ] ; then
  		LogFile "INFO: New Fedora style config detected."
  		keyfile=/etc/vconsole.conf
+	elif [ -e "/etc/sysconfig/keyboard" ] ; then
+		LogFile "INFO: Red Hat-style config detected."
+		keyfile=/etc/sysconfig/keyboard
 	elif [ -e "/etc/rc.d/rc.keymap" ] ; then
  		LogFile "INFO: Slackware-style config detected."
  		keyfile=/etc/rc.d/rc.keymap
mindi.log (text/x-log, 209.9 KB) - not displayed