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

Reply via email to