Displaying 3 results from an estimated 3 matches for "chkconfig_persist".
2009 Jun 04
1
[PATCH node] Hostname is now properly persisted between reboots. rhbz#504166
...l_storage_configured () {
+ if lvs HostVG/Config >/dev/null >&1; then
+ return 0
+ fi
+
+ return 1
+}
+
# perform automatic local disk installation
# when at least following boot parameters are present:
# for networking - OVIRT_BOOTIF, management NIC
@@ -624,4 +634,3 @@ chkconfig_persist() {
if [ "$(basename "$0")" = "ovirt-functions" ]; then
"$@"
fi
-
--
1.6.0.6
2009 Jun 08
1
Follow-on patch
This is a follow-up patch to the previous one already pushed for
#503993.
2009 Jun 30
2
[PATCH node] Make all yes/no prompts consistent. rhbz#508778
...is node (y/n)?"
if [ -d /dev/HostVG ]; then
log "Uninstalling node"
log "Detaching logging"
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index e938256..09ddf50 100755
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -627,6 +627,24 @@ chkconfig_persist() {
ovirt_store_config $to_persist
}
+# Asks a yes or no question. Accepts Y/N/A so users can abort.
+# RC=0 - Y/y entered
+# RC=1 - N/n entered
+# RC=2 - A/a entered
+ask_yes_or_no () {
+ local prompt=${1-"Do you wish to proceed (y/n)?"}
+
+ read -ep "${prompt} "...