Skip to content

Commit

Permalink
bcachefs: fix mounting by UUID in systemd initrd
Browse files Browse the repository at this point in the history
systemd initrd can not directly mount by UUID so we need to
use `/dev/disk/by-uuid/UUID` instead.

This commit also re-enables systemd initrd as it is now working
  • Loading branch information
JohnRTitor committed Jun 2, 2024
1 parent 273d2fe commit 70df9aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion default-host/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
boot.extraModulePackages = [];

fileSystems."/" = {
device = "UUID=7594aea3-de1f-466c-8420-3c7e4997fb34";
device = "/dev/disk/by-uuid/7594aea3-de1f-466c-8420-3c7e4997fb34";
fsType = "bcachefs";
};

Expand Down
2 changes: 1 addition & 1 deletion system/boot/boot-options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# bootloader timeout set, also press t repeatedly in the bootmenu to set there
boot.loader.timeout = 15;
# use systemd initrd instead of udev
# boot.initrd.systemd.enable = true; # does not work with bcachefs
boot.initrd.systemd.enable = true;

# boot.consoleLogLevel = 0; # configure silent boot
boot.kernelParams = [
Expand Down

0 comments on commit 70df9aa

Please sign in to comment.