[openwrt/openwrt] base-files: mount pstore if present

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 30 09:59:29 EST 2021


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/95b30f84d274ababc99a4e17aa8dee3ce643c2a1

commit 95b30f84d274ababc99a4e17aa8dee3ce643c2a1
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Sat Jan 23 15:08:00 2021 -0800

    base-files: mount pstore if present
    
    Pstore (persistent store) can be used to stash debug information (kernel
    console, panics, ftrace) across reboots or crashes. If the filesystem is
    present, mount it.
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 package/base-files/files/etc/init.d/boot | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index b36323a97e..a1e8e828dd 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -35,6 +35,7 @@ boot() {
 	ln -sf /tmp/resolv.conf.d/resolv.conf.auto /tmp/resolv.conf
 	grep -q debugfs /proc/filesystems && /bin/mount -o noatime -t debugfs debugfs /sys/kernel/debug
 	grep -q bpf /proc/filesystems && /bin/mount -o nosuid,nodev,noexec,noatime,mode=0700 -t bpf bpffs /sys/fs/bpf
+	grep -q pstore /proc/filesystems && /bin/mount -o noatime -t pstore pstore /sys/fs/pstore
 	[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
 
 	/sbin/kmodloader



More information about the lede-commits mailing list