Skip to content

cargo --list/version triggers /boot automount #6737

@cjmayo

Description

@cjmayo

Problem
With a separate /boot partition that is not mounted by default and systemd creating an automount unit for it, running cargo --list causes /boot to be mounted.
I wouldn't expect cargo to need to mount /boot.

Because Bash autocompletion file runs cargo --list:

__cargo_commands=$(cargo --list 2>/dev/null | awk 'NR>1 {print $1}')

Every time i create a new Bash session e.g. a new GNOME terminal or terminal tab /boot is automounted.

Steps

  1. /boot is not mounted
  2. cargo --list
  3. /boot is mounted (boot.automount: Got automount request for /boot in systemd journal)

Notes

Output of cargo version: cargo 1.32.0

Gentoo Linux:
dev-lang/rust-1.32.0
sys-apps/systemd-241-r1

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions