hi David D. Johnson,
this is a issue we have fixed in https://github.com/xcat2/xcat-core/issues/922 in xCAT 2.12.2.
The key to preserve the "capability" of the file is the archive method, so use "-m tar" instead of "-m cpio" is adequate. The compress method is the option for user to trade off between compress time and compress ratio, "-c xz" will cost a lot of time to compress, "-c gzip" or "-c pigz" might be an option for you. The poor support of compress options is a problem for us, you can open a ticket on GitHub if you really need this, we will consider to do some enhancement in the future releases.
thanks
------------------------------------------------------------------------------
YANG Song (杨嵩)
IBM China System Technology Laboratory
Tel: 86-10-82452903
Email: yang...@cn.ibm.com
Address: Building 28, ZhongGuanCun Software Park,
No.8, Dong Bei Wang West Road, Haidian District Beijing 100193, PRC
北京市海淀区东北旺西路8号中关村软件园28号楼
邮编: 100193
YANG Song (杨嵩)
IBM China System Technology Laboratory
Tel: 86-10-82452903
Email: yang...@cn.ibm.com
Address: Building 28, ZhongGuanCun Software Park,
No.8, Dong Bei Wang West Road, Haidian District Beijing 100193, PRC
北京市海淀区东北旺西路8号中关村软件园28号楼
邮编: 100193
----- Original message -----
From: Xiao Peng Wang/China/IBM
To: Song BJ Yang/China/IBM@IBMCN
Cc:
Subject: Fw: Re: [xcat-user] /usr/bin/ping on diskless lost capabilities rhel7.2
Date: Fri, Apr 14, 2017 9:14 AM
Any idea?
Best Regards
----------------------------------------------------------------------
Wang Xiaopeng (王晓朋)Manager for HPC SW Dev: xCAT, ESSL, SMI, TestIBM China Systems Laboratory (CSL)
Tel: 86-10-82453455
Email: w...@cn.ibm.com----- Original message -----
From: "David D. Johnson" <david_john...@brown.edu>
To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Cc:
Subject: Re: [xcat-user] /usr/bin/ping on diskless lost capabilities rhel7.2
Date: Fri, Apr 14, 2017 12:40 AM
Thanks for the help. Tar works where cpio didn’t. However, switching from gzip to xz
costs 9 extra minutes (10 vs 1) in the packimage step. I couldn’t find a knob to twist to
make it use xz -0 or xz -3 rather than the default level -6 compression, and XZ_OPTS was
not passed from the environment where packimage was called to the actual xz process.
— ddj
> On Apr 10, 2017, at 4:09 PM, Jarrod Johnson <jjohns...@lenovo.com> wrote:
>
> There's a new packmigae format, txz. -m tar -c xz.
>
> Tar will preserve those capabilities, cpio will not. Too bad we didn't pick tar to start with back in the day...
>
> -----Original Message-----
> From: David D. Johnson [mailto:david_john...@brown.edu]
> Sent: Monday, April 10, 2017 2:50 PM
> To: xCAT Users Mailing list
> Subject: [xcat-user] /usr/bin/ping on diskless lost capabilities rhel7.2
>
> mgt# getcap /usr/bin/ping
> /usr/bin/ping = cap_net_admin,cap_net_raw+p mgt# ssh compute compute# getcap /usr/bin/ping compute#
>
> Somewhere along the line, unpacking the rootimg I would guess, the binary for ping and its friends loses the required privilege / capability to actually function for non-root user.
>
> With RH6, ping was setuid, which didn’t get lost at boot time.
>
> Anybody have a workaround?
>
> Thanks,
> — ddj
> Dave Johnson
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user