We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81a8ce8 commit 5688c39Copy full SHA for 5688c39
1 file changed
nixos/modules/tasks/filesystems/zfs.nix
@@ -228,8 +228,19 @@ in
228
esac
229
done
230
''] ++ (map (pool: ''
231
- echo "importing root ZFS pool \"${pool}\"..."
232
- zpool import -d ${cfgZfs.devNodes} -N $ZFS_FORCE "${pool}"
+ echo -n "importing root ZFS pool \"${pool}\"..."
+ trial=0
233
+ until msg="$(zpool import -d ${cfgZfs.devNodes} -N $ZFS_FORCE '${pool}' 2>&1)"; do
234
+ sleep 0.25
235
+ echo -n .
236
+ trial=$(($trial + 1))
237
+ if [[ $trial -eq 60 ]]; then
238
+ echo
239
+ echo "$msg"
240
+ break
241
+ fi
242
+ done
243
244
'') rootPools));
245
};
246
0 commit comments