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] Mkinitramfs wants minimum 2.6.19 kernel!

To: "Jan De Landtsheer" <jan.de.landtsheer@xxxxxxxxxx>
Subject: Re: [Xen-devel] Mkinitramfs wants minimum 2.6.19 kernel!
From: "Emre Erenoglu" <erenoglu@xxxxxxxxx>
Date: Mon, 5 Mar 2007 15:16:43 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Jacob Gorm Hansen <jacobg@xxxxxxx>
Delivery-date: Mon, 05 Mar 2007 06:15:49 -0800
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eYM19vw4jL3+yq5MnSEkWU4Knra0wfEeovfCZC9aR1x+JAAHnUylw9DbuX3iRmwNw6bCR0sHzw+L9iGxqRAKQhLXByKJ9Rc3+hOFVB/bCMvE+7561578C6nqnd/K73YJ9sp6zz4mGhZGjFqPL1W4dqrO4V06IM0U9ePBOKxLgMA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Mr+VMZ11bO94bIk8CQSJPuN28WrCSJJhjANFM/ej0nfOTO5IvN4VkEKG+RrNtpIWf4vtb8ltl0Bin/iNqAceMSw27YtLfyPfLfcComwoy4IX+oelw2CMBx1Kjs7tYpu617z9+FWYDwmXXI5Jmfsz3MLcGZPaTMxpy8jgmd6B7iI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <D4250AC5FC13E440A0F2F5519C9B2DF06E771C@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <fe9771a80703041723y20e94d5fs8c99070d8cfe06cc@xxxxxxxxxxxxxx> <1173098328.14470.41.camel@xxxxxxxxxxxxxxxxxxxxx> <D4250AC5FC13E440A0F2F5519C9B2DF06E771C@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi All,

Thanks for your answers. I filed a bug report to Ubuntu Feisty guys
and got this response:

From: scott@xxxxxxxxxx
Date: Mon, 5 Mar 2007 10:19:22 +0000
Subject: [Bug 89773] Re: Cannot Create initrd image for kernel < 2.6.19
To: erenoglu@xxxxxxxxxxx

This is correct.

We don't support booting feisty with kernels < 2.6.19

** Changed in: udev (Ubuntu)
Status: Unconfirmed => Rejected

--
Cannot Create initrd image for kernel < 2.6.19
https://launchpad.net/bugs/89773

So it seems Feisty is dead regarding Xen compilation from Source
(nevertheless, they have packages for Xen 3.0.3 or 3.0.4).

Can you guys suggest me another distro for having my base Dom0 on?
Maybe Gentoo, Fedora Core or Suse?

Jan, how can I implement your workaround? When I use bash -x I don't
see any file it greps. Here's the output:

emre@xen:~$ bash -x /usr/sbin/mkinitramfs
+ umask 0022
+ keep=n
+ CONFDIR=/etc/initramfs-tools
+ verbose=n
+ errors_to='2>/dev/null'
+ BUSYBOXDIR=/usr/lib/initramfs-tools/bin/
++ getopt -o d:ko:r:v --long
supported-host-version:,supported-target-version: -n
/usr/sbin/mkinitramfs --
+ OPTIONS=' --'
+ '[' 0 '!=' 0 ']'
+ eval set -- ' --'
++ set -- --
+ true
+ case "$1" in
+ shift
+ break
+ '[' -n '' ']'
+ '[' -n '' ']'
+ . /usr/share/initramfs-tools/scripts/functions
+ . /usr/share/initramfs-tools/hook-functions
+ . /etc/initramfs-tools/initramfs.conf
++ MODULES=most
++ BUSYBOX=y
++ BOOT=local
++ DEVICE=eth0
++ NFSROOT=auto
+ EXTRA_CONF=
+ for i in '/usr/share/initramfs-tools/conf.d/*' '${CONFDIR}/conf.d/*'
++ basename '/usr/share/initramfs-tools/conf.d/*'
++ grep '^[a-z0-9][a-z0-9\._-]*$'
++ grep -v '\.dpkg-.*$'
+ EXTRA_CONF=' '
+ for i in '/usr/share/initramfs-tools/conf.d/*' '${CONFDIR}/conf.d/*'
++ basename /etc/initramfs-tools/conf.d/resume
++ grep '^[a-z0-9][a-z0-9\._-]*$'
++ grep -v '\.dpkg-.*$'
+ EXTRA_CONF='  resume'
+ for i in '${EXTRA_CONF}'
+ '[' -e /etc/initramfs-tools/conf.d/resume ']'
+ . /etc/initramfs-tools/conf.d/resume
++ RESUME=UUID=4f62d698-306b-4ab3-8dee-8350b5115dd3
+ '[' -n '' ']'
+ '[' -z '' ']'
+ usage
+ cat

Usage: /usr/sbin/mkinitramfs [OPTION]... <-o outfile> [version]

Options:
 -d confdir  Specify an alternative configuration directory.
 -k          Keep temporary directory used to make the image.
 -o outfile  Write to outfile.
 -r root     Override ROOT setting in mkinitrd.conf.

See mkinitramfs(8) for further details.
+ exit 1


Thanks a lot,

Emre



On 3/5/07, Jan De Landtsheer <jan.de.landtsheer@xxxxxxxxxx> wrote:


do a bash -x of mkinitramfs, and alter the latest file it greps form to be
2.6.18, it just works after that



-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx on behalf of
Jacob Gorm Hansen
Sent: Mon 3/5/2007 1:38 PM
To: Emre Erenoglu
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Mkinitramfs wants minimum 2.6.19 kernel!

On Mon, 2007-03-05 at 02:23 +0100, Emre Erenoglu wrote:
> Dear Developers,

> root@xen:/boot/xen# depmod 2.6.18-xen
> root@xen:/boot/xen# mkinitramfs -o /boot/xen/initrd-2.6.18-xen.img
2.6.18-xen
> W: udev hook script requires at least kernel version 2.6.19
> W: not generating requested initramfs for kernel 2.6.18-xen
>
> So mkinitramfs complains that my udev scripts need at least kernel
> 2.6.19. Would one of you have any clue on how to overcome this
> problem?

Perhaps switch to a distro not written by thirteen-year olds... I am
pretty disgusted at the level of 'integration' between many modern
distros and the Linux kernel. It used to be you could just drop in
whatever kernel you liked, but these days your system may not even boot
if you don't have a bleeding-edge kernel.

In other words, I would report this bug to Ubuntu or whoever wrote the
script.

Regards,
Jacob


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




-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx on behalf of
Jacob Gorm Hansen
Sent: Mon 3/5/2007 1:38 PM
To: Emre Erenoglu
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Mkinitramfs wants minimum 2.6.19 kernel!

On Mon, 2007-03-05 at 02:23 +0100, Emre Erenoglu wrote:
> Dear Developers,

> root@xen:/boot/xen# depmod 2.6.18-xen
> root@xen:/boot/xen# mkinitramfs -o /boot/xen/initrd-2.6.18-xen.img
2.6.18-xen
> W: udev hook script requires at least kernel version 2.6.19
> W: not generating requested initramfs for kernel 2.6.18-xen
>
> So mkinitramfs complains that my udev scripts need at least kernel
> 2.6.19. Would one of you have any clue on how to overcome this
> problem?

Perhaps switch to a distro not written by thirteen-year olds... I am
pretty disgusted at the level of 'integration' between many modern
distros and the Linux kernel. It used to be you could just drop in
whatever kernel you liked, but these days your system may not even boot
if you don't have a bleeding-edge kernel.

In other words, I would report this bug to Ubuntu or whoever wrote the
script.

Regards,
Jacob


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






--
Emre Erenoglu
erenoglu@xxxxxxxxx
emre.erenoglu@xxxxxxxxxxxx

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