mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
zfs_volume: fix /dev/zvol/ symlink race
This commit is contained in:
1 parent
021f2a6fbe
commit
a14a3fb0a8
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user