sys-fs/lvm2: runscript: output msg when we are loading module
authorThomas Deutschmann <whissi@gentoo.org>
Tue, 14 Apr 2020 17:41:24 +0000 (19:41 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Tue, 14 Apr 2020 18:34:19 +0000 (20:34 +0200)
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
sys-fs/lvm2/files/lvm.rc-2.02.187

index 1bf8002b9dabecd94e493afe5bc42c7bbfdd5b13..d9c11730cdb28bc642b14b9dd4807a883c08d99b 100644 (file)
@@ -77,9 +77,12 @@ start() {
                eerror "Failed to find lvm binary in /bin or /sbin!"
                return 1
        fi
+
        if [ -z "${CDBOOT}" ] ; then
                if [ -e /proc/modules ] && ! dm_in_proc ; then
+                       ebegin "Trying to load dm-mod module"
                        modprobe dm-mod 2>/dev/null
+                       eend $?
                fi
 
                if [ -d /proc/lvm ] || dm_in_proc ; then