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:
William Hubbs 2014-01-18 13:50:05 -06:00
parent cdc0dd061b
commit de186401e5

View File

@ -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),