bcachefs-tools/arch/etc/initcpio/hooks/bcachefs
2018-07-28 22:54:36 -04:00

15 lines
245 B
Bash

#!/usr/bin/ash
run_hook() {
# check if $root needs unlocking
if bcachefs unlock -c $root >/dev/null 2>&1; then
echo "Unlocking $root:"
while true; do
bcachefs unlock $root && break
done
fi
}
# vim: set ft=sh ts=4 sw=4 et: