|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [RFC][PATCH] create an initrd for dom0 in install.sh scr
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
|
|
|
|
|