search for: unmount_config

Displaying 10 results from an estimated 10 matches for "unmount_config".

Did you mean: mount_config
2010 Oct 27
0
[PATCH node] add password.py
...saltlen): + saltstr = saltstr + random.choice (string.letters + + string.digits + './') + return crypt.crypt (password, saltstr) + +def set_root_password(password): + user = self.__admin.initUser(root) + passwd = cryptPassword() + unmount_config("/etc/shadow") + user.set(passwd, password) + ovirt_store_config("/etc/shadow") + +def check_ssh_password_auth(self): + password_auth_status = augeas.Augeas("root=/") + password_auth_status.get("/files/etc/ssh/sshd_config/PasswordAuthentication")...
2010 Oct 27
0
[PATCH node] add uninstall module
...Uninstalling node") + log("Detaching logging") + # multipathd holds all mounts under /var in a private namespace + os.system("service multipathd stop") + os.system("rm -f /var/lib/multipath/bindings") + unmount_logging() + unmount_config("/etc/default/ovirt") + #get partition info + root2="" + rc = os.system("findfs LABEL=RootBackup 2>&1 >/dev/null") + if rc == 0: + root2 = "RootBackup" + rc = os.system("findfs LABEL=RootUpdate 2&gt...
2011 Aug 30
0
[PATCH node] don't trigger upgrade when local_boot_trigger is passed
...fi done ;; - upgrade* | ovirt_upgrade* | local_boot* | ovirt_local_boot*) + upgrade* | ovirt_upgrade* | local_boot | local_boot=* | ovirt_local_boot*) upgrade=1 if ! grep -q admin /etc/passwd; then unmount_config /etc/passwd /etc/shadow -- 1.7.6
2010 Apr 05
1
RESEND: [PATCH node 1/3] enables ability for a common shared root
...# - remove LVM volumes and groups wipe_lvm_on_disk() { - local dev=${1-$HOSTVGDRIVE} + local dev=${1-"$HOSTVGDRIVE"} unmount_logging local part_delim="p" if [[ "$dev" =~ "/dev/sd" ]]; then @@ -604,8 +622,8 @@ perform_partitioning() unmount_config /etc/default/ovirt log "Removing old LVM partitions" - wipe_lvm_on_disk $HOSTVGDRIVE - wipe_lvm_on_disk $ROOTDRIVE + wipe_lvm_on_disk "$HOSTVGDRIVE" + wipe_lvm_on_disk "$ROOTDRIVE" # begin critical section set -e @@ -635,62 +653,59 @@ per...
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
...install index 3b7b48d..b6675e7 100755 --- a/scripts/ovirt-config-uninstall +++ b/scripts/ovirt-config-uninstall @@ -37,27 +37,37 @@ if ask_yes_or_no "Do you wish to continue and uninstall this node ([Y]es/[N]o)?" rm -f /var/lib/multipath/bindings unmount_logging unmount_config /etc/default/ovirt + #get partition info + root2="" + if findfs LABEL=RootBackup 2>&1 >/dev/null; then + root2=RootBackup + elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then + root2=RootUpdate + elif findfs LABE...
2010 Mar 23
1
[PATCH node][RFC] Fix uninstall to detect and cleanup correct partitions
...install index 3b7b48d..b319abd 100755 --- a/scripts/ovirt-config-uninstall +++ b/scripts/ovirt-config-uninstall @@ -37,27 +37,38 @@ if ask_yes_or_no "Do you wish to continue and uninstall this node ([Y]es/[N]o)?" rm -f /var/lib/multipath/bindings unmount_logging unmount_config /etc/default/ovirt + #get partition info + local root2 + if findfs LABEL=RootBackup 2>&1 >/dev/null; then + root2=RootBackup + elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then + root2=RootUpdate + elif findfs LABEL=RootN...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
...install index 3b7b48d..b6675e7 100755 --- a/scripts/ovirt-config-uninstall +++ b/scripts/ovirt-config-uninstall @@ -37,27 +37,37 @@ if ask_yes_or_no "Do you wish to continue and uninstall this node ([Y]es/[N]o)?" rm -f /var/lib/multipath/bindings unmount_logging unmount_config /etc/default/ovirt + #get partition info + root2="" + if findfs LABEL=RootBackup 2>&1 >/dev/null; then + root2=RootBackup + elif findfs LABEL=RootUpdate 2>&1 >/dev/null; then + root2=RootUpdate + elif findfs LABE...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...tent config storage not available\n") + rc=2 + return rc + +def is_persisted(filename): + abspath = os.path.abspath(filename) + if os.path.exists("/config" + abspath): + return True + else: + return False + +# unmount bindmounted config files +# unmount_config /etc/config /etc/config2 ... +# +# Use before running commands which fail on bindmounted files. +# After the file is replaced, call ovirt_store_config /etc/config ... +# to bindmount the config file again. +# + +def check_bind_mount(config_file): + bind_mount_cmd = "grep -q \"%s ext4\&...
2009 Nov 04
1
[PATCH node] add ability to select separate disks for Root and HostVG in o-c-storage
...if [ -z "$HOSTVGDRIVE" ]; then printf "\nNo storage device selected.\n" return fi start_log - log "Starting partitioning of $DRIVE" + log "Starting partitioning of $ROOTDRIVE" log "Saving parameters" unmount_config /etc/default/ovirt @@ -326,40 +351,51 @@ perform_partitioning() # FIXME: save a backup copy, just in case? log "Wiping old boot sector" - dd if=/dev/zero of=$DRIVE bs=1024K count=1 - blockdev --rereadpt $DRIVE - partprobe -s $DRIVE + dd if=/dev/zero of=$ROOTDRIVE b...
2009 Dec 10
0
[PATCH node] Enables stateless iscsi remote boot
...[ -z "$BOOTDRIVE" && "$OVIRT_ISCSI_ENABLED" == "y" ]]; then + printf "\nNo storage device selected.\n" + return + fi start_log - log "Starting partitioning of $ROOTDRIVE" log "Saving parameters" unmount_config /etc/default/ovirt @@ -366,24 +392,36 @@ perform_partitioning() # begin critical section set -e - # FIXME: save a backup copy, just in case? - log "Wiping old boot sector" - dd if=/dev/zero of=$ROOTDRIVE bs=1024K count=1 - blockdev --rereadpt $ROOTDRIVE - partpr...