mirror of
https://github.com/nix-community/disko.git
synced 2024-09-10 22:15:54 +03:00
hybrid-mbr: cleanup test, wait for udev after paritioning
This commit is contained in:
parent
810eccbad2
commit
c13d481b78
@ -1,9 +1,9 @@
|
||||
{disks ? ["/dev/sda"], ...}: {
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = builtins.elemAt disks 0;
|
||||
device = "/dev/sdb";
|
||||
content = {
|
||||
type = "gpt";
|
||||
efiGptPartitionFirst = false;
|
||||
|
@ -99,6 +99,8 @@ in
|
||||
default = ''
|
||||
${lib.optionalString (hp.config.mbrPartitionType != null) ''
|
||||
sfdisk --label-nested dos --part-type ${parent.device} ${(toString partition.config._index)} ${hp.config.mbrPartitionType}
|
||||
udevadm trigger --subsystem-match=block
|
||||
udevadm settle
|
||||
''}
|
||||
${lib.optionalString hp.config.mbrBootableFlag ''
|
||||
sfdisk --label-nested dos --activate ${parent.device} ${(toString partition.config._index)}
|
||||
|
Loading…
Reference in New Issue
Block a user