File '/etc/rc.d/init.d/checkfs' (3755 bytes).

On boot, at the point where 'checkfs' invokes fsck, fsck issues its normal 
message when close to a "real" check, for example

/dev/hdb4: clean, 133769/960992 files, 921779/1919767 blocks (check in 3 mounts)

and the screen display will look something like this (excerpt):
  
Mounting root file system in read-only mode...                         [  OK  ]
Checking file systems...
/dev/hdb4: clean, 133764/960992 files, 921705/1919767 blocks (check in [  OK  ])
Remounting root file system in read-write mode...                      [  OK  ]

As can be seen, the warning "check in 3 mounts" is overwritten and its meaning 
is fully lost.

I'm submitting the following "quick" fix for your critique (excerpt from 
modified 'checkfs'):

                boot_mesg "Checking file systems..."
                # Note: -a option used to be -p; but this fails e.g.
                # on fsck.minix
                fsck ${options} -a -A -C -T 2>/dev/null
                error_value=${?}

                if [ "${error_value}" = 0 ]; then
                        CURS_UP=""                              # Momentarily
                        echo_ok
                        CURS_UP="\\033[1A\\033[0G"              # Reset symbol
                fi

NOTES:
1. The modification consists in "surrounding" 'echo_ok' with the two "CURS_UP" 
lines.
2. The overall effect is far from perfect.  For the majority of instances where 
we're not close to a check and thus fsck message is shorter, the "OK" stands 
out annoyingly (and unjustifiably) on its separate line.

Thanks,
-- Alex
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to