[Ovirt-devel] [PATCH node-image] Add script to help automate adding/updating rpms in node

Perry Myers pmyers at redhat.com
Mon Mar 30 22:01:28 UTC 2009


Alan Pevec wrote:
>> + �livecd-rpms � � � � � � � � � � � � �\
> 
> hmm, one more script (smart move: remove 2, add 1 :)
> 
> would be nice if this worked:
>  -p "rpm --root .  -Uvh updated.rpm"
> but rpm complains:
>  rpm: arguments to --root (-r) must begin with a /
> 
> This works:
>  -p "rpm --root \$WDIR/ex  -Uvh updated.rpm"
> 
> but it's probably too fragile.
> 
> So in the end, maybe there's a place for livecd-rpms wrapper, just instead:
> 
> +    echo "Usage: $0 rpmdir"
>     echo "Usage: $0 list_of_RPMs"
> and
> +chroot . rpm -Uvh /tmp/rpms/*.rpm
> root --root $PWD "$@"
> 
> with this you don't need a temporary copy
> 
> I'll push all together if agreed.

Sounds good to me.  Whatever works easiest :)

Perry




More information about the ovirt-devel mailing list