Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[PATCH 6 of 6] Update new-kernel-pkg to support elilo w/ multiboot: msg#00162

Subject: [PATCH 6 of 6] Update new-kernel-pkg to support elilo w/ multiboot
# HG changeset patch
# User agriffis@xxxxxxxxxxxxxxx
# Node ID c4bc9fbc2487083f4033f498cd7e6f1efd7af6bf
# Parent  c21b0cf582a12df3f29601fca13f9ac82cf0ff06
Update new-kernel-pkg to support elilo w/ multiboot

Additionally fix multiple /sbin/grubby instances to use the variable
from the top of the script.

Signed-off-by: Aron Griffis <aron@xxxxxx>

 new-kernel-pkg |   22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff -r c21b0cf582a1 -r c4bc9fbc2487 grubby/new-kernel-pkg
--- a/grubby/new-kernel-pkg     Thu Jun 29 17:01:05 2006 -0400
+++ b/grubby/new-kernel-pkg     Thu Jun 29 17:06:02 2006 -0400
@@ -125,7 +125,7 @@ install() {
        fi
     fi
 
-    if [ -n "$mbkernel" ]; then
+    if [ -n "$mbkernel" -a -n "$cfgLilo" -a "$liloFlag" != "elilo" ]; then
        [ -n "$verbose" ] && echo "multiboot specified, not updating lilo.conf"
        cfgLilo=""
     fi
@@ -140,7 +140,7 @@ install() {
        else
            title="Red Hat Linux ($version)"
        fi
-       /sbin/grubby --add-kernel=$bootPrefix/$kernelName-$version \
+       $grubby --add-kernel=$bootPrefix/$kernelName-$version \
            $INITRD --copy-default $makedefault --title "$title" \
            ${mbkernel:+--add-multiboot="$mbkernel"} 
${mbargs:+--mbargs="$mbargs"} \
            --args="root=$rootdevice $kernargs" --remove-kernel="TITLE=$title"
@@ -151,11 +151,11 @@ install() {
     if [ -n "$cfgLilo" ]; then
        [ -n "$verbose" ] && echo "adding $version to $liloConfig"
 
-       /sbin/grubby --add-kernel=$bootPrefix/$kernelName-$version $INITRD    \
-                    --copy-default $makedefault --title $version           \
-                    --args="root=$rootdevice $kernargs"                        
    \
-                    --remove-kernel="TITLE=$version"               \
-                    --$liloFlag
+       $grubby --add-kernel=$bootPrefix/$kernelName-$version $INITRD \
+               --copy-default $makedefault --title $version \
+               ${mbkernel:+--add-multiboot="$mbkernel"} 
${mbargs:+--mbargs="$mbargs"} \
+               --args="root=$rootdevice $kernargs" 
--remove-kernel="TITLE=$version" \
+               --$liloFlag
 
        if [ -n "$runLilo" ]; then 
            [ -n "$verbose" ] && echo "running $lilo"
@@ -181,14 +181,14 @@ remove() {
 
     if [ -n "$cfgGrub" ]; then
        [ -n "$verbose" ] && echo "removing $version from $grubConfig"
-       /sbin/grubby --remove-kernel=$bootPrefix/$kernelName-$version
+       $grubby --remove-kernel=$bootPrefix/$kernelName-$version
     else
        [ -n "$verbose" ] && echo "$grubConfig does not exist, not running 
grubby"
     fi
 
     if [ -n "$cfgLilo" ]; then
        [ -n "$verbose" ] && echo "removing $version from $liloConfig"
-       /sbin/grubby --remove-kernel=$bootPrefix/$kernelName-$version       \
+       $grubby --remove-kernel=$bootPrefix/$kernelName-$version            \
                     --$liloFlag
 
        if [ -n "$runLilo" ]; then 
@@ -207,7 +207,7 @@ update() {
 update() {
     if [ -n "$cfgGrub" ]; then
        [ -n "$verbose" ] && echo "updating $version from $grubConfig"
-       /sbin/grubby --update-kernel=$bootPrefix/$kernelName-$version \
+       $grubby --update-kernel=$bootPrefix/$kernelName-$version \
            ${kernargs:+--args="$kernargs"} \
            ${removeargs:+--remove-args="$removeargs"}  
     else
@@ -216,7 +216,7 @@ update() {
 
     if [ -n "$cfgLilo" ]; then
        [ -n "$verbose" ] && echo "updating $version from $liloConfig"
-       /sbin/grubby --update-kernel=$bootPrefix/$kernelName-$version \
+       $grubby --update-kernel=$bootPrefix/$kernelName-$version \
            ${kernargs:+--args="$kernargs"} \
            ${removeargs:+--remove-args="$removeargs"}  \
                     --$liloFlag



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe