dracut/suse_only_logger.patch
Robert Milasan 1c955cd93d Accepting request 201996 from home:mvyskocil
- Mark /etc/dracut.conf.d/02-early-microcode.conf as config file

Add following entry to .changes of trenn@suse.de
"""
- Build host only images for default paths in SUSE for faster build and
  smaller images. Imply --force in this case as well.
  * suse_host_only.patch
"""
It was not documented

- Tagged all patches per policy
- Add extension .patch to all patches per policy

OBS-URL: https://build.opensuse.org/request/show/201996
OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=59
2013-10-03 07:37:56 +00:00

19 lines
535 B
Diff

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 $?