[Ovirt-devel] [PATCH] Allow persistance of empty config files in ovirt_store_config
Ricardo Marin Matinata
matinata at br.ibm.com
Wed Mar 24 22:16:49 UTC 2010
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 <matinata at br.ibm.com>
---
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
More information about the ovirt-devel
mailing list