Bug 12259 - shutdown command : unknown option : -F
Summary: shutdown command : unknown option : -F
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Colin Guthrie
QA Contact:
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2014-01-09 20:19 CET by Adrien D
Modified: 2017-01-16 21:36 CET (History)
3 users (show)

See Also:
Source RPM: man-pages-fr
CVE:
Status comment:


Attachments

Description Adrien D 2014-01-09 20:19:56 CET
Hi,

Description of problem:

I would like to check my root filesystem at the next reboot.
To do this, I used to use the shutdown command with the -F option.
But, the command :
shutdown -F -r now 
say me : Unknown -F option.
In the shutdown man, this option is not listed.

It is a regression since Mageia use systemd ?

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Connect you with root login
2. Execute shutdown -F -r now
3.


Reproducible: 

Steps to Reproduce:
Adrien D 2014-01-09 20:20:06 CET

CC: (none) => aaaaadrien

Comment 1 Adrien D 2014-01-09 20:21:47 CET
man shutdown say :

OPTIONS
       -a     Utiliser /etc/shutdown.allow.

       -t sec Indiquer à init(8) d'attendre sec secondes entre le moment de l'émission du signal  d'averâ
              tissement  et  celui du signal de fin (kill) aux processus, avant d'effectuer un changement
              de niveau d'exécution.

       -k     Ne pas réellement s'arrêter ; uniquement envoyer les messages d'avertissement  à  tous  les
              processus.

       -r     Redémarrer la machine après l'arrêt du système.

       -h     Arrêter la machine après l'arrêt du système.

       -n     [DÃPRÃCIÃ] Ne pas appeler init(8) mais le faire soi-même. L'utilisation de cette option est
              découragée, et ses résultats ne sont pas toujours ceux espérés.

       -f     Ne pas effectuer de fsck en cas de redémarrage.

       -F     Forcer l'utilisation de fsck en cas de redémarrage.

       -c     Annuler un shutdown en cours. Avec cette option, il n'est évidemment pas possible de donner
              d'argument  heure, mais vous pouvez entrer un message d'explication sur la ligne de commanâ
              des qui sera envoyé à tous les utilisateurs.
Thierry Vignaud 2014-01-09 21:10:42 CET

Assignee: bugsquad => mageia

Comment 2 Colin Guthrie 2014-01-09 21:33:51 CET
On  my system the man of shutdown does not say this.

The -f or -F options are not set.

I believe the -F option used to write a /forcefsck file, but these days this is highly discouraged as the last thing you want to do to a filesystem you suspect of being dodgy is write files to it! So upstream have been quite reluctant to add a -F option when this way of working is considered bad practice.

It's generally better to pass forcefsck on the kernel command line instead. If this is not possible and you're happy with the general state of your filesystem and it's mounted rw, then just "touch /forcefsck" and then "reboot".

If the man page is a quote from your up-to-date cauldron machine, then this is indeed a bug as it's very much out of date and should be fixed.

Sadly it seems the shutdown man page comes from the man-pages-fr project rather than systemd itself. These manual pages need to be consolidated and shipped with the upstream project, NOT separately where they go out of sync :(

I'll raise this issue at FOSDEM at the systemd hackfest.
Comment 3 Adrien D 2014-01-09 21:46:40 CET
Okay for the -F option.

It's a bug into manpages-fr so.
Manuel Hiebel 2014-01-20 23:56:18 CET

Keywords: (none) => UPSTREAM

Comment 4 Guillaume 2014-02-28 21:06:23 CET
@Adrien D : manpages-fr translations are very old (the project seems to be given up since 2009). It's not recommended to use these translations anymore.
Have a look at man urpmi and check the last translations' year in order to have an idea :)
There's no -F option in shutdown.

CC: (none) => guillaume.ber17

Comment 5 Thierry Vignaud 2017-01-16 21:36:33 CET
Fixed in man-pages-fr-3.70-4.mga6.src.rpm

Status: NEW => RESOLVED
CC: (none) => thierry.vignaud
Resolution: (none) => FIXED
Source RPM: systemd => man-pages-fr


Note You need to log in before you can comment on or make changes to this bug.