summaryrefslogtreecommitdiff
path: root/modules.d/99base/sosreport.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/99base/sosreport.sh')
-rwxr-xr-xmodules.d/99base/sosreport.sh49
1 files changed, 49 insertions, 0 deletions
diff --git a/modules.d/99base/sosreport.sh b/modules.d/99base/sosreport.sh
new file mode 100755
index 00000000..2aded6b0
--- /dev/null
+++ b/modules.d/99base/sosreport.sh
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+echo 'Generating "/run/initramfs/sosreport.txt"'
+
+exec >/run/initramfs/sosreport.txt 2>&1
+
+set -x
+
+cat /proc/self/mountinfo
+cat /proc/mounts
+
+blkid
+blkid -o udev
+
+ls -l /dev/disk/by*
+
+cat /proc/cmdline
+
+[ -f /etc/cmdline ] && cat /etc/cmdline
+
+for _i in /etc/cmdline.d/*.conf; do
+ [ -f "$_i" ] || break
+ echo $_i
+ cat $_i
+done
+
+for _i in /etc/conf.d/*.conf; do
+ [ -f "$_i" ] || break
+ echo $_i
+ cat $_i
+done
+
+if command -v lvm >/dev/null 2>/dev/null; then
+ lvm pvdisplay
+ lvm vgdisplay
+ lvm lvdisplay
+fi
+
+command -v dmsetup >/dev/null 2>/dev/null && dmsetup ls --tree
+
+cat /proc/mdstat
+
+if command -v journalctl >/dev/null 2>/dev/null; then
+ journalctl -ab --no-pager
+else
+ dmesg
+ [ -f /run/initramfs/init.log ] && cat /run/initramfs/init.log
+fi
+