Have packimage skip mounted filesystems (e.g. proc, sys, etc that might be accidentally hanging around).
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12235 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9e912be932
commit
db1e95f0c8
@ -227,7 +227,7 @@ sub process_request {
|
||||
}
|
||||
|
||||
my $xcat_packimg_tmpfile = "/tmp/xcat_packimg.$$";
|
||||
my $excludestr = "find . ";
|
||||
my $excludestr = "find . -xdev ";
|
||||
my $includestr;
|
||||
if ($exlistloc) {
|
||||
my $exlist;
|
||||
@ -275,7 +275,7 @@ sub process_request {
|
||||
$excludestr =~ s/-a $//;
|
||||
if ($includestr) {
|
||||
$includestr =~ s/-o $//;
|
||||
$includestr = "find . " . $includestr;
|
||||
$includestr = "find . -xdev " . $includestr;
|
||||
}
|
||||
|
||||
print "\nexcludestr=$excludestr\n\n includestr=$includestr\n\n"; # debug
|
||||
@ -337,7 +337,7 @@ sub process_request {
|
||||
unlink("$destdir/rootimg.sfs");
|
||||
if ($method =~ /cpio/) {
|
||||
if ( ! $exlistloc ) {
|
||||
$excludestr = "find . |cpio -H newc -o | gzip -c - > ../rootimg.gz";
|
||||
$excludestr = "find . -xdev |cpio -H newc -o | gzip -c - > ../rootimg.gz";
|
||||
}else {
|
||||
chdir("$rootimg_dir");
|
||||
system("$excludestr >> $xcat_packimg_tmpfile");
|
||||
|
Loading…
x
Reference in New Issue
Block a user