[PATCH] Add a script for listing the contents of an updates image

Martin Kolman mkolman at redhat.com
Thu Mar 13 14:49:52 UTC 2014


On Thu, 2014-03-13 at 15:21 +0100, Vratislav Podzimek wrote:
> On Thu, 2014-03-13 at 10:57 +0100, Martin Kolman wrote:
> > Like lsinitrd but for Anaconda updates images.
> > 
> > Signed-off-by: Martin Kolman <mkolman at redhat.com>
> > ---
> >  scripts/lsupdates | 5 +++++
> >  1 file changed, 5 insertions(+)
> >  create mode 100755 scripts/lsupdates
> > 
> > diff --git a/scripts/lsupdates b/scripts/lsupdates
> > new file mode 100755
> > index 0000000..3dc4a94
> > --- /dev/null
> > +++ b/scripts/lsupdates
> > @@ -0,0 +1,5 @@
> > +#!/bin/bash
> > +#
> > +# List the contents of an Anaconda updates image
> > +
> > +zcat $1 | cpio -c --list
> You should quote the variable ("$1") to prevent misinterpretation of
> multi-word file names. Otherwise this looks good to me.
> 
OK, fixing locally. :)



More information about the anaconda-patches mailing list