aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2021-01-23 15:08:00 -0800
committerHauke Mehrtens <hauke@hauke-m.de>2021-01-29 22:26:36 +0100
commit95b30f84d274ababc99a4e17aa8dee3ce643c2a1 (patch)
tree814ce5b6b656602a5a326233a58571039ad77a16
parent5b66c447f3f8217f5a43506c7e2c41a1ea7ef7f1 (diff)
downloadupstream-95b30f84d274ababc99a4e17aa8dee3ce643c2a1.tar.gz
upstream-95b30f84d274ababc99a4e17aa8dee3ce643c2a1.tar.bz2
upstream-95b30f84d274ababc99a4e17aa8dee3ce643c2a1.zip
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@gmail.com>
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot1
1 files changed, 1 insertions, 0 deletions
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