> yes, it's ok to launch in rc.sysinit, which is hwat should be done.

Not quite okay!!  

rc.sysinit ought to work without mounting /usr

but lots of stuff including the hdparm setup in initscripts-4.97-36mdk
assumes that /usr is mounted

this is bad and needs fixing

 - D.

# Optimisation of Hard drive.
if grep -qi opti /proc/cmdline || [ -n "$HDPARM" ]; then
    if [ -x /sbin/hdparm ];then
        LIST_HD=$(grep '^hd.:' /var/log/dmesg|\
            grep -ivE '(CD.*ROM|DVD.*ROM|FLOPPY|TAPE|STATUS)'|cut -d: -f1|sort|uniq)   
                                           

[root@avocado /mdk]# which cut sort uniq
/usr/bin/cut
/bin/sort
/usr/bin/uniq                                                                          
            

Reply via email to