Commit 4a12180f authored by Srikanth Raju's avatar Srikanth Raju Committed by Leigh B Stoller
Browse files

Can tar in current dir and avoid tar warnings

parent 057205ef
......@@ -89,8 +89,10 @@ class EmulabExport
end
def gen_tar()
puts "Running: tar -cvzf emulab.tar.gz kernel initrd" +
" bootopts -C /tmp/ image 2>&1"
raise "Couldn't tar" unless
system("tar -cvzf -C " + @workdir + " emulab.tar.gz kernel initrd" +
system("tar -cvzf emulab.tar.gz kernel initrd" +
" bootopts -C /tmp/ image 2>&1")
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment