Hi everyone,
Please find attached a small patch that will create /data/swapfile on
first boot.
If you don't want a swapfile, just create an empty /data/swapfile.
Pros:
* The swap file can be removed from the rootfs, which makes that
significantly smaller and faster to flash.
* Once created, the swap file persists updates and does not need to be
recreated.
Cons:
* Can't think of any.
Details:
* The patch should be applied to git://phablet.ubuntu.com/ubuntu/uchroot.
* Creates /data/swapfile, if it does not exist yet.
* Runs swapon, if the file exists and is not empty.
Hope this patch is acceptable and can be included for everyone.