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

Increased swap space to handle imageunzipping larger images

parent 1a5a4888
......@@ -202,6 +202,22 @@ foreach my $spec (split(',', $xminfo{'disksizes'})) {
print Dumper(\%disksize);
# Increase swap space
if(! -e "/capture/bigswap"){
if(system("dd if=/dev/zero of=/capture/bigswap bs=1M count=15360")){
warn("Could not dd bigswap");
if(system("chmod 600 /capture/bigswap")){
warn("Could not chmod bigswap");
if(system("mkswap /capture/bigswap")){
warn("Could not mkswap bigswap");
if(system("swapon /capture/bigswap")){
warn("Could not swapon bigswap");
foreach my $physinfo (keys(%diskinfo)) {
my $spec = $diskinfo{$physinfo};
my $dev;
Supports Markdown
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