mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-02 19:40:10 +00:00
Merge pull request #5230 from immarvin/onissue
fix issue Non-root user can not run ping on ubuntu 14.4.4 diskless #5227
This commit is contained in:
commit
ac941fd250
@ -500,7 +500,7 @@ sub process_request {
|
||||
my $checkoption2 = `tar --selinux 2>&1`;
|
||||
my $option;
|
||||
if ($checkoption1 !~ /unrecognized/) {
|
||||
$option .= "--xattrs-include='*' ";
|
||||
$option .= " --xattrs --xattrs-include='*' ";
|
||||
}
|
||||
if ($checkoption2 !~ /unrecognized/) {
|
||||
$option .= "--selinux ";
|
||||
|
@ -1501,9 +1501,9 @@ EOMS
|
||||
print $inifile " ([ \"\$xcatdebugmode\" = \"1\" ] || [ \"\$xcatdebugmode\" = \"2\" ]) && logger -t xcat -p debug \"Extracting root filesystem:\"\n";
|
||||
print $inifile " echo -n \"Extracting root filesystem:\"\n";
|
||||
print $inifile " if [ -r /rootimg.tar.gz ]; then\n";
|
||||
print $inifile " /bin/tar --selinux --xattrs-include='*' -zxf /rootimg.tar.gz\n";
|
||||
print $inifile " /bin/tar --selinux --xattrs --xattrs-include='*' -zxf /rootimg.tar.gz\n";
|
||||
print $inifile " elif [ -r /rootimg.tar.xz ]; then\n";
|
||||
print $inifile " /bin/tar --selinux --xattrs-include='*' -Jxf /rootimg.tar.xz\n";
|
||||
print $inifile " /bin/tar --selinux --xattrs --xattrs-include='*' -Jxf /rootimg.tar.xz\n";
|
||||
print $inifile " fi\n";
|
||||
print $inifile " ([ \"\$xcatdebugmode\" = \"1\" ] || [ \"\$xcatdebugmode\" = \"2\" ]) && logger -t xcat -p debug \"Done...\"\n";
|
||||
print $inifile " echo Done\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user