[Ovirt-devel] [PATCH node] Bootup mounts the local log partition if it exists

Perry Myers pmyers at redhat.com
Wed Jan 14 22:24:04 UTC 2009


David Lutterkort wrote:
> On Wed, 2009-01-14 at 14:54 -0500, Perry Myers wrote:
>> We can do the following... in the Node kickstart %post we can edit the 
>> rc.sysinit script to (very early in script execution where it normally 
>> does the remount of all drives in /etc/fstab) mount specific Node 
>> partitions like /var/log and /data.
> 
> Why isn't it enough to put appropriate entries into /etc/fstab when the
> partitions are created and let rc.sysinit do its usual thing ? 
> 
> Of course, that requires that /etc/fstab is persisted across reboots,
> though that seems to be the only sensible thing to do anyway, i.e. we
> need an entry for /etc/fstab in /etc/statetab.d. From a look at
> rc.sysinit, this all seems to happen early enough, but it would require
> some testing to make sure ;)

We can persist /etc/fstab but the logic to mount the persistent config 
files is done in ovirt-early init script since it needs to bind mount the 
right files.  And this happens too late in init to catch all of the early 
boot log messages.

That make sense?

Perry




More information about the ovirt-devel mailing list