mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-10 00:00:04 +03:00
16 lines
315 B
Bash
16 lines
315 B
Bash
#!/usr/bin/ash
|
|
|
|
run_hook() {
|
|
local rootdev
|
|
if rootdev="$(resolve_device "$root")" && bcachefs unlock -c "$rootdev" >/dev/null 2>&1
|
|
then
|
|
echo "Unlocking $rootdev:"
|
|
while true
|
|
do
|
|
bcachefs unlock "$rootdev" && break
|
|
done
|
|
fi
|
|
}
|
|
|
|
# vim: set ft=sh ts=4 sw=4 et:
|