~ubuntu-branches/ubuntu/maverick/user-setup/maverick

« back to all changes in this revision

Viewing changes to user-setup-apply

  • Committer: Dustin Kirkland
  • Date: 2010-08-24 18:25:31 UTC
  • Revision ID: kirkland@ubuntu.com-20100824182531-84i6y1w82hycmv92
user-setup-apply.py: when wiping the swap space, use a large (16M)
block size rather than the default (512-byte), to speed up the slow-but-
necessary operation, LP: #432422

Show diffs side-by-side

added added

removed removed

Lines of Context:
324
324
                while read name device source options; do
325
325
                        if echo "$options" | grep -q "swap"; then
326
326
                                if swapoff $device; then
327
 
                                        dd if=/dev/zero of=$device 2>/dev/null || true
 
327
                                        dd if=/dev/zero of=$device bs=16M 2>/dev/null || true
328
328
                                fi
329
329
                        fi
330
330
                done < $ROOT/etc/crypttab