Fix problem with missing part. labels.

This commit is contained in:
Rudolf Vesely authored and mergify[bot] committed 2023-09-11 19:42:40 +00:00
1 parent b54e2dc988
commit fc6f863fe1
5 files changed
+6

No files matched your search

+1
View File
@@ -44,6 +44,7 @@ let
${pkgs.systemdMinimal}/lib/systemd/systemd-udevd --daemon
udevadm trigger --action=add
udevadm settle
partprobe
# populate nix db, so nixos-install doesn't complain
export NIX_STATE_DIR=$TMPDIR/state
+1
View File
@@ -107,6 +107,7 @@ in
# ensure /dev/disk/by-path/..-partN exists before continuing
udevadm trigger --subsystem-match=block
udevadm settle
partprobe
${lib.optionalString (partition.content != null) partition.content._create}
'') sortedPartitions)}
+1
View File
@@ -44,6 +44,7 @@
"''${disk_devices[@]}"
udevadm trigger --subsystem-match=block
udevadm settle
partprobe
# for some reason mdadm devices spawn with an existing partition table, so we need to wipe it
sgdisk --zap-all /dev/md/${config.name}
${lib.optionalString (config.content != null) config.content._create}
+2
View File
@@ -93,6 +93,7 @@
# ensure /dev/disk/by-path/..-partN exists before continuing
udevadm trigger --subsystem-match=block
udevadm settle
partprobe
${lib.optionalString partition.bootable ''
parted -s ${config.device} -- set ${toString partition._index} boot on
''}
@@ -102,6 +103,7 @@
# ensure further operations can detect new partitions
udevadm trigger --subsystem-match=block
udevadm settle
partprobe
${lib.optionalString (partition.content != null) partition.content._create}
'') config.partitions)}
'';
+1
View File
@@ -52,6 +52,7 @@
-V ${config.size}
udevadm trigger --subsystem-match=block
udevadm settle
partprobe
${lib.optionalString (config.content != null) config.content._create}
'';
};