fstabinfo: fix mount and remount
The mount and remount options should always be processed. They were only being processed if -q was not on the command line. X-Gentoo-Bug: 498206 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=498206
This commit is contained in:
parent
cdc0dd061b
commit
de186401e5
@ -298,6 +298,17 @@ fstabinfo(int argc, char **argv)
|
||||
continue;
|
||||
}
|
||||
|
||||
/* mount or remount? */
|
||||
switch (output) {
|
||||
case OUTPUT_MOUNT:
|
||||
result += do_mount(ent, false);
|
||||
break;
|
||||
|
||||
case OUTPUT_REMOUNT:
|
||||
result += do_mount(ent, true);
|
||||
break;
|
||||
}
|
||||
|
||||
/* No point in outputting if quiet */
|
||||
if (rc_yesno(getenv("EINFO_QUIET")))
|
||||
continue;
|
||||
@ -307,14 +318,6 @@ fstabinfo(int argc, char **argv)
|
||||
printf("%s\n", ENT_BLOCKDEVICE(ent));
|
||||
break;
|
||||
|
||||
case OUTPUT_MOUNT:
|
||||
result += do_mount(ent, false);
|
||||
break;
|
||||
|
||||
case OUTPUT_REMOUNT:
|
||||
result += do_mount(ent, true);
|
||||
break;
|
||||
|
||||
case OUTPUT_MOUNTARGS:
|
||||
printf("-o %s -t %s %s %s\n",
|
||||
ENT_OPTS(ent),
|
||||
|
Loading…
Reference in New Issue
Block a user