[Ovirt-devel] [PATCH node] update method used to determine boot partition for install

Alan Pevec apevec at gmail.com
Fri Jul 31 19:49:28 UTC 2009


On Fri, Jul 31, 2009 at 5:12 PM, Joey Boggs <jboggs at redhat.com> wrote:

> This will facilitate the switch to readonly rootfs. The current method will
> not work when symlinking /etc/mtab to /proc/mounts as the udev label /BOOT
> is used rather than /dev/sda1 or similar. The same output is generated and
> has been verified to install correctly.
>

We need this symlink even if /etc/mtab is listed in /etc/rwtab ?

    # check that /boot mounted ok and find partition number for GRUB
> -    eval $(mount|awk '$3 == "/boot" {
>
+    eval $(readlink -f /dev/disk/by-label/BOOT|awk {'


This wouldn't check that /boot actually mounted successfully.

-        print "disk=" substr($1,1,length($1)-1);
-        print "disk2=" substr($1,1,length($1)-2);
-        partN=substr($1,length($1),1); partN--;
-        print "partN=" partN;
-    }')
+    print "disk=" substr($1,1,length($1)-1);
+    print "disk2=" substr($1,1,length($1)-2);
+    partN=substr($1,length($1),1); partN--;
+    print "partN=" partN;
+    '})

This whitespace only change obscures the real change, please put in a
separate patch, but IMHO fixing indentation is not need here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090731/e6659397/attachment.htm>


More information about the ovirt-devel mailing list