You are not logged in.
Pages: 1
Topic closed
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
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
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
Offline
Pages: 1
Topic closed