Script to automatically reboot to newly compiled kernel with fallback
Hi,
I'm new here. Just started playing around with kernel compilation.
I need a little bit of advice.
I'm trying to do a bash script to automatically compile a kernel package and reboot to that new kernel by default, with fallback to the old kernel.
So far, I'm getting stuck at the part where I need to reboot and load the new kernel as default.
I'm intending for this script to be used on systems using grub (legacy).
If I'm not wrong, I would need to change the menu.lst file to something like this:
If so, how should I go about to manipulate the menu.lst file?
I'm guessing that I might need to use awk to parse through the file, count the entries to get the entry number of the new kernel and the original kernel.
If that is the case, how can I do that with awk? (Not too good with awk, I usually use sed. )
Or are there better alternatives to this?
Thanks in advance.
Last edited by pludi; 12-28-2009 at 02:42 AM..
Reason: code tags, please...
Hello Team .
I am working a health check script ( bash) to run on linux server ( RedHat) and requirements are
1. The o/p of script need to be send to two diff files . I am testing with tee command . But I am not successful yet , any recommendations if that is the right approach ?
2. The same... (2 Replies)
Hello, i tried to enable IPv6 networking and after service network restart i seen these messages:
FATAL: Error inserting ipv6 (/lib/modules/2.6.18-348.16.1.el5.028stab108.1/kernel/net/ipv6/ipv6.ko): Device or resource busy
CRITICAL : Kernel is not compiled with IPv6 support
Bringing up... (6 Replies)
Hi All,
I was trying to know more about RAM disk concept in AIX. I found something on IBM site.
I was able to create and use/delete RAM disk as per IBM instructions.
But as you guys know, this RAM disk is a temporary storage. (*when ever we reboot the AIX LPAR, content/RAM disk will be... (4 Replies)
Greetings,
Does anyone know how to load AIX kernel extensions on reboot? I know that Oracle loads it's postwait kernel extension via a executable in /etc/inittab. I'm assuming this executable calls the "sysconfig" system call and loads it. What if I wrote my own? What is the proper way in AIX to... (3 Replies)
Hi friends,,,
I am running one server on Ubuntu 12.04 LTS 32-bit, some times my pc restarts automatically, with no reason, I have a script to start server which requires root password. in this directory
/myserver/start_server.sh
How can I do this ?
and some scripts I am having that I... (1 Reply)
Hello experts,
This issue has kept me busy all day long. It started off with openssl compilation which was giving linking error with following message:
/usr/local/bin/ld: target elf32-sparc not found
collect2: ld returned 1 exit status
I tried every step possible thing that I could think... (2 Replies)
Hi there,
I have a Debian Squeeze server.
How can I check if my kernel was compiled with NFS server support?
Extra question: if it is not, how do I enable NFS support in my kernel?
Thanks for your help.
Santiago (3 Replies)
Could you please help with problem with megaraid controller and Dell PowerEdge 2850, all that I can see on thi screenshot:
All drives successfuly passed verifing from LSI controllers (Ctrl+A at startup), also I tried to boot from rescue llive cd and mount all the morrored drives and check... (22 Replies)
Hi All,
I am new to AIX. I am having problems mounting a filesystem after a system reboot.
Steps:
1. Create and Map LUN to host
2. On the host, to detect/configure the LUN: /usr/sbin/cfgmgr
3. Create a filesystem: mkfs -V vxfs /dev/hdisk757
4. Create a mountpoint: mkdir -p... (3 Replies)