A great feature would be to have sync-be work even when the current BE is mounted somewhere else then /. This is the case for example if the BE gets mounted from a LiveCD for recovery purposes etc or just after a fresh install.
Maybe it would be enough to have an option that sets ROOTFS to something else:
|
# use the dataset that is being booted from |
|
ROOTFS=`mount -p | awk '$2 == "/" && $3 == "zfs" { print $1 }'` |
|
if [ -z "$ROOTFS" ]; then |
|
echo "error: zfs is not on root" |
|
exit 1 |
|
fi |
If this is something you would consider useful, I'd be glad to prepare a PR.
Cheers,
Filias
A great feature would be to have
sync-bework even when the current BE is mounted somewhere else then/. This is the case for example if the BE gets mounted from a LiveCD for recovery purposes etc or just after a fresh install.Maybe it would be enough to have an option that sets
ROOTFSto something else:sync-be/sync-be
Lines 90 to 95 in 8d6e6e0
If this is something you would consider useful, I'd be glad to prepare a PR.
Cheers,
Filias