Skip to content

The release tarball and install.sh do not carry the mount helper #533

Closed

Description

@scttfrdmn

#136 ships mount.objectfs in the .deb and .rpm only. Two other install paths do not get it:

  • The release tarball. .goreleaser.yml's archives: block packs the packages build. The
    mount-helper build is deliberately not in it, because an archive member named mount.objectfs is
    inert — the registration is the file being at /sbin/mount.objectfs, which only an installer can
    arrange. But leaving it out entirely means someone who installs from the tarball has no way to get
    an fstab mount short of building the helper themselves.
  • scripts/install.sh. It installs the objectfs binary and nothing else, so it has the same gap
    even though it is the path that could create the symlink, since it already runs as root.

What is needed is the tarball carrying the helper plus install.sh doing what
scripts/postinstall.sh already does with it: install to /usr/bin/mount.objectfs and link it at
/sbin/mount.objectfs, with the same conservatism the scriptlet has — leave a foreign symlink or a
real file alone with a warning naming the ln -s, never create a dangling link, and be idempotent.
Which suggests the link logic should be one shell function the two scripts share rather than a second
copy of it, since a second copy is how the two drift.

Also unresolved: an uninstall path. scripts/preremove.sh unlinks on package removal; install.sh
has no counterpart, so a tarball install would leave the symlink behind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: buildeffort: smallpriority: mediumtype: enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions