hi ,all 
     Jarrod's answer can work! thanks
      and here are one case that should be consider :
if the $rootimgdir/ have more  root image but with different compress format 
,the default behavior is cpio.gz < gz <tar.gz <tar.xz ,it would be better if we 
can choose what we want with a parameters 


my $suffix = 'cpio.gz';
        $suffix = 'sfs' if (-r "$rootimgdir/rootimg.sfs");
        $suffix = 'gz' if (-r "$rootimgdir/rootimg.gz");
        $suffix = 'cpio.xz' if (-r "$rootimgdir/rootimg.cpio.xz");
        $suffix = 'tar.gz' if (-r "$rootimgdir/rootimg.tar.gz");
        $suffix = 'tar.xz' if (-r "$rootimgdir/rootimg.tar.xz");



Peter CZ peng
Department :Complex Solution Rack TE
Address:ISH3 Shenzhen 
Lenovo China 
+86 86361590
+86 18129979128
609 1590
[email protected]
 

Lenovo.com /www.lenovo.com 
Twitter | Facebook | Instagram | Blogs | Forums






-----Original Message-----
From: [email protected] 
[mailto:[email protected]] 
Sent: Wednesday, November 09, 2016 11:25 PM
To: [email protected]
Subject: xCAT-user Digest, Vol 87, Issue 3

Send xCAT-user mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/xcat-user
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of xCAT-user digest..."


Today's Topics:

   1. Re: xcat build old diskless image can not use in the new  xcat
      2.12.2 (Jarrod Johnson)


----------------------------------------------------------------------

Message: 1
Date: Wed, 9 Nov 2016 15:23:13 +0000
From: Jarrod Johnson <[email protected]>
Subject: Re: [xcat-user] xcat build old diskless image can not use in
        the new xcat 2.12.2
To: xCAT Users Mailing list <[email protected]>
Message-ID: <520F6194F0DCCD4C97924999FB82474712D1E2A1@USMAILMBX03>
Content-Type: text/plain; charset="us-ascii"

https://github.com/xcat2/xcat-core/commit/e7a7da10cbec34ced8981d9a770e727f02262de9

That fixes the problem for RedHat and similar.

From: Jarrod Johnson [mailto:[email protected]]
Sent: Wednesday, November 09, 2016 9:29 AM
To: xCAT Users Mailing list
Subject: Re: [xcat-user] xcat build old diskless image can not use in the new 
xcat 2.12.2

The implementation:
commit 79426ad21e602b8a1bf5c02084ffb8c8ca9bf01e
Author: penguhyang <[email protected]<mailto:[email protected]>>
Date:   Thu Aug 11 16:09:43 2016 +0800

    add new option to indicate compress method (#1669)



Broke backwards compatibility.  I'm investigating restoring backwards 
compatibility, but would love if someone beats me to the punch.

I would have appreciated if backwards compatibility had been given a thought 
when doing changes like this.

From: peter CZ1 Peng [mailto:[email protected]]
Sent: Wednesday, November 09, 2016 2:20 AM
To: [email protected]<mailto:[email protected]>
Subject: [xcat-user] xcat build old diskless image can not use in the new xcat 
2.12.2

hi ,all
     I meet a new issue when I ungrade my xcat from 2.11.1 to 2.12.2
     after upgrade ,and I try to preload my image (nodeset node01 
osimage=rhels7.2-x86_64-netboot-compute ),it have something change

[root@mgt compute]# cat /tftpboot/xcat/xnba/nodes/node01.elilo
default="xCAT"
delay=0

image=/tftpboot/xcat/osimage/rhels7.2-x86_64-netboot-compute/kernel
   label="xCAT"
   
initrd=/tftpboot/xcat/osimage/rhels7.2-x86_64-netboot-compute/initrd-stateless.gz
   
append="imgurl=http://%N:80//install/netboot/rhels7.2/x86_64/compute/rootimg.cpio.gz
 XCAT=%N:3001 NODE=node01 FC=no ifname=eno2:40:f2:e9:c8:d4:fc netdev=eno2  
console=tty0 console=ttyS0,115200n8r BOOTIF=%B"
[root@mgt compute]# cat /tftpboot/xcat/xnba/nodes/node01.
node01.elilo  node01.uefi
[root@mgt compute]# cat /tftpboot/xcat/xnba/nodes/node01.uefi
#!gpxe
chain 
http://${next-server}/tftpboot/xcat/elilo-x64.efi<http://$%7bnext-server%7d/tftpboot/xcat/elilo-x64.efi>
 -C /tftpboot/xcat/xnba/nodes/node01.elilo
[root@mgt compute]#


when I build my rootimg in xcat 2.11.1 ,it is a default format with the name 
rootimg.gz, and now I copy rootimg.gz to rootimg.cpio.gz ,but it can not work 
as show as below:


Getting 
http://172.20.0.1:80//install/netboot/rhels7.2/x86_64/compute/rootimg.cpio.gz<http://172.20.0.1:80/install/netboot/rhels7.2/x86_64/compute/rootimg.cpio.gz>...
--2016-11-09 23:10:12--  
http://172.20.0.1//install/netboot/rhels7.2/x86_64/compute/rootimg.cpio.gz<http://172.20.0.1/install/netboot/rhels7.2/x86_64/compute/rootimg.cpio.gz>
Connecting to 172.20.0.1:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 445923212 (425M) [application/x-gzip] Saving to: 'rootimg.cpio.gz'

100%[======================================>] 445,923,212  112MB/s   in 3.8s

2016-11-09 23:10:16 (112 MB/s) - 'rootimg.cpio.gz' saved [445923212/445923212]

Failed to download image, panicing in 5...4...3...2...1...0...
You're dead.  rpower nodename reset to play again.

* Did you packimage with -m cpio, -m squashfs, or -m nfs?
* If using -m squashfs did you include aufs.ko with geninitrd?
  e.g.:  -n tg3,squashfs,aufs,loop
* If using -m nfs did you export NFS and sync rootimg?  And
  did you include the aufs and nfs modules in the proper order:
  e.g.:  -n tg3,aufs,loop,sunrpc,lockd,nfs_acl,nfs


/usr/sbin/xcatroot: line 251: /bin/dash: No such file or directory


[   59.847360] dracut Warning: Could not boot.
dracut Warning: Could not boot.


Generating "/run/initramfs/rdsosreport.txt"
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot 
after mounting them and attach it to a bug report.

To get more debug information in the report, reboot with "rd.debug" added to 
the kernel command line.

Dropping to debug shell.

dracut:/#


please help me if anyone who know that answer ,thanks


Peter CZ peng
Department :Complex Solution Rack TE
Address:ISH3 Shenzhen
Lenovo China

[Phone]+86 86361590
[Email]+86 18129979128
[VOIP]609 1590
[Email][email protected]<mailto:[email protected]>



Lenovo.com /www.lenovo.com <http://www.lenovo.com/www.lenovo.com>
Twitter<http://twitter.com/lenovo> | Facebook | 
Instagram<https://instagram.com/lenovo> | Blogs<http://blog.lenovo.com/> | 
Forums<http://forums.lenovo.com/>


[Lenovo_2015]




-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 92 bytes
Desc: image001.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 147 bytes
Desc: image002.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.gif
Type: image/gif
Size: 138 bytes
Desc: image003.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.gif
Type: image/gif
Size: 128 bytes
Desc: image004.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 6246 bytes
Desc: image005.jpg

------------------------------

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi 
processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi

------------------------------

_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user


End of xCAT-user Digest, Vol 87, Issue 3
****************************************

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to