WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [RFC][PATCH] create an initrd for dom0 in install.sh scr

To: "Harry Butterworth" <harry@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [RFC][PATCH] create an initrd for dom0 in install.sh script
From: "Christian Limpach" <christian.limpach@xxxxxxxxx>
Date: Thu, 30 Mar 2006 20:33:22 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 30 Mar 2006 19:34:52 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jq47kytHDpD3DrgVKcPbHN6t4OEgYqgziY4UiEhiBuP02HBL4WDCAdskDzFtNCg/ixcjNUe5Fw8vtWthIA74e0KfLLGqv5Vsas6ccCDcf0b2S+yn2KGbLr/GsCJyiKQ6D/8jwgO20f684p6O2EeYA2MdUpkyMJBJUg1/knFnz5I=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1143731284.7695.9.camel@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1143731284.7695.9.camel@xxxxxxxxxxxxxxxxxxxxx>
Reply-to: Christian.Limpach@xxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 3/30/06, Harry Butterworth <harry@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> diff -r 9239f190736d -r 7d648c1099b2 install.sh
> --- a/install.sh        Wed Mar 29 23:11:53 2006
> +++ b/install.sh        Thu Mar 30 14:57:57 2006
> @@ -44,6 +44,18 @@
>  (cd $tmp; tar -cf - *) | tar --no-same-owner -C "$dst" -xf -
>  rm -rf "$tmp"
>
> +if [ -x "$(which mkinitrd)" ] && [ -x "$(which depmod)" ] && [ $dst ==
> '/' ]; then
> +  cd $src/lib/modules
> +  for i in *; do
> +    echo " - creating initrd-$i.img for dom0"
> +    depmod $i
> +    mkinitrd -o $dst/boot/initrd-$i.img $i
> +  done
> +  cd -
> +else
> +  echo " - you may need to create an initrd for dom0"
> +fi
> +
>  echo "All done."

Could you move it to a seperate script which we call from install.sh? 
With multi-distro support it looks like it will become significantly
bigger and it might also be convenient being able to call it
independently anyway.

    christian

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>