[Merge] ~mustafakemalgilor/ubuntu/+source/systemd:systemd-fix-lp1978079-efi-pstore-not-cleared-focal into ~ubuntu-core-dev/ubuntu/+source/systemd:ubuntu-focal

Mustafa Kemal Gilor mp+425083 at code.launchpad.net
Mon Jun 20 13:02:27 UTC 2022


Mustafa Kemal Gilor has proposed merging ~mustafakemalgilor/ubuntu/+source/systemd:systemd-fix-lp1978079-efi-pstore-not-cleared-focal into ~ubuntu-core-dev/ubuntu/+source/systemd:ubuntu-focal.

Requested reviews:
  Canonical Server (canonical-server)
  Canonical Server Core Reviewers (canonical-server-core-reviewers)
Related bugs:
  Bug #1978079 in systemd (Ubuntu): "EFI pstore not cleared on boot"
  https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1978079

For more details, see:
https://code.launchpad.net/~mustafakemalgilor/ubuntu/+source/systemd/+git/systemd/+merge/425083

Backported a fix from upstream to focal for the LP issue #1978079:

      * d/p/lp1978079-efi-pstore-not-cleared-on-boot.patch: pstore: Run after
        modules are loaded. Thanks to Alexander Graf <graf at amazon.com>.
        LP: #1978079)

Please tag & sponsor.

(See backport merge request for jammy: 
https://code.launchpad.net/~mustafakemalgilor/ubuntu/+source/systemd/+git/systemd/+merge/424958)


Steps to reproduce/test:

# In order to be able to reproduce this issue, the system must have EFI-backed pstore.
# To check which kind of backend that pstore, use `cat /sys/module/pstore/parameters/backend`
# If it says `efi`, the steps below are applicable. Otherwise, find an environment that has
# EFI backed pstore.

# Enable the pstore service. This service is supposed to move the data in /sys/fs/pstore
# to the `/var/lib/systemd/pstore` path on boot.
systemctl enable systemd-pstore.service # (or can be vendor enabled)

# Crash the kernel
echo 1 > /proc/sys/kernel/sysrq
echo 1 > /proc/sys/kernel/panic # this is usually set to zero, causing kernel to loop over the panic and freeze
echo "c" > /proc/sysrq-trigger

# The system will reboot itself. Check `/sys/fs/pstore` path first:
ls /sys/fs/pstore # The path should not be empty, which means the systemd-pstore has failed to do its' job
ls /var/lib/systemd/pstore # The path should be empty.

# Apply the fix
sudo add-apt-repository ppa:mustafakemalgilor/lp-1978079-1
sudo apt upgrade

# Crash the kernel
echo 1 > /proc/sys/kernel/sysrq
echo 1 > /proc/sys/kernel/panic # this is usually set to zero, causing kernel to loop over the panic and freeze
echo "c" > /proc/sysrq-trigger

# The system will reboot itself. Check `/sys/fs/pstore` path first:
ls /sys/fs/pstore # The path should be empty
ls /var/lib/systemd/pstore # The path should not be empty

Package Test Results:

autopkgtest [13:08:54]: test systemd-fsckd: [-----------------------
SKIP: root file system is being checked by initramfs already
autopkgtest [13:08:55]: test systemd-fsckd: -----------------------]
systemd-fsckd        SKIP exit status 77 and marked as skippable
autopkgtest [13:08:56]: test systemd-fsckd:  - - - - - - - - - - results - - - - - - - - - -
autopkgtest [13:08:56]: @@@@@@@@@@@@@@@@@@@@ summary
timedated            PASS
hostnamed            PASS
localed-locale       PASS
localed-x11-keymap   PASS
logind               PASS
unit-config          PASS
storage              PASS
networkd-test.py     PASS
build-login          PASS
boot-and-services    PASS
udev                 PASS
root-unittests       PASS
upstream             PASS
boot-smoke           PASS
systemd-fsckd        SKIP exit status 77 and marked as skippable
-- 
Your team Ubuntu Core Development Team is subscribed to branch ~ubuntu-core-dev/ubuntu/+source/systemd:ubuntu-focal.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 3894 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-reviews/attachments/20220620/2dc5b5e3/attachment.diff>


More information about the Ubuntu-reviews mailing list