Skip to content

unusable if current BE is not mounted on / #1

@Subito

Description

@Subito

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:

sync-be/sync-be

Lines 90 to 95 in 8d6e6e0

# 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions