mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
hybrid-mbr: cleanup test, wait for udev after paritioning
This commit is contained in:
parent
810eccbad2
commit
c13d481b78
2 changed files with 4 additions and 2 deletions
|
@ -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 a new issue