I have tested a modified systemd-pstore.service in UC20 (focal based) adding:
[Unit] After=modprobe@efi_pstore.service <email address hidden> modprobe@chromeos_pstore.service <email address hidden> modprobe@pstore_zone.service modprobe@pstore_blk.service Wants=modprobe@efi_pstore.service <email address hidden> modprobe@chromeos_pstore.service <email address hidden> modprobe@pstore_zone.service modprobe@pstore_blk.service
As a result I get failures in the services trying to load modules for pstore, for instance:
ubuntu@ubuntu:~$ sudo systemctl status <email address hidden> ● <email address hidden> - Load Kernel Module mtdpstore Loaded: loaded (/lib/systemd/system/modprobe@.service; static; vendor preset: enabled) Active: inactive (dead) since Thu 2022-08-04 15:59:31 UTC; 25s ago Docs: man:modprobe(8) Process: 400 ExecStart=/sbin/modprobe -abq mtdpstore (code=exited, status=1/FAILURE) Main PID: 400 (code=exited, status=1/FAILURE)
Aug 04 15:59:31 ubuntu systemd[1]: <email address hidden>: Succeeded. Aug 04 15:59:31 ubuntu systemd[1]: Finished Load Kernel Module mtdpstore.
Which is fine, but there is the potential of too many successive restart of these services, which would result in https://github.com/systemd/systemd/issues/23742. To prevent this, https://github.com/systemd/systemd/commit/9625350e5381a68c1179ae4581e7586c206663e1 should be included in the next systemd focal SRU.
I have tested a modified systemd- pstore. service in UC20 (focal based) adding:
[Unit] efi_pstore. service <email address hidden> modprobe@ chromeos_ pstore. service <email address hidden> modprobe@ pstore_ zone.service modprobe@ pstore_ blk.service efi_pstore. service <email address hidden> modprobe@ chromeos_ pstore. service <email address hidden> modprobe@ pstore_ zone.service modprobe@ pstore_ blk.service
After=modprobe@
Wants=modprobe@
As a result I get failures in the services trying to load modules for pstore, for instance:
ubuntu@ubuntu:~$ sudo systemctl status <email address hidden> system/ modprobe@ .service; static; vendor preset: enabled) /sbin/modprobe -abq mtdpstore (code=exited, status=1/FAILURE)
● <email address hidden> - Load Kernel Module mtdpstore
Loaded: loaded (/lib/systemd/
Active: inactive (dead) since Thu 2022-08-04 15:59:31 UTC; 25s ago
Docs: man:modprobe(8)
Process: 400 ExecStart=
Main PID: 400 (code=exited, status=1/FAILURE)
Aug 04 15:59:31 ubuntu systemd[1]: <email address hidden>: Succeeded.
Aug 04 15:59:31 ubuntu systemd[1]: Finished Load Kernel Module mtdpstore.
Which is fine, but there is the potential of too many successive restart of these services, which would result in https:/ /github. com/systemd/ systemd/ issues/ 23742. To prevent this, https:/ /github. com/systemd/ systemd/ commit/ 9625350e5381a68 c1179ae4581e758 6c206663e1 should be included in the next systemd focal SRU.