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

Bryan Kearney
Fri, 16 Jan 2009 01:49:47 -0000

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
>
>  %post
ACK

-- bk