Displaying 7 results from an estimated 7 matches for "root_update_dev".
2010 Mar 23
1
[PATCH node][RFC] Remove dependencies on /dev/disk/by-label entries
...ount LABEL=Root /boot
}
# stop any service which keeps /var/log busy
# keep the list of services
@@ -709,12 +709,14 @@ lvremove() {
# cleanup before reboot
reboot() {
cd /
- # setup new Root if update is prepared
- if [ -e "/dev/disk/by-label/RootUpdate" ]; then
- root_update_dev=$(readlink -f /dev/disk/by-label/RootUpdate)
- root_dev=$(readlink -f /dev/disk/by-label/Root)
- e2label $root_dev RootBackup
- e2label $root_update_dev Root
+ if [ "$OVIRT_ISCSI_ENABLED" = "yes" ]; then
+ # setup new Root if update is prepared
+...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
Previous implementation had staticly defined partitions to remove.
This would break in the case of split Root and HostVG devices.
Signed-off-by: Mike Burns <mburns at redhat.com>
---
scripts/ovirt-config-boot | 11 +--------
scripts/ovirt-config-uninstall | 48 ++++++++++++++++++++++++---------------
scripts/ovirt-functions | 33 +++++++++++++++++++++++++++
3 files
2010 Apr 01
2
[PATCH node 1/3] Enables ability to have a common shared root
---
scripts/ovirt-config-boot | 13 +++++++-
scripts/ovirt-config-storage | 73 +++++++++++++++++++++++++----------------
2 files changed, 56 insertions(+), 30 deletions(-)
diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot
index d545878..8cc127b 100755
--- a/scripts/ovirt-config-boot
+++ b/scripts/ovirt-config-boot
@@ -29,6 +29,12 @@ ovirt_boot_setup() {
local disk2
2009 Sep 30
1
[PATCH node] split root filesystems out of HostVG and onto their own partitions
...s
@@ -625,9 +625,11 @@ lvremove() {
reboot() {
cd /
# setup new Root if update is prepared
- if [ -e /dev/HostVG/RootUpdate ]; then
- lvrename HostVG Root RootBackup
- lvrename HostVG RootUpdate Root
+ if [ -e "/dev/disk/by-label/RootUpdate" ]; then
+ root_update_dev=$(readlink -f /dev/disk/by-label/RootUpdate)
+ root_dev=$(readlink -f /dev/disk/by-label/Root)
+ e2label $root_dev RootBackup
+ e2label $root_update_dev Root
fi
# run post-install hooks
# e.g. to avoid reboot loops using Cobbler PXE only once
--
1.6.2.5
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
...f $vg
+ vgremove -f "$vg"
}
# find_srv SERVICE PROTO
@@ -719,10 +719,10 @@ reboot() {
if [ "$OVIRT_ISCSI_ENABLED" = "yes" ]; then
# setup new Root if update is prepared
if findfs LABEL=RootUpdate 2>&1 >/dev/null; then
- root_update_dev=$(findfs LABEL=RootUpdate 2>/dev/null)
- root_dev=$(findfs LABEL=Root 2>/dev/null)
- e2label $root_dev RootBackup
- e2label $root_update_dev Root
+ root_update_dev="$(findfs LABEL=RootUpdate 2>/dev/null)"
+ root_dev="$(f...
2009 Sep 30
0
[PATCH node] RESEND: split root file systems out of HostVG onto separate partitions
...s
@@ -625,9 +625,11 @@ lvremove() {
reboot() {
cd /
# setup new Root if update is prepared
- if [ -e /dev/HostVG/RootUpdate ]; then
- lvrename HostVG Root RootBackup
- lvrename HostVG RootUpdate Root
+ if [ -e "/dev/disk/by-label/RootUpdate" ]; then
+ root_update_dev=$(readlink -f /dev/disk/by-label/RootUpdate)
+ root_dev=$(readlink -f /dev/disk/by-label/Root)
+ e2label $root_dev RootBackup
+ e2label $root_update_dev Root
fi
# run post-install hooks
# e.g. to avoid reboot loops using Cobbler PXE only once
--
1.6.2.5
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...+
+# reboot wrapper
+# cleanup before reboot
+def reboot():
+ if not OVIRT_VARS.has_key("$OVIRT_ISCSI_ENABLED"):
+ # setup new Root if update is prepared
+ ret = os.system("findfs LABEL=RootUpdate >/dev/null 2>&1")
+ if ret == 0:
+ root_update_dev_lookup = subprocess.Popen("findfs LABEL=RootUpdate >/dev/null 2>&1", shell=True, stdout=PIPE, stderr=STDOUT)
+ root_update_dev = root_update_dev_lookup.stdout.read()
+ root_dev_lookup = subprocess.Popen("findfs LABEL=Root >/dev/null 2>&1"...