[Oar-commits] [oar-team/kameleon-recipes] 0d6ff5: [helpers] fix tar options

Pierre Neyron pierre.neyron at imag.fr
Thu Sep 22 17:03:28 CEST 2016


  Branch: refs/heads/refactor
  Home:   https://github.com/oar-team/kameleon-recipes
  Commit: 0d6ff576564e0a1f323c106509e006e4dfb72d91
      https://github.com/oar-team/kameleon-recipes/commit/0d6ff576564e0a1f323c106509e006e4dfb72d91
  Author: Pierre Neyron <pierre.neyron at imag.fr>
  Date:   2016-09-22 (Thu, 22 Sep 2016)

  Changed paths:
    M steps/data/helpers/create_appliance.py
    M steps/data/helpers/export_appliance.py

  Log Message:
  -----------
  [helpers] fix tar options

closes #22

add tar options for the import of a tarball (create_appliance.py)
fix tar options for the creation of the tarball (export_appliance.py)

=> remove --acls: see
https://intranet.grid5000.fr/bugzilla/show_bug.cgi?id=6386#c21

=> add --xattrs-include='*':
- needed only for tar -x, and require root/sudo
- armless for tar -c

e.g.:

$ tar --xattrs -cvf /tmp/t.tar /bin/ping ; sudo tar --xattrs --xattrs-
include='*' -xvf /tmp/t.tar ; getcap /tmp/bin/ping
tar: Removing leading `/' from member names
/bin/ping
bin/ping
/tmp/bin/ping = cap_net_raw+ep

same as

$ tar --xattrs-include='*' --xattrs -cvf /tmp/t.tar /bin/ping ; sudo tar
--xattrs --xattrs-include='*' -xvf /tmp/t.tar ; getcap /tmp/bin/ping
tar: Removing leading `/' from member names
/bin/ping
bin/ping
/tmp/bin/ping = cap_net_raw+ep


  Commit: ced7a1d911d0ea46d7fb45662601803ad0422719
      https://github.com/oar-team/kameleon-recipes/commit/ced7a1d911d0ea46d7fb45662601803ad0422719
  Author: Pierre Neyron <pierre.neyron at imag.fr>
  Date:   2016-09-22 (Thu, 22 Sep 2016)

  Changed paths:
    M steps/data/helpers/export_appliance.py

  Log Message:
  -----------
  [export_appliance] fix bogus case: guestumount even if tar failed.


Compare: https://github.com/oar-team/kameleon-recipes/compare/034d866f555e...ced7a1d911d0


More information about the Oar-commits mailing list