mirror of
https://github.com/nix-community/disko.git
synced 2024-09-17 09:37:17 +03:00
zfs_volume: fix /dev/zvol/ symlink race
This commit is contained in:
parent
021f2a6fbe
commit
a14a3fb0a8
@ -50,6 +50,7 @@
|
||||
zfs create ${config._parent.name}/${config.name} \
|
||||
${lib.concatStringsSep " " (lib.mapAttrsToList (n: v: "-o ${n}=${v}") config.options)} \
|
||||
-V ${config.size}
|
||||
zvol_wait
|
||||
partprobe /dev/zvol/${config._parent.name}/${config.name}
|
||||
udevadm trigger --subsystem-match=block
|
||||
udevadm settle
|
||||
|
Loading…
Reference in New Issue
Block a user