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

Alan Pevec apevec at gmail.com
Mon Mar 30 22:00:56 UTC 2009


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




More information about the ovirt-devel mailing list