From: "Christian Limpach" Subject: Re: [RFC][PATCH] create an initrd for dom0 in install.sh script Date: Thu, 30 Mar 2006 20:33:22 +0100 Message-ID: <3d8eece20603301133u76ef82do64f5eadc635f71d6@mail.gmail.com> References: <1143731284.7695.9.camel@localhost.localdomain> Reply-To: Christian.Limpach@cl.cam.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1143731284.7695.9.camel@localhost.localdomain> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Harry Butterworth Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 3/30/06, Harry Butterworth 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 =3D= =3D > '/' ]; 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?=20 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