Blame 0064-Enhance-suse.conf-and-debug-module-example-with-SUSE.patch

Harald Hoyer b94732
From 94920084351349cba579ce80a89321ab6544653c Mon Sep 17 00:00:00 2001
Harald Hoyer b94732
From: Thomas Renninger <trenn@suse.de>
Harald Hoyer b94732
Date: Thu, 11 Dec 2014 15:46:25 +0100
Harald Hoyer b94732
Subject: [PATCH] Enhance suse.conf and debug module example with SUSE-specific
Harald Hoyer b94732
 settings
Harald Hoyer b94732
Harald Hoyer b94732
SUSE is using specific settings for dracut, so add them
Harald Hoyer b94732
to the suse.conf.example file.
Harald Hoyer b94732
Harald Hoyer b94732
Add vi and find to the debug module add some help text to the suse.conf
Harald Hoyer b94732
file when and how to use it.
Harald Hoyer b94732
Harald Hoyer b94732
Signed-off-by: Thomas Renninger <trenn@suse.de>
Harald Hoyer b94732
---
Harald Hoyer b94732
 dracut.conf.d/suse.conf.example   | 21 +++++++++++++++++++++
Harald Hoyer b94732
 modules.d/95debug/module-setup.sh |  3 +--
Harald Hoyer b94732
 2 files changed, 22 insertions(+), 2 deletions(-)
Harald Hoyer b94732
Harald Hoyer b94732
diff --git a/dracut.conf.d/suse.conf.example b/dracut.conf.d/suse.conf.example
Harald Hoyer b94732
index 1e7f80e..37ffd72 100644
Harald Hoyer b94732
--- a/dracut.conf.d/suse.conf.example
Harald Hoyer b94732
+++ b/dracut.conf.d/suse.conf.example
Harald Hoyer b94732
@@ -1,3 +1,24 @@
Harald Hoyer b94732
+# SUSE specifc dracut settings
Harald Hoyer b94732
+#
Harald Hoyer b94732
+# SUSE by default always builds a as small as possible initrd for performance
Harald Hoyer b94732
+# and resource reasons.
Harald Hoyer b94732
+# If you like to build a generic initrd which works on other platforms than
Harald Hoyer b94732
+# on the one dracut/mkinitrd got called comment out below setting(s).
Harald Hoyer b94732
+hostonly="yes"
Harald Hoyer b94732
+hostonly_cmdline="yes"
Harald Hoyer b94732
+
Harald Hoyer b94732
+compress="xz -0 --check=crc32 --memlimit-compress=50%"
Harald Hoyer b94732
+
Harald Hoyer b94732
 i18n_vars="/etc/sysconfig/language:RC_LANG-LANG,RC_LC_ALL-LC_ALL /etc/sysconfig/console:CONSOLE_UNICODEMAP-FONT_UNIMAP,CONSOLE_FONT-FONT,CONSOLE_SCREENMAP-FONT_MAP /etc/sysconfig/keyboard:KEYTABLE-KEYMAP"
Harald Hoyer b94732
 omit_drivers+=" i2o_scsi"
Harald Hoyer b94732
 
Harald Hoyer b94732
+# Below adds additional tools to the initrd which are not urgently necessary to
Harald Hoyer b94732
+# bring up the system, but help to debug problems.
Harald Hoyer b94732
+# See /usr/lib/dracut/modules.d/95debug/module-setup.sh which additional tools
Harald Hoyer b94732
+# are installed and add more if you need them. This specifically helps if you
Harald Hoyer b94732
+# use:
Harald Hoyer b94732
+# rd.break=[cmdline|pre-udev|pre-trigger|initqueue|pre-mount|
Harald Hoyer b94732
+# mount|pre-pivot|cleanup]
Harald Hoyer b94732
+# boot parameter or if you are forced to enter the dracut emergency shell.
Harald Hoyer b94732
+
Harald Hoyer b94732
+# add_dracutmodules+=debug
Harald Hoyer b94732
diff --git a/modules.d/95debug/module-setup.sh b/modules.d/95debug/module-setup.sh
Harald Hoyer b94732
index 625f7fb..5a9aaac 100755
Harald Hoyer b94732
--- a/modules.d/95debug/module-setup.sh
Harald Hoyer b94732
+++ b/modules.d/95debug/module-setup.sh
Harald Hoyer b94732
@@ -14,8 +14,7 @@ depends() {
Harald Hoyer b94732
 # called by dracut
Harald Hoyer b94732
 install() {
Harald Hoyer b94732
     inst_multiple -o ps grep more cat rm strace free showmount \
Harald Hoyer b94732
-        ping netstat rpcinfo vi scp ping6 ssh \
Harald Hoyer b94732
+        ping netstat rpcinfo vi scp ping6 ssh find vi \
Harald Hoyer b94732
         fsck fsck.ext2 fsck.ext4 fsck.ext3 fsck.ext4dev fsck.vfat e2fsck
Harald Hoyer b94732
-
Harald Hoyer b94732
 }
Harald Hoyer b94732