<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
 
<br /><font size="2"><blockquote type="cite" cite="mid:20140421064755.M33790@tetlow.net">> 

      Then I tried Michael's script.  At first, I received 
complaints
      about "-V" not a valid option for sort.  Thought he might 
be
      trying to do a unique sort, so changed the -V to -u and ran 
it
      again.  Still no 
luck.
      
<br />> 
<br />> 

      So the machine won't reboot on its own.  I've got to 
manually
      select the oldest kernel to get it to 
boot.
      
<br />> 
<br />> 

      Anyone know a fix for this issue?  This isn't the Scientific 
Linux
      most people with this problem was running - this is Centos.  
So
      I'm at a loss, but need to fix 
it.
      
<br />> 
<br />> 

      
Chuck
      
<br />> 

      <font size="2">
        
<br />> 
<br />> 

        <b>---------- Original Message 
-----------</b>
        
<br />> 

        From: "James" <a href="mailto:james@slor.net" class="moz-txt-link-rfc2396E"><james@slor.net></a> 
<br />> 

        To: "'BlueOnyx General Mailing 
List'"
        <a href="mailto:blueonyx@mail.blueonyx.it" class="moz-txt-link-rfc2396E"><blueonyx@mail.blueonyx.it></a> 

<br />> 

        Sent: Sun, 17 Mar 2013 12:23:25 -0400 
<br />> 

        Subject: [BlueOnyx:12559] Re: Kernel Question 
<br />> 
<br />> 

        > After doing what you did, if you should still end up 
with
        any missing 
<br />> 

        > entries in future you can do this (courtesy of Michael 
in
        older thread): 
<br />> 

        > 
<br />> 

        > #!/bin/sh 
<br />> 

        > # Setup newest Kernel as default: 
<br />> 

        > KERNEL=`ls -k1 /boot/vmlinuz-*| sed 
s#/boot/vmlinuz-##|sort
        -V -r|head -1` 
<br />> 

        > /sbin/new-kernel-pkg --package kernel --mkinitrd 
--depmod
        --install \ 
<br />> 

        > --make-default $KERNEL 
<br />> 

        > cat /etc/grub.conf | grep -v ^serial |grep -v 
^terminal
        > 
<br />> 

        > /boot/grub/grub.conf </font>------- End of Original Message 
-------
<br /></blockquote>
<br />> 
<br />> 

    What about a lower case      -v 
<br />> 
<br />> 

    Ken Marcus
<br />
<br />
<br />Thanks for the suggestion Ken.  
<br />
<br />But the MAN page on "sort" doesn't show a lower-case "v" switch.  I still tried it mind you, but got the same error as the capital "V" - "invalid option".
<br />
<br />
<br />Chuck
<br />
<br />
<br /></font>
</BODY>
</HTML>