Skip to content

install to-filesystem doesn't work when target /var is a separate mount #997

Open

Description

@stephan-tolksdorf

install to-filesystem fails with if the target filesystem includes an empty /var directory.

ERROR Installing to filesystem: Verifying empty rootfs: Non-empty root filesystem; found "var"

With --replace=wipe the installation fails when the empty /var is an active mount point with

ERROR Installing to filesystem: Device or resource busy (os error 16)

Activity

  1. cgwalters commented on Jan 2, 2025

    @cgwalters
    Member

    What's your higher level goal? Do you want the /var directory to be the same /var in the installed target (on the same physical filesystem) or are you trying to make /var be a separate mount point/partition?

    With --replace=wipe the installation fails when the empty /var is an active mount point with

    Based on this it sounds like the latter, you want the /var to be a mount point in the target?

    We should definitely change --wipe to not attempt to cross mount points for safety though, as I think that's never desired.

  2. cgwalters commented on Jan 2, 2025

    @cgwalters
    Member

    We should definitely change --wipe to not attempt to cross mount points for safety though, as I think that's never desired.

    ➡ #1001

  3. stephan-tolksdorf commented on Jan 2, 2025

    @stephan-tolksdorf
    Author

    Thanks!

    /var is a mount point in the target.

  4. cgwalters commented on Jan 2, 2025

    @cgwalters
    Member

    OK, we should definitely support that...there's a few related issues but I think not a dedicated one. Will do some triage and if I can't find/repurpose one will make a new one.

  5. added
    enhancement
    area/install
    triaged
    on Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/installenhancementtriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions