The problem is gone now. I had originally done the chdef -t osimage -p pkgdir before there was a line for rhels7.3-x86_64-netboot-comp_kup. It created a new entry for me with most of the fields blank. There was no rootimg dir, and there had been no pkgdir before I ran the command. Therefore there was nothing to append the new pkgdir to. I went back and cloned an existing line for rhels7.3-x86_64-netboot-comp (with our earlier customizations), then did chdef -t osimage rhles7.3-x86_64-netboot-comp_kup -p kerneldir <...> The result was kerneldir was filled in, and pkgdir was also prepended with the kernel directory. I think this is what was intended in the documented example. I ended up with a bootable image, and the correct kernel/initrd.
Thanks for the help, your solution was much simpler than what I was thinking it would take. -- ddj > On Dec 3, 2018, at 8:57 PM, Yuan Y Bai <by...@cn.ibm.com> wrote: > > Hi David, > > Thanks you pointing out that the doc is not clear about "kerneldir", and make > you confused about "kerneldir" and "pkgdir". > > Here you should use "pkgdir" to append kernels repo directory into pkgdir. > Here is my example, could you try like this, if you have problems, contact me > freely. > > ]# ls /install/kernels/3.10.0-860.el7.x86_64/ > dracut-033-535.el7.x86_64.rpm > dracut-network-033-535.el7.x86_64.rpm > kernel-3.10.0-860.el7.x86_64.rpm > linux-firmware-20180220-62.git6d51311.el7.noarch.rpm > repodata > > ]# chdef -t osimage rhels7.3-x86_64-netboot-compute -p > pkgdir=/install/kernels/3.10.0-860.el7.x86_64 > > ]# lsdef -t osimage rhels7.3-x86_64-netboot-compute -i pkgdir > Object name: rhels7.3-x86_64-netboot-compute > pkgdir=/install/rhels7.3/x86_64,/install/kernels/3.10.0-860.el7.x86_64 > > ]# genimage rhels7.3-x86_64-netboot-compute -k 3.10.0-860.el7.x86_64 > > ]# packimage rhels7.3-x86_64-netboot-compute > > > > > Best Regards > -------------------------------------------------- > Yuan Bai (白媛) > > CSTL HPC System Management Development > Tel:86-10-82451401 > E-mail: by...@cn.ibm.com > Address: IBM ZGC Campus. Ring Building 28, > ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District, > Beijing P.R.China 100193 > > IBM环宇大厦 > 北京市海淀区东北旺西路8号,中关村软件园28号楼 > 邮编:100193 > > > ----- Original message ----- > From: David Johnson <david_john...@brown.edu> > To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> > Cc: > Subject: Re: [xcat-user] choosing kernel for genimage (xCAT 2.13.4) > Date: Tue, Dec 4, 2018 12:16 AM > > The document seems to have a problem with the examples — > the description talks about “kerneldir” attribute, but the example uses > “pkgdir”. > When I use pkgdir it clobbers the existing value (/install/rhels7.3/x86_64) > with new value (/install/kernels/3.10.0-862.14.14.el7.x86_64) > > I think it should say chdef -t osimage <> -p kerneldir=<> > I got further using that format. However, I’m still having trouble with the > packimage > command “Error: Cannot find rhels7.3-x86_64-neboot-comp_kup from the > linuximage table. > But it’s there: > [root@mgt5 ~]# tabdump linuximage | grep rhels7.3-x86_64-netboot-comp_kup > "rhels7.3-x86_64-netboot-comp_kup",,,,,"/install/kernels/3.10.0-862.14.4.el7.x86_64,/install/rhels7.3/x86_64",,,,,,"/install/kernels/3.10.0-862.14.14.el7.x86_64",,,,,,,,,,,, > > Thanks for the pointers, > > — ddj > >> >> On Dec 3, 2018, at 4:08 AM, Yuan Y Bai <by...@cn.ibm.com >> <mailto:by...@cn.ibm.com>> wrote: >> >> >> Hi David, >> >> Do you want to create osimage to use RHEL 7.5 kernel rpms based on RHEL 7.3 >> .iso? >> >> I think you can refer to examples in this doc, if you have problem, contact >> us freely. >> >> https://xcat-docs.readthedocs.io/en/latest/guides/admin-guides/manage_clusters/ppc64le/diskless/customize_image/install_new_kernel.html?highlight=kernel >> >> <https://xcat-docs.readthedocs.io/en/latest/guides/admin-guides/manage_clusters/ppc64le/diskless/customize_image/install_new_kernel.html?highlight=kernel> >> >> >> Best Regards >> -------------------------------------------------- >> Yuan Bai (白媛) >> >> CSTL HPC System Management Development >> Tel:86-10-82451401 >> E-mail: by...@cn.ibm.com <mailto:by...@cn.ibm.com> >> Address: IBM ZGC Campus. Ring Building 28, >> ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District, >> Beijing P.R.China 100193 >> >> IBM环宇大厦 >> 北京市海淀区东北旺西路8号,中关村软件园28号楼 >> 邮编:100193 >> >> >> ----- Original message ----- >> From: David Johnson <david_john...@brown.edu >> <mailto:david_john...@brown.edu>> >> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net >> <mailto:xcat-user@lists.sourceforge.net>> >> Cc: >> Subject: [xcat-user] choosing kernel for genimage (xCAT 2.13.4) >> Date: Sat, Dec 1, 2018 3:47 AM >> >> I am trying to build new netboot images based on the RHEL 7.3 .iso, >> while updating only the kernel (to the one released with RHEL 7.5). >> I would like to retain the ability to rebuild the original images. >> It seems to me that “otherpkgs” is probably too late, as the kernel >> and initrd are populated first. >> >> If I drop the updated RPMS in /install/rhels7.3/x86_64/Packages >> and rebuild the repo, it should choose the newer ones. Then I’d >> need the -g and/or -k options to genimage to use the originals. >> Does this make sense or is there an easier way? >> >> Thanks, >> — ddj >> Dave Johnson >> >> _______________________________________________ >> xCAT-user mailing list >> xCAT-user@lists.sourceforge.net <mailto:xCAT-user@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/xcat-user >> <https://lists.sourceforge.net/lists/listinfo/xcat-user> >> >> >> >> _______________________________________________ >> xCAT-user mailing list >> xCAT-user@lists.sourceforge.net <mailto:xCAT-user@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/xcat-user > > _______________________________________________ > xCAT-user mailing list > xCAT-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xcat-user > <https://lists.sourceforge.net/lists/listinfo/xcat-user> > > > _______________________________________________ > xCAT-user mailing list > xCAT-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user