ZFS: Difference between revisions
imported>Vater m Vater moved page NixOS on ZFS to ZFS |
imported>Bitonic Detect if `zfs` is not running in remote unlock -- happens when the pool is degraded at boot |
||
Line 449: | Line 449: | ||
# and kill the other prompt so boot can continue | # and kill the other prompt so boot can continue | ||
postCommands = '' | postCommands = '' | ||
cat <<EOF > /root/.profile | |||
if pgrep -x "zfs" > /dev/null | |||
then | |||
zfs load-key -a | |||
killall zfs | |||
else | |||
echo "zfs not running -- maybe the pool is taking some time to load for some unforseen reason." | |||
fi | |||
EOF | |||
''; | ''; | ||
}; | }; |