Skip to content

call to "zfs list" in "apply" script doesn't work when run from appliance-build #43

@prakashsurya

Description

@prakashsurya

In the apply script, we execute the following logic:

ROOT_FILESYSTEM=$(zfs list -Ho name /)

The problem is we run this script from appliance-build, where the / filesystem isn't a ZFS filesystem:

+ ./binary/var/lib/delpix-platform/ansible/apply
'/': not a ZFS filesystem

Specifically, at that point, / maps to the build system's root filesystem rather than the root filesystem of the appliance build generated.

Thus, the fact that the build currently works is entirely coincidental, rather than working as designed. We should fix this before this problem results in incorrect behavior, rather than the current benign error.

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