19 lines
535 B
Plaintext
19 lines
535 B
Plaintext
|
diff --git a/mkinitrd-dracut.sh b/mkinitrd-dracut.sh
|
||
|
index a1519ea..dacba60 100755
|
||
|
--- a/mkinitrd-dracut.sh
|
||
|
+++ b/mkinitrd-dracut.sh
|
||
|
@@ -110,6 +110,13 @@ default_kernel_images() {
|
||
|
force=1
|
||
|
}
|
||
|
|
||
|
+if which logger &>/dev/null && which tr &>/dev/null;then
|
||
|
+ self=$(tr "\000" " " </proc/$$/cmdline)
|
||
|
+ self=${self#/bin/bash --norc }
|
||
|
+ parent=$(tr "\000" " " </proc/$PPID/cmdline)
|
||
|
+ logger -- "$self called by $parent"
|
||
|
+fi
|
||
|
+
|
||
|
while (($# > 0)); do
|
||
|
case ${1%%=*} in
|
||
|
--with-usb) read_arg usbmodule "$@" || shift $?
|