New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"lvm2-activation-generator: lvmconfig failed" displayed during boot etc. #103188
Comments
cc @ajs124 |
I'll try to find some time to look into this, as I might be responsible for this. |
I got this error when running |
I strongly suspect that your freeze was not caused by this warning message. |
Yeah, so this was most likely caused by 1a1e723, which combined with the rest of #93024 leads to systemd being aware of lvm2 things. lvm2 was already in As for why this happens, it looks like it's this line of code, which fails when
The easiest solution to this is probably to install the default config file to So the remaining option is to simply set some default settings, which also kind of sucks, because then we need to track upstream on those, but it's probably our best option. If you have any other/better ideas, I'd gladly go for those, but if nobody does, I'll go with specifying some defaults, in a few days. |
+1 to importing upstream defaults as it seems the safest option if it tracks upstream properly, even though it will certainly increase the maintenance cost. |
I also would just create a |
Detecting if lvm is used sadly isn't trivial. For filesystems (in |
Maybe it would be possible to fix/patch(&upstream) the generator? |
lvm seems to have its default hard coded so we don't need to copy over the whole file. To fix the loading error I just added an almost empty configuration to make the warning go away: #103876 |
Describe the bug
While the configuration contains no settings related to LVM,
lvm2-activation-generator
is launched during boot,nixos-rebuild switch
and so on, and the "lvm2-activation-generator: lvmconfig failed" message is logged in the journal.Expected behavior
At least,
lvm2-activation-generator
does not produce error messages. It might be better if the service is not activated if the system does not use LVM at all.Additional context
#917164 - "lvm2-activation-generator: lvmconfig failed" message at boot time - Debian Bug report logs may or may not be relevant.
Metadata
"x86_64-linux"
Linux 5.4.75-hardened, NixOS, 20.09.1648.bc7c121a569 (Nightingale)
yes
yes
nix-env (Nix) 2.3.7
"nixos-20.09.1648.bc7c121a569"
""
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: