From e3530149c5939f16ffbc35588d62b84506079c24 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 22 May 2022 20:17:55 -0700 Subject: refactor(wpcarro/ava): Prefer disk/by-label to disk/by-uuid I broke LVM (Logical Volume Manager - maybe?) when I did the following: ```shell $ HOSTNAME=ava sudo rebuild-system $ sudo reboot now ``` I had to rollback to the initial NixOS version and try again. Change-Id: If90e5e23767392202425181be986f81deb5ddff7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5742 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/nixos/ava/hardware.nix | 4 ++-- users/wpcarro/nixos/marcus/hardware.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'users') diff --git a/users/wpcarro/nixos/ava/hardware.nix b/users/wpcarro/nixos/ava/hardware.nix index 9892bdc581..4bfdca1cc5 100644 --- a/users/wpcarro/nixos/ava/hardware.nix +++ b/users/wpcarro/nixos/ava/hardware.nix @@ -13,13 +13,13 @@ fileSystems."/" = { - device = "/dev/disk/by-uuid/60d92789-c44e-4620-885d-1d81d0759f1d"; + device = "/dev/disk/by-label/NIXROOT"; fsType = "ext4"; }; fileSystems."/boot" = { - device = "/dev/disk/by-uuid/C62C-9B32"; + device = "/dev/disk/by-label/NIXBOOT"; fsType = "vfat"; }; diff --git a/users/wpcarro/nixos/marcus/hardware.nix b/users/wpcarro/nixos/marcus/hardware.nix index cd80685abe..329926269a 100644 --- a/users/wpcarro/nixos/marcus/hardware.nix +++ b/users/wpcarro/nixos/marcus/hardware.nix @@ -11,12 +11,12 @@ boot.extraModulePackages = [ ]; fileSystems."/" = { - device = "/dev/disk/by-uuid/b8b911ee-e9b9-40ea-89d6-551f11350e7b"; + device = "/dev/disk/by-label/NIXROOT"; fsType = "ext4"; }; fileSystems."/boot" = { - device = "/dev/disk/by-uuid/A7EA-369C"; + device = "/dev/disk/by-label/NIXBOOT"; fsType = "vfat"; }; -- cgit 1.4.1