mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-11 00:00:03 +03:00
15 lines
245 B
Plaintext
15 lines
245 B
Plaintext
|
#!/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:
|