Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559528 - sys-apps/openrc-0.17: mountinfo shows options in help that it doesn't have
Summary: sys-apps/openrc-0.17: mountinfo shows options in help that it doesn't have
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-03 14:34 UTC by Patrick Lauer
Modified: 2015-10-05 15:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2015-09-03 14:34:55 UTC
The -e / -E options are in the help output, but apparently not recognized

# /lib64/rc/bin/mountinfo -E /usr/portage           
/lib64/rc/bin/mountinfo: invalid option -- 'E'
Usage: mountinfo [options] [mount1] [mount2] ...

Options: [f:F:n:N:o:O:p:P:istChqVv]
  -f, --fstype-regex <arg>          fstype regex to find
  -F, --skip-fstype-regex <arg>     fstype regex to skip
  -n, --node-regex <arg>            node regex to find
  -N, --skip-node-regex <arg>       node regex to skip
  -o, --options-regex <arg>         options regex to find
  -O, --skip-options-regex <arg>    options regex to skip
  -p, --point-regex <arg>           point regex to find
  -P, --skip-point-regex <arg>      point regex to skip
  -i, --options                     print options
  -s, --fstype                      print fstype
  -t, --node                        print node
  -e, --netdev                      is it a network device
  -E, --nonetdev                    is it not a network device
  -h, --help                        Display this help output
  -C, --nocolor                     Disable color output
  -V, --version                     Display software version
  -v, --verbose                     Run verbosely
  -q, --quiet                       Run quietly (repeat to suppress errors)
Comment 1 Patrick Lauer gentoo-dev 2015-09-03 14:52:02 UTC
# /lib64/rc/bin/mountinfo --nonetdev  /; echo $?
1
# /lib64/rc/bin/mountinfo --netdev  /; echo $?
1

I'm not sure how that is useful :)
Comment 2 William Hubbs gentoo-dev 2015-10-05 15:35:59 UTC
(In reply to Patrick Lauer from comment #0)
> The -e / -E options are in the help output, but apparently not recognized
> 
> # /lib64/rc/bin/mountinfo -E /usr/portage           
> /lib64/rc/bin/mountinfo: invalid option -- 'E'
> Usage: mountinfo [options] [mount1] [mount2] ...
> 
> Options: [f:F:n:N:o:O:p:P:istChqVv]
>   -f, --fstype-regex <arg>          fstype regex to find
>   -F, --skip-fstype-regex <arg>     fstype regex to skip
>   -n, --node-regex <arg>            node regex to find
>   -N, --skip-node-regex <arg>       node regex to skip
>   -o, --options-regex <arg>         options regex to find
>   -O, --skip-options-regex <arg>    options regex to skip
>   -p, --point-regex <arg>           point regex to find
>   -P, --skip-point-regex <arg>      point regex to skip
>   -i, --options                     print options
>   -s, --fstype                      print fstype
>   -t, --node                        print node
>   -e, --netdev                      is it a network device
>   -E, --nonetdev                    is it not a network device
>   -h, --help                        Display this help output
>   -C, --nocolor                     Disable color output
>   -V, --version                     Display software version
>   -v, --verbose                     Run verbosely
>   -q, --quiet                       Run quietly (repeat to suppress errors)

This was fixed sometime back in commit f69833a1.

(In reply to Patrick Lauer from comment #1)
> # /lib64/rc/bin/mountinfo --nonetdev  /; echo $?
> 1
> # /lib64/rc/bin/mountinfo --netdev  /; echo $?
> 1
> 
> I'm not sure how that is useful :)

This separate issue was fixed in commit 5f4f242.
In the future, please refrain from stacking multiple un-related issues on a single bug.
Comment 3 William Hubbs gentoo-dev 2015-10-05 15:37:18 UTC
Both of these fixes will be in openrc-5.18