ZFS: Difference between revisions
imported>SebTM Optional supportedFilesystems with nixos on rootfs |
imported>Dotlambda m remove trailing whitespace |
||
Line 434: | Line 434: | ||
# and kill the other prompt so boot can continue | # and kill the other prompt so boot can continue | ||
postCommands = '' | postCommands = '' | ||
cat <<EOF > /root/.profile | cat <<EOF > /root/.profile | ||
if pgrep -x "zfs" > /dev/null | if pgrep -x "zfs" > /dev/null | ||
then | then | ||
zfs load-key -a | zfs load-key -a | ||
killall zfs | killall zfs | ||
else | else | ||
echo "zfs not running -- maybe the pool is taking some time to load for some unforseen reason." | echo "zfs not running -- maybe the pool is taking some time to load for some unforseen reason." | ||
fi | fi | ||
EOF | EOF | ||
''; | ''; | ||
}; | }; |