On Wed, Mar 24, 2010 at 07:16:49PM -0300, Ricardo Marin Matinata wrote: > This fix enables the persistance of empty configuration files during > firstboot, in ovirt_store_config, so configuration files like ssh/ssl keys > that are dynamically generated to well known locations can be pre set for > persistance. > > Signed-off-by: Ricardo Marin Matinata <[email protected]> > --- > scripts/ovirt-functions | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions > index 482441a..cecb359 100644 > --- a/scripts/ovirt-functions > +++ b/scripts/ovirt-functions > @@ -496,7 +496,7 @@ ovirt_store_config() { > > if $persist_it; then > # skip if file does not exist or is empty > - if [ ! -s "${filename}" ]; then > + if [ ! -e "${filename}" ]; then > printf " Skipping, file '${filename}' does not exist or > is empty\n" > continue > fi > -- > 1.6.6.1 > > _______________________________________________ > Ovirt-devel mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/ovirt-devel
ACK - I'll push this upstream. Thank you. :) -- Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc. Delivering value year after year. Red Hat ranks #1 in value among software vendors. http://www.redhat.com/promo/vendor/
pgpLoh4W9NKAD.pgp
Description: PGP signature
_______________________________________________ Ovirt-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/ovirt-devel
