Merge lp:~rsalveti/ubuntu/maverick/jasper-initramfs/swap-file-fix-627201 into lp:ubuntu/maverick/jasper-initramfs

Proposed by Ricardo Salveti
Status: Needs review
Proposed branch: lp:~rsalveti/ubuntu/maverick/jasper-initramfs/swap-file-fix-627201
Merge into: lp:ubuntu/maverick/jasper-initramfs
Diff against target: 26 lines (+7/-1)
2 files modified
debian/changelog (+6/-0)
scripts/local-bottom/jasper_setup (+1/-1)
To merge this branch: bzr merge lp:~rsalveti/ubuntu/maverick/jasper-initramfs/swap-file-fix-627201
Reviewer Review Type Date Requested Status
Oliver Grawert Pending
Review via email: mp+34153@code.launchpad.net

Description of the change

Re-enabling 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.

This change is important for all omap related boards (as we're still using ES1 for OMAP 4).

To post a comment you must log in.
15. By Ricardo Salveti

Add correct mem argument for Panda ES2 (for 1gb) (LP: #629269)

16. By Oliver Grawert

drop the hack we needed with the beta kernel package, usb0 comes up fine
now and can be handled by NetworkManager again.

17. By Oliver Grawert

only use 768M on the panda yet, until bug 633227 is fixed

18. By Oliver Grawert

the second mem= arg needs an M too in the value (blind me, gah)

19. By Oliver Grawert

* re-enable swap file creation during first boot (LP: #627201)
* redirect output of mount calls in jasper_growroot to logfile
* change text about resizing time, it is a lot faster than 10min nowadays
* add more info to swap creation text

20. By Ricardo Salveti

fixing swap file creation, as it can't use a sparse file (LP: #627201)

Unmerged revisions

20. By Ricardo Salveti

fixing swap file creation, as it can't use a sparse file (LP: #627201)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2010-09-14 19:00:43 +0000
+++ debian/changelog 2010-09-15 15:45:59 +0000
@@ -1,3 +1,9 @@
1jasper-initramfs (0.21) maverick; urgency=low
2
3 * fixing swap file creation, as it can't use a sparse file (LP: #627201)
4
5 -- Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Wed, 15 Sep 2010 11:45:09 -0300
6
1jasper-initramfs (0.20) maverick; urgency=low7jasper-initramfs (0.20) maverick; urgency=low
28
3 * re-enable swap file creation during first boot (LP: #627201)9 * re-enable swap file creation during first boot (LP: #627201)
410
=== modified file 'scripts/local-bottom/jasper_setup'
--- scripts/local-bottom/jasper_setup 2010-09-14 19:00:43 +0000
+++ scripts/local-bottom/jasper_setup 2010-09-15 15:45:59 +0000
@@ -44,7 +44,7 @@
44fi44fi
45echo "setting up swap, this will take a moment ..."45echo "setting up swap, this will take a moment ..."
46if ! grep -q swap /root/etc/fstab; then46if ! grep -q swap /root/etc/fstab; then
47 dd if=/dev/zero of=${DIR}/root/SWAP.swap bs=512 count=0 seek=1048576 >>$LOGFILE 2>&147 dd if=/dev/zero of=${DIR}/root/SWAP.swap bs=1048576 count=512 >>$LOGFILE 2>&1
48 mkswap /root/SWAP.swap >>$LOGFILE 2>&148 mkswap /root/SWAP.swap >>$LOGFILE 2>&1
49 echo "/SWAP.swap none swap sw 0 0" >>/root/etc/fstab49 echo "/SWAP.swap none swap sw 0 0" >>/root/etc/fstab
50fi50fi

Subscribers

People subscribed via source and target branches

to all changes: