Insert a few blank lines for readability
authorSebastian Pipping <sebastian@pipping.org>
Mon, 31 Jan 2011 11:42:40 +0000 (12:42 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 31 Jan 2011 11:47:35 +0000 (12:47 +0100)
defaults/initrd.scripts

index 30d1a98f6def2eb3c09671e13bdf669a9e21bab9..5b88b7564690aa3654139a425bc6afe995d4abe9 100755 (executable)
@@ -641,10 +641,13 @@ startVolumes() {
 
                        # This is needed for /bin/lvm to accept the following logic
                        lvm_commands="#! /bin/lvm"
+
                        # If there is a cahe, update it. Unbreak at least dmcrypt
                        [ -d /etc/lvm/cache ] && lvm_commands="$lvm_commands \nvgscan"
+
                        # To activate volumegroups on all devices in the cache
                        lvm_commands="$lvm_commands \nvgchange -ay --sysinit"
+
                        # And finally execute it all (/proc/... needed if lvm is compiled without readline)
                        good_msg "Scanning for and activating Volume Groups"
                        printf "%b\n" "$lvm_commands" | /bin/lvm /proc/self/fd/0