pb-sos: capture Skiboot log
authorGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Tue, 11 Jul 2017 18:04:04 +0000 (15:04 -0300)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Wed, 12 Jul 2017 04:47:06 +0000 (14:47 +1000)
Makes sense to capture Skiboot log in pb-sos, specially since
it might help clarify about HW problems, like PCI initialization
failures.

Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
utils/pb-sos

index 2e9802e6a06fdbcd7a98c38a7a762fe8c501bfdd..3fa8e89bf9974bd24de0a6202ac7e4a64ff0950f 100755 (executable)
@@ -63,6 +63,10 @@ fi
 log "Adding dmesg"
 dmesg > /$diagdir/dmesg
 
+# Add Skiboot log
+log "Adding Skiboot log"
+cat /sys/firmware/opal/msglog > /$diagdir/msglog
+
 log "Compressing..."
 cd /
 tar $tarflags -cf $tarfile $diagdir