Alan Pevec
2009-Jan-15 14:16 UTC
[Ovirt-devel] [PATCH node-image] prepare for STATE_MOUNT in rc.sysinit
--- ovirt-node-image.ks | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/ovirt-node-image.ks b/ovirt-node-image.ks index cafbf34..84abeaa 100644 --- a/ovirt-node-image.ks +++ b/ovirt-node-image.ks @@ -14,6 +14,20 @@ rm -f /var/lib/rpm/__db* touch /.autorelabel +# prepare for STATE_MOUNT in rc.sysinit +augtool <<EOF +set /files/etc/sysconfig/readonly-root/TEMPORARY_STATE yes +set /files/etc/sysconfig/readonly-root/STATE_LABEL CONFIG +set /files/etc/sysconfig/readonly-root/STATE_MOUNT /config +save +EOF + +# prepare mount points for local storage +mkdir /boot +mkdir /config +mkdir /data +mkdir /liveos +echo "/dev/HostVG/Config /config ext3 defaults 0 0" >> /etc/fstab %end %post -- 1.6.0.6
Bryan Kearney
2009-Jan-16 01:49 UTC
[Ovirt-devel] [PATCH node-image] prepare for STATE_MOUNT in rc.sysinit
Alan Pevec wrote:> --- > ovirt-node-image.ks | 14 ++++++++++++++ > 1 files changed, 14 insertions(+), 0 deletions(-) > > diff --git a/ovirt-node-image.ks b/ovirt-node-image.ks > index cafbf34..84abeaa 100644 > --- a/ovirt-node-image.ks > +++ b/ovirt-node-image.ks > @@ -14,6 +14,20 @@ rm -f /var/lib/rpm/__db* > > touch /.autorelabel > > +# prepare for STATE_MOUNT in rc.sysinit > +augtool <<EOF > +set /files/etc/sysconfig/readonly-root/TEMPORARY_STATE yes > +set /files/etc/sysconfig/readonly-root/STATE_LABEL CONFIG > +set /files/etc/sysconfig/readonly-root/STATE_MOUNT /config > +save > +EOF > + > +# prepare mount points for local storage > +mkdir /boot > +mkdir /config > +mkdir /data > +mkdir /liveos > +echo "/dev/HostVG/Config /config ext3 defaults 0 0" >> /etc/fstab > %end > > %postACK -- bk