>
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.
>
>
So the machine won't reboot on its own. I've got to
manually
select the oldest kernel to get it to
boot.
>
>
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.
>
>
Chuck
>
>
>
---------- Original Message
-----------
>
From: "James" <[email protected]>
>
To: "'BlueOnyx General Mailing
List'"
<[email protected]>
>
Sent: Sun, 17 Mar 2013 12:23:25 -0400
>
Subject: [BlueOnyx:12559] Re: Kernel Question
>
>
> After doing what you did, if you should still end up
with
any missing
>
> entries in future you can do this (courtesy of Michael
in
older thread):
>
>
>
> #!/bin/sh
>
> # Setup newest Kernel as default:
>
> KERNEL=`ls -k1 /boot/vmlinuz-*| sed
s#/boot/vmlinuz-##|sort
-V -r|head -1`
>
> /sbin/new-kernel-pkg --package kernel --mkinitrd
--depmod
--install \
>
> --make-default $KERNEL
>
> cat /etc/grub.conf | grep -v ^serial |grep -v
^terminal
>
>
> /boot/grub/grub.conf ------- End of Original Message
-------
>
>
What about a lower case -v
>
>
Ken Marcus
Thanks for the suggestion Ken.
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".
Chuck
|
_______________________________________________
Blueonyx mailing list
[email protected]
http://mail.blueonyx.it/mailman/listinfo/blueonyx