network: don't use "ifup -m"
[dracut.git] / modules.d / 99base / rdsosreport.sh
blob3e2ac87dc7422fbcfb3bb74fc49c9c7223a39afd
1 #!/bin/sh
3 echo 'Generating "/run/initramfs/rdsosreport.txt"'
5 [ -d /run/initramfs ] || mkdir -p /run/initramfs
7 exec >/run/initramfs/rdsosreport.txt 2>&1
9 set -x
11 cat /lib/dracut/dracut-*
13 cat /proc/cmdline
15 [ -f /etc/cmdline ] && cat /etc/cmdline
17 for _i in /etc/cmdline.d/*.conf; do
18 [ -f "$_i" ] || break
19 echo $_i
20 cat $_i
21 done
23 cat /proc/self/mountinfo
24 cat /proc/mounts
26 blkid
27 blkid -o udev
29 ls -l /dev/disk/by*
31 for _i in /etc/conf.d/*.conf; do
32 [ -f "$_i" ] || break
33 echo $_i
34 cat $_i
35 done
37 if command -v lvm >/dev/null 2>/dev/null; then
38 lvm pvdisplay
39 lvm vgdisplay
40 lvm lvdisplay
43 command -v dmsetup >/dev/null 2>/dev/null && dmsetup ls --tree
45 cat /proc/mdstat
47 command -v ip >/dev/null 2>/dev/null && ip addr
49 if command -v journalctl >/dev/null 2>/dev/null; then
50 journalctl -ab --no-pager -o short-monotonic
51 else
52 dmesg
53 [ -f /run/initramfs/init.log ] && cat /run/initramfs/init.log