Menu

#2157 genimage needs the repository for /install/kernels

2.6.10
closed
5
2012-10-22
2011-07-21
Li Cao
No

xCAT 2.6.2 0720 RHEL6

[root@idplex04 /]# /opt/xcat/share/xcat/netboot/rh/genimage rhels6-x86_64-netboot-compute
The repository for /install/kernels should be created before running the geniamge. Try to run [createrepo /install/kernels]

This command is run by imgcapture, when use imgcapture with -o osimage, it will require for the kernels file from genimage. The os attribute are all the default setting, and if we run genimage with -i eth0 -n bnx2 -o rhels6 -p compute, it will pass. But if with osimage name, it will failed with " the repository for /install/kernels missing."

[root@idplex04 /]# imgcapture idplex02 -o rhels6-x86_64-netboot-compute -V
nodename is idplex02; os is rhels6; arch is x86_64; profile is compute
bootif is ; netdriver is
the output of "stat / -f |grep Type" on idplex02 is:
idplex02: ID: fdf93bfdf74f7551 Namelen: 255 Type: ext2/ext3
The file type is ext2/ext3
The excludestr is "cd /; find . ! -path "./tmp/" ! -path "./proc/" ! -path "./dev/" ! -path "./sys/" ! -path "./install/" ! -path "./xcatpost/" |cpio -H newc -o |gzip -c - >/tmp/xcat_imgcapture.19144"
running "echo -n > /tmp/xcat_imgcapture.19144" on idplex02
Capturing image on idplex02...
running "cd /; find . ! -path "./tmp/" ! -path "./proc/" ! -path "./dev/" ! -path "./sys/" ! -path "./install/" ! -path "./xcatpost/" |cpio -H newc -o |gzip -c - >/tmp/xcat_imgcapture.19144" on idplex02 via the "xdsh" command
Transfering the image captured on idplex02 back...
Running "scp idplex02:/tmp/xcat_imgcapture.19144 /tmp/xcat_imgcapture.19144"
Extracting the image to /install/netboot/rhels6/x86_64/compute/rootimg
Creating the spots exluded when capturing on idplex02...
Generating kernel and initial ramdisks...
"The genimage command is: /opt/xcat/share/xcat/netboot/rh/genimage rhels6-x86_64-netboot-compute" -------------------> genimage commands
Error: The repository for /install/kernels should be created before running the geniamge. Try to run [createrepo /install/kernels].

Discussion

  • Guang Cheng Li

    Guang Cheng Li - 2011-07-21

    Xiao Peng, could you take a look at this problem? it is related to the kernel support with genimage.

     
  • XiaoPeng Wang

    XiaoPeng Wang - 2011-07-29

    Display the message and continue instead of exit if no repository was created in the kerneldir

    2.6.2
    revision 10190.
    2.6.6
    revision 10191

     
  • XiaoPeng Wang

    XiaoPeng Wang - 2012-10-22
    • status: pending --> closed
    • milestone: 2.6.2 --> 2.6.10
     
MongoDB Logo MongoDB