PDA

View Full Version : Possible bug on init



stagadet
02-13-2013, 05:43 PM
I installed knoppix 7.0.5 on an hard drive and I noticed that the filesystem of knoppix-data.img never got checked.
The first step I took to solve this was to set the properties of the ext2 filesystem so that it was checked everytime

tune2fs -c 1 /mnt-system/KNOPPIX/knoppix-data.img
but even in this case the file system didn't get checked, so I took a close look at the init script and I found that in the checkfs() function, the e2fsck program is called using:

runknoppixlib /sbin/e2fsck -y "$h" >/dev/null 2>&1
but the variable $h has no value in the function, so I think the call to the program should be:

runknoppixlib /sbin/e2fsck -y "$p" >/dev/null 2>&1
I'm not a real expert of linux, so I may be wrong. If this is the case, please tell me. In the other case, maybe someone wants to make the correction to the standard init script (or can save some time searching a similar problem).

Bye
A