mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 14:33:28 +01:00
Fix problem with missing part. labels.
This commit is contained in:
1 parent
b54e2dc988
commit
fc6f863fe1
5 files changed
+6
No files matched your search
@@ -44,6 +44,7 @@ let
|
|||||||
${pkgs.systemdMinimal}/lib/systemd/systemd-udevd --daemon
|
${pkgs.systemdMinimal}/lib/systemd/systemd-udevd --daemon
|
||||||
udevadm trigger --action=add
|
udevadm trigger --action=add
|
||||||
udevadm settle
|
udevadm settle
|
||||||
|
partprobe
|
||||||
|
|
||||||
# populate nix db, so nixos-install doesn't complain
|
# populate nix db, so nixos-install doesn't complain
|
||||||
export NIX_STATE_DIR=$TMPDIR/state
|
export NIX_STATE_DIR=$TMPDIR/state
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ in
|
|||||||
# ensure /dev/disk/by-path/..-partN exists before continuing
|
# ensure /dev/disk/by-path/..-partN exists before continuing
|
||||||
udevadm trigger --subsystem-match=block
|
udevadm trigger --subsystem-match=block
|
||||||
udevadm settle
|
udevadm settle
|
||||||
|
partprobe
|
||||||
${lib.optionalString (partition.content != null) partition.content._create}
|
${lib.optionalString (partition.content != null) partition.content._create}
|
||||||
'') sortedPartitions)}
|
'') sortedPartitions)}
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
"''${disk_devices[@]}"
|
"''${disk_devices[@]}"
|
||||||
udevadm trigger --subsystem-match=block
|
udevadm trigger --subsystem-match=block
|
||||||
udevadm settle
|
udevadm settle
|
||||||
|
partprobe
|
||||||
# for some reason mdadm devices spawn with an existing partition table, so we need to wipe it
|
# for some reason mdadm devices spawn with an existing partition table, so we need to wipe it
|
||||||
sgdisk --zap-all /dev/md/${config.name}
|
sgdisk --zap-all /dev/md/${config.name}
|
||||||
${lib.optionalString (config.content != null) config.content._create}
|
${lib.optionalString (config.content != null) config.content._create}
|
||||||
|
|||||||
@@ -93,6 +93,7 @@
|
|||||||
# ensure /dev/disk/by-path/..-partN exists before continuing
|
# ensure /dev/disk/by-path/..-partN exists before continuing
|
||||||
udevadm trigger --subsystem-match=block
|
udevadm trigger --subsystem-match=block
|
||||||
udevadm settle
|
udevadm settle
|
||||||
|
partprobe
|
||||||
${lib.optionalString partition.bootable ''
|
${lib.optionalString partition.bootable ''
|
||||||
parted -s ${config.device} -- set ${toString partition._index} boot on
|
parted -s ${config.device} -- set ${toString partition._index} boot on
|
||||||
''}
|
''}
|
||||||
@@ -102,6 +103,7 @@
|
|||||||
# ensure further operations can detect new partitions
|
# ensure further operations can detect new partitions
|
||||||
udevadm trigger --subsystem-match=block
|
udevadm trigger --subsystem-match=block
|
||||||
udevadm settle
|
udevadm settle
|
||||||
|
partprobe
|
||||||
${lib.optionalString (partition.content != null) partition.content._create}
|
${lib.optionalString (partition.content != null) partition.content._create}
|
||||||
'') config.partitions)}
|
'') config.partitions)}
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
-V ${config.size}
|
-V ${config.size}
|
||||||
udevadm trigger --subsystem-match=block
|
udevadm trigger --subsystem-match=block
|
||||||
udevadm settle
|
udevadm settle
|
||||||
|
partprobe
|
||||||
${lib.optionalString (config.content != null) config.content._create}
|
${lib.optionalString (config.content != null) config.content._create}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user