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
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-09-14 19:00:43 +0000
3+++ debian/changelog 2010-09-15 15:45:59 +0000
4@@ -1,3 +1,9 @@
5+jasper-initramfs (0.21) maverick; urgency=low
6+
7+ * fixing swap file creation, as it can't use a sparse file (LP: #627201)
8+
9+ -- Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Wed, 15 Sep 2010 11:45:09 -0300
10+
11 jasper-initramfs (0.20) maverick; urgency=low
12
13 * re-enable swap file creation during first boot (LP: #627201)
14
15=== modified file 'scripts/local-bottom/jasper_setup'
16--- scripts/local-bottom/jasper_setup 2010-09-14 19:00:43 +0000
17+++ scripts/local-bottom/jasper_setup 2010-09-15 15:45:59 +0000
18@@ -44,7 +44,7 @@
19 fi
20 echo "setting up swap, this will take a moment ..."
21 if ! grep -q swap /root/etc/fstab; then
22- dd if=/dev/zero of=${DIR}/root/SWAP.swap bs=512 count=0 seek=1048576 >>$LOGFILE 2>&1
23+ dd if=/dev/zero of=${DIR}/root/SWAP.swap bs=1048576 count=512 >>$LOGFILE 2>&1
24 mkswap /root/SWAP.swap >>$LOGFILE 2>&1
25 echo "/SWAP.swap none swap sw 0 0" >>/root/etc/fstab
26 fi

Subscribers

People subscribed via source and target branches

to all changes: