eb37c150a3
- Do not blindly try to touch the logfile (bnc#893219) * Add 0146-dracut.sh-corrected-logfile-check.patch - Only fix UUID= fstab parsing * Add 0147-dracut.sh-Fix-UUID-fstab-parsing-in-case-mount-optio.patch - Also fix other parsing syntax in fstab like LABEL= * Add 0148-dracut.sh-Fix-LABEL-and-other-fstab-syntax.patch - Fix up some bugs from previous commit * Add 0149-dracut.sh-Fix-fstab-parsing-again.patch - bnc#893615 * Add 0150-Find-kernel-modules-in-extra-and-weak-updates-path-a.patch - pixz does need too much memory, go back to xz in a conservative way (bnc#893981) * Add 0151-Go-back-to-xz-again-pixz-may-use-too-much-memory-whi.patch - Add some default tools to initrd when debug module is included and already provided an commented example line how to easily enable it. No functional change by default. * Add 0152-Add-a-comment-to-easily-add-debug-modules-also-add-v.patch OBS-URL: https://build.opensuse.org/request/show/246856 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=182
47 lines
1.9 KiB
Diff
47 lines
1.9 KiB
Diff
From 9cbbca5888f657833e658fcfe1fc21e74c3a3507 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Renninger <trenn@suse.de>
|
|
Date: Fri, 29 Aug 2014 16:19:33 +0200
|
|
Subject: Add a comment to easily add debug modules, also add vi to debug
|
|
module
|
|
|
|
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
|
---
|
|
dracut.conf.d/suse.conf.example | 10 ++++++++++
|
|
modules.d/95debug/module-setup.sh | 2 +-
|
|
2 files changed, 11 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/dracut.conf.d/suse.conf.example b/dracut.conf.d/suse.conf.example
|
|
index b0ef0e5..37ffd72 100644
|
|
--- a/dracut.conf.d/suse.conf.example
|
|
+++ b/dracut.conf.d/suse.conf.example
|
|
@@ -12,3 +12,13 @@ compress="xz -0 --check=crc32 --memlimit-compress=50%"
|
|
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"
|
|
omit_drivers+=" i2o_scsi"
|
|
|
|
+# Below adds additional tools to the initrd which are not urgently necessary to
|
|
+# bring up the system, but help to debug problems.
|
|
+# See /usr/lib/dracut/modules.d/95debug/module-setup.sh which additional tools
|
|
+# are installed and add more if you need them. This specifically helps if you
|
|
+# use:
|
|
+# rd.break=[cmdline|pre-udev|pre-trigger|initqueue|pre-mount|
|
|
+# mount|pre-pivot|cleanup]
|
|
+# boot parameter or if you are forced to enter the dracut emergency shell.
|
|
+
|
|
+# add_dracutmodules+=debug
|
|
diff --git a/modules.d/95debug/module-setup.sh b/modules.d/95debug/module-setup.sh
|
|
index 1891fa8..cdc56dc 100755
|
|
--- a/modules.d/95debug/module-setup.sh
|
|
+++ b/modules.d/95debug/module-setup.sh
|
|
@@ -16,7 +16,7 @@ depends() {
|
|
# called by dracut
|
|
install() {
|
|
inst_multiple -o ps grep more cat rm strace free showmount \
|
|
- ping netstat rpcinfo vi scp ping6 ssh find \
|
|
+ ping netstat rpcinfo vi scp ping6 ssh find vi \
|
|
fsck fsck.ext2 fsck.ext4 fsck.ext3 fsck.ext4dev fsck.vfat e2fsck
|
|
}
|
|
|
|
--
|
|
1.7.6.1
|
|
|