[Ovirt-devel] [PATCH node-image] prepare for STATE_MOUNT in rc.sysinit

Alan Pevec
Thu, 15 Jan 2009 14:16:55 -0000

---
 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