Hi Russell,
    It looks like it failed at these lines of code in genimage:

# copy the kernel to $destdir
if ( -e "$rootimg_dir/boot/vmlinux-$kernelver") {
    cp("$rootimg_dir/boot/vmlinux-$kernelver", "$destdir/kernel");
} elsif ( -e "$rootimg_dir/boot/vmlinuz-$kernelver") {
    cp("$rootimg_dir/boot/vmlinuz-$kernelver", "$destdir/kernel");
} elsif ( -e "$rootimg_dir/boot/image-$kernelver") {
    cp("$rootimg_dir/boot/image-$kernelver", "$destdir/kernel");
} else {
    xdie("couldn't find the kernel file matched $kernelver in 
$rootimg_dir/boot");
}

What are the files under 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimage/boot 
firectory?
The code is looking for something like
 vmlinux-2.6.32-431.el6.x86_64 or 
 vmlinuz-2.6.32-431.el6.x86_64 or
 image-2.6.32-431.el6.x86_64.

Hope it helps,


Ling

Ling Gao
Poughkeepsie Unix Development Lab
IBM Systems and Technology Group
Internal: T/L 293-5692 
External: [email protected], 845-433-5692

"I never worry about the future. It comes soon enough." --- Albert 
Einstein 



From:   Russell Jones <[email protected]>
To:     <[email protected]>
Date:   02/10/2015 05:09 PM
Subject:        [xcat-user] Building diskless image with different kernel 
version



Hi all,
I am attempting to build a diskless image with a different kernel version, 
but not having much luck. I am getting the following error:
[root@evxcat kernel]# genimage v6.6.0-dl-genesisbuild
Generating image:
cd /opt/xcat/share/xcat/netboot/centos; ./genimage -a x86_64 -o centos6.6 
-p v6.6.0-dl-genesisbuild -i eth0 -k 2.6.32-431.el6.x86_64 --permission 
755 --kerneldir /install/custom/v6.6.0-dl-genesisbuild/kernel --srcdir 
/install/centos6.6/x86_64 --pkglist 
/install/custom/v6.6.0-dl-genesisbuild/v6.6.0-dl-genesisbuild.pkglist 
--rootimgdir /install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild 
--tempfile /tmp/xcat_genimage.31434 --noupdate 1 v6.6.0-dl-genesisbuild
mknod: 
`/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/dev/null': 
No such file or directory
sh: line 0: cd: 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/etc/rc3.d: 
No such file or directory
sh: line 0: cd: 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/etc/rc3.d: 
No such file or directory
sh: 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/sbin/fsck.nfs: 
No such file or directory
chmod: cannot access 
`/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/sbin/fsck.nfs':
 
No such file or directory
chroot: failed to run command `rpm': No such file or directory
chroot: failed to run command `rpm': No such file or directory
couldn't find the kernel file matched 2.6.32-431.el6.x86_64 in 
/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild/rootimg/boot at 
./genimage line 72.
 
[root@evxcat kernel]# lsdef -t osimage v6.6.0-dl-genesisbuild
Object name: v6.6.0-dl-genesisbuild
    groups=all
    imagetype=linux
    kerneldir=/install/custom/v6.6.0-dl-genesisbuild/kernel
    kernelver=2.6.32-431.el6.x86_64
    nodebootif=eth0
    osarch=x86_64
    osdistroname=centos6.6-x86_64
    osname=Linux
    osvers=centos6.6
    permission=755
    pkgdir=/install/centos6.6/x86_64
 
pkglist=/install/custom/v6.6.0-dl-genesisbuild/v6.6.0-dl-genesisbuild.pkglist
    postscripts=syslog,confignics,syncfiles,setupntp,addsiteyum
    profile=v6.6.0-dl-genesisbuild
    provmethod=netboot
    rootimgdir=/install/netboot/centos6.6/x86_64/v6.6.0-dl-genesisbuild
 
[root@evxcat kernel]# ll /install/custom/v6.6.0-dl-genesisbuild/kernel
total 81844
-rw-r--r-- 1 root root 29038424 Feb 10 15:49 
kernel-2.6.32-431.el6.x86_64.rpm
-rw-r--r-- 1 root root  2235524 Feb 10 15:49 
kernel-abi-whitelists-2.6.32-431.el6.noarch.rpm
-rw-r--r-- 1 root root 29750344 Feb 10 15:49 
kernel-debug-2.6.32-431.el6.x86_64.rpm
-rw-r--r-- 1 root root  9167492 Feb 10 15:49 
kernel-devel-2.6.32-431.el6.x86_64.rpm
-rw-r--r-- 1 root root 13601072 Feb 10 15:49 
kernel-firmware-2.6.32-431.el6.noarch.rpm
drwxr-xr-x 2 root root     4096 Feb 10 15:49 repodata
 
Any idea what's bombing here? The errors make no sense.
Thanks!
 
 
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is 
your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to