~ubuntu-branches/ubuntu/maverick/partman-md/maverick

« back to all changes in this revision

Viewing changes to init.d/md

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2010-04-26 14:51:29 UTC
  • Revision ID: james.westby@ubuntu.com-20100426145129-mme78iak076wyhw5
Tags: 49ubuntu1
* Only call NEW_LABEL on MD devices if they're empty, since with current
  parted this unconditionally clobbers the superblock (LP: #542210).
* Register partman-md/confirm_nooverwrite, associated with the
  partman-md/confirm template.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
                fi
54
54
        done
55
55
 
56
 
        # Check if the device is a software RAID device
57
 
        if [ -f device ]; then
 
56
        # Check if the device is a new software RAID device
 
57
        if [ -f device ] && [ -z "$partitions" ]; then
58
58
                NUMBER=$(sed -e 's,/dev/md/\?,,' device)
59
59
                if ! grep -q "^md$NUMBER :" /proc/mdstat; then
60
60
                        continue