Open tobiasBora opened 5 months ago
Note that I don’t know if it is possible to cover all use-cases… but at least maybe a way to enable/disable this phase, and/or to customize the waiting time could be nice?
Perhaps you're affected by the swapon
discard policy.
If:
then swapon
will trim/discard the swap partition. I don't know of a way to turn that off; My swap partition is in a LUKS container, and I also have a boot delay, as you described.
See man swapon
Describe the bug
I have a ZFS encrypted dataset with an encrypted swap partition (encrypted via luks following this tutorial). When my system boots, after typing the passphrase, I see a message:
where
fe31…
is the uuid of the decrypted swap. After 40 seconds (not sure why, but it runs now two times for the same drive) the message stops and the system boots, but this is really annoying to wait so long.Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect not to wait so long.
Additional context
Might be related to https://github.com/NixOS/nixpkgs/issues/50346
Notify maintainers
@Madouura @alyssais you have modified https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/stage-1-init.sh recently
@abbradar you typed stuff related to waiting devices
Metadata
Running 23.11, 79baff8812a0d68e24a836df0a364c678089e2c7
Add a :+1: reaction to issues you find important.