Skip to content

nixos/filesystems: condition mount-pstore.service on unmounted /sys/fs/pstore#123902

Merged
symphorien merged 1 commit intomasterfrom
unknown repository
May 23, 2021
Merged

nixos/filesystems: condition mount-pstore.service on unmounted /sys/fs/pstore#123902
symphorien merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented May 21, 2021

Motivation for this change

For unknown reasons, switching to a system that first introduces this service has it fail with /sys/fs/pstore already having been mounted (see discussion in #85073).

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Added a release notes entry if the change is major or breaking
  • Fits CONTRIBUTING.md.

…s/pstore

For unknown reasons, switching to a system that first introduces this
service has it fail with /sys/fs/pstore already having been mounted.
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels May 21, 2021
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels May 21, 2021
@zhaofengli
Copy link
Member

Also tagging #123888.

@teto
Copy link
Member

teto commented May 22, 2021

had the issue on rebuild too

@ckiee
Copy link
Member

ckiee commented May 22, 2021

Just ran into this too, logs: https://i.ronthecookie.me/26958.txt.

I'll test this PR soon.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/532

@ghost
Copy link
Author

ghost commented May 23, 2021

Also needs a backport to 21.05 before the release.

@symphorien symphorien merged commit d755573 into NixOS:master May 23, 2021
@symphorien symphorien added the 9.needs: port to stable A PR needs a backport to the stable release. label May 23, 2021
@symphorien
Copy link
Member

can you open the backport PR?

@ghost
Copy link
Author

ghost commented May 23, 2021

Yes, give me three minutes.

@ajs124
Copy link
Member

ajs124 commented May 25, 2021

I'm getting this, after upgrading to 21.05:

mount[729]: mount: /sys/fs/pstore: mount point does not exist.

Edit: This might be because of some custom kernel config?

@ghost
Copy link
Author

ghost commented May 25, 2021

The modprobe@pstore.service requirement should be guarding against a missing pstore module causing that particular failure. Is there any other info you can provide? I'll look into if there are any circumstances under which the pstore module will NOT create that path.

@ajs124
Copy link
Member

ajs124 commented May 25, 2021

That kernel does in fact not have the pstore module built.

If the executable path is prefixed with "-", an exit code of the command normally considered a failure (i.e. non-zero exit status or abnormal exit due to signal) is recorded, but has no further effect and is considered equivalent to success.

ExecStart=-/nix/store/3zkp71zhmdx4akmghd6nby1ibdy5sns5-kmod-27/sbin/modprobe -abq %I

Sooooo… I guess that doesn't work?

@ghost
Copy link
Author

ghost commented May 25, 2021

Oh. So much for that. Have to admit I never noticed that little dash. I'll create another PR - 3 is a good number. :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 9.needs: port to stable A PR needs a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants