tags 468176 +pending
thanks

On Wed, Feb 27, 2008 at 03:32:16PM +0100, Uwe Kleine-König wrote:
> I have a system here that boots via NFS and so the file /etc/fstab looks
> as follows:
> 
>       [EMAIL PROTECTED]:/# cat /etc/fstab 
>       # UNCONFIGURED FSTAB FOR BASE SYSTEM
> 
> But fsck grumbles:
> 
>       [EMAIL PROTECTED]:/# fsck
>       fsck 1.40-WIP (14-Nov-2006)
>       WARNING: Your /etc/fstab does not contain the fsck passno
>               field.  I will kludge around things for you, but you
>               should fix your /etc/fstab file as soon as you can.

Thanks for reporting this bug.  I've checked in the following patch to
address this issue.

                                             - Ted

commit 15472658599eb29c522107377a9797c6322b93c3
Author: Theodore Ts'o <[EMAIL PROTECTED]>
Date:   Wed Feb 27 14:19:18 2008 -0500

    fsck: Don't complain about an old-style fstab if the fstab is empty
    
    Addresses-Debian-Bug: 468176
    
    Signed-off-by: "Theodore Ts'o" <[EMAIL PROTECTED]>

diff --git a/misc/fsck.c b/misc/fsck.c
index 24c095a..db572b1 100644
--- a/misc/fsck.c
+++ b/misc/fsck.c
@@ -364,7 +364,7 @@ static void load_fs_info(const char *filename)
        
        fclose(f);
        
-       if (old_fstab) {
+       if (old_fstab && filesys_info) {
                fputs(_("\007\007\007"
                "WARNING: Your /etc/fstab does not contain the fsck passno\n"
                "       field.  I will kludge around things for you, but you\n"


Reply via email to