Reactivate swap file generation by Jasper

Bug #627201 reported by Ricardo Salveti
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jasper-initramfs (Ubuntu)
Fix Released
Undecided
Ricardo Salveti

Bug Description

Previously jasper was creating a swap file during the first pre-installed omap image, but got disabled by bug 605739.

As this bug is currently fixed, we should reactivate the swap file creation at Jasper so it can be used by Beagleboard and Panda.

Tags: armel

Related branches

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Proposed fix to re-enable swapfile generation.

Using the same code as before, as we're unable to use a sparse file for swap (swapon: Skipping file /SWAP.swap - it appears to have holes).

The bad thing is that the first boot now takes more 3 minutes to finish :-(

As this change is important for all omap related boards (as we're still using ES1 for OMAP 4), it'd be good to push it and write an exception for Beta release, otherwise none of the Omap images will be ready for normal usage. What do you think Oliver?

For the final release we could study other possibilities to have a swap file and still have a fast installer (maybe creating it while generating the image).

Changed in jasper-initramfs (Ubuntu):
assignee: nobody → Ricardo Salveti (rsalveti)
status: New → In Progress
Revision history for this message
Oliver Grawert (ogra) wrote :

one reason to disable swap file generation beyond the kernel issues was that i wanted us to find a better place and name for the file, i'm thinking /var/cache/ would be a better place, i have no idea about a better name yet (though all capitalized looks definitely odd)

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

For me both the file name and place seems fine. Easy to understand and it's not located at a place where the user can delete by mistake.

Anyway, I think we could use this way for now at least and change for a better name later.

Revision history for this message
Oliver Grawert (ogra) wrote :

not sure why the changelog entry did not close this bug, fix is uploaded anyway

Changed in jasper-initramfs (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Oliver, this still not fixed as the latest commit that activated swap file creation is creating a sparse file, invalid for swap.

Please check http://bazaar.launchpad.net/~rsalveti/ubuntu/maverick/jasper-initramfs/swap-file-fix-627201/revision/20 for the fix.

Changed in jasper-initramfs (Ubuntu):
status: Fix Released → In Progress
Revision history for this message
Ricardo Salveti (rsalveti) wrote :
Changed in jasper-initramfs (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.