- Add ACPI table override ability - Adjust mkinitrd-dracut.sh to SUSE mkinitrd: <none> : Before gives a "usage" error -> now scans /boot for kernels and builds corresponding inirtrds for them -i -k : Pass a list of kernels and initrd targets (not sure it was worth the hassle to be able to pass) -b : Boot directory to search for kernel images -d : Change root file system. Not tested whether dracut's behavior matches exactly what our mkinitrd does. -s : Dummy (should even be obsolete in latest mkinitrd) - Write caller and used parameters to syslog if mkinitrd is called. So that those can easily be fixed and checked for correctness. This should get reverted again before a bigger release. OBS-URL: https://build.opensuse.org/request/show/201877 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=56
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 $?
|