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:
CC: (none) => aaaaadrien
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.
Assignee: bugsquad => mageia
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.
Okay for the -F option. It's a bug into manpages-fr so.
Keywords: (none) => UPSTREAM
@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
Fixed in man-pages-fr-3.70-4.mga6.src.rpm
Status: NEW => RESOLVEDCC: (none) => thierry.vignaudResolution: (none) => FIXEDSource RPM: systemd => man-pages-fr