error in /etc/init.d/checkroot.sh

Bug #35860 reported by Andrea Garbarini
6
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
New
Medium
Unassigned

Bug Description

hello, please take a look at the checkroot.sh script, starting from line 252:

fsck $spinner $force $fix -T -t $roottype $rootdev
if [ "$?" = 0 ]
 log_success_msg "Done checking root file system"
then
 log_failure_msg "Done checking root file system"
fi

shouldn't that be:

fsck $spinner $force $fix -T -t $roottype $rootdev
if [ "$?" = 0 ]
then
 log_success_msg "Done checking root file system"
else
 log_failure_msg "Done checking root file system"
fi

I hope this helped, regards, andre

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Thanks for the bug report. This bug has already been reported.

Revision history for this message
Andrea Garbarini (garba) wrote :

I am sorry Tormod, I must have overlooked it on the bug list! Regards, andre

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.