Skip to content

Commit

Permalink
[202311] Fix pstore service not running (#19006)
Browse files Browse the repository at this point in the history
* Fix pstore service not running
  • Loading branch information
DavidZagury authored May 29, 2024
1 parent 67d8771 commit 986f84f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,10 @@ rm /files/lib/systemd/system/rsyslog.service/Service/ExecStart/arguments
set /files/lib/systemd/system/rsyslog.service/Service/ExecStart/arguments/1 -n
"

# Ensure pstore service is running
sudo mkdir -p $FILESYSTEM_ROOT/lib/systemd/system/systemd-pstore.service.d
sudo cp files/image_config/system-pstore/override.conf $FILESYSTEM_ROOT/lib/systemd/system/systemd-pstore.service.d/override.conf

sudo mkdir -p $FILESYSTEM_ROOT/var/core

# Config sysctl
Expand Down
12 changes: 12 additions & 0 deletions files/image_config/system-pstore/override.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.

[Unit]
After=modprobe@efi_pstore.service
Wants=modprobe@efi_pstore.service

0 comments on commit 986f84f

Please sign in to comment.