Bug#792557: initramfs-tools functions doesn't honour "fsckfix" kernel command line option
Package: initramfs-tools
Version: 0.120
Passing "fsckfix" kernel command line option currently does not force
(as it should) fsck run at initramfs time to fix errors (using -y
option).
This is caused by a (wrong) equality check against the string "yes" on
the fsckfix script variable, instead of "y" (which is what the init
script set it to if it sees the kernel command line option).
This seems to have been introduced along with the fsck in intramfs
feature (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708000#10)
in version 0.117.
Attached a patch which fixes the problem.
Regards,
Alessandro Pazzaglia
--- usr/share/initramfs-tools/scripts/functions.orig 2015-07-16 10:31:13.035639676 +0200
+++ usr/share/initramfs-tools/scripts/functions 2015-07-16 10:31:28.855640179 +0200
@@ -358,7 +358,7 @@
force=""
fi
- if [ "$fsckfix" = yes ]
+ if [ "$fsckfix" = "y" ]
then
fix="-y"
else
Reply to: