You are not logged in.

#1 2014-11-06 11:10:40

memphis
Member
Registered: 2014-10-14
Posts: 6

fsck on boot : force no interaction

Hello guys,

I want to avoid the user interaction when fsck found error after an unclean system shutdown. I think that I have two options : -y option to the fsck cmd line or set FSCKFIX=yes

Currently, the mkinitcpio.conf contains the following hooks :

HOOKS="base udev plymouth autodetect modconf block filesystems keyboard fsck"

The question is : How do I add options to fsck command with the previous configuration ?

Thx in advance.

Offline

#2 2014-11-06 21:51:02

float
Member
Registered: 2012-10-05
Posts: 15

Re: fsck on boot : force no interaction

Chances are high that user attention is useful when fsck finds errors.
If you really know what you are doing, you could edit fsck_device() in /usr/lib/initcpio/init_functions adding -y to

fsck -Ta -C"$FSCK_FD" "$1" -- ${forcefsck+-f}

But this file will likely be overwritten when mkinitcpio is updated by pacman.
This is rather a hack than a solution to your problem.

Offline

#3 2016-12-11 07:27:14

Bachsau
Member
Registered: 2016-12-09
Posts: 10

Re: fsck on boot : force no interaction

On debian-based systems there is an option called FSCKFIX in /etc/default/rcS. I think there is something equivalent to this in arch linux. Any ideas?

Offline

#4 2016-12-11 07:38:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 26,247
Website

Re: fsck on boot : force no interaction


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB