search for: mount_live

Displaying 12 results from an estimated 12 matches for "mount_live".

2009 Jul 10
0
[PATCH node] fix mount_live
use /dev/loop0 only when it really contains LiveCD ISO. mount_live should fail silently when LiveCD ISO is not available, which is the case on boot from HostVG/Root. Resolves: rhbz#508425 --- scripts/ovirt-functions | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) mode change 100755 => 100644 scripts/ovirt-functions diff --git a/scripts/ovirt-f...
2009 Jul 11
1
[PATCH node] fix mount_live again
fixes install from ISO --- scripts/ovirt-functions | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index e01ee0e..3f55656 100644 --- a/scripts/ovirt-functions +++ b/scripts/ovirt-functions @@ -249,11 +249,13 @@ mount_live() { return 0 fi local live_dev=/dev/live - if [ ! -e $live_dev ] && losetup /dev/loop0|grep -q '\.iso'; then - # PXE boot - live_dev=/dev/loop0 - else - return 1 + if [ ! -e $live_dev ] + if losetup /dev/loop0|grep -q '\.iso'...
2009 Nov 16
1
Refactored upgrade patch...
This patch includes feedback from apevec to remain backward compatible with the previous karg, ovirt_local_boot.
2009 Nov 13
1
[PATCH] Provides an explicit upgrade path for an installed node.
...start() { ovirt_store_config \ /etc/sysconfig/network-scripts/ifcfg-* \ $BONDING_MODCONF_FILE - if [ $local_boot = 1 ]; then + if [ $upgrade = 1 ]; then # local disk installation for managed mode mount_live ovirt-config-boot /live "$bootparams" diff --git a/scripts/ovirt-firstboot b/scripts/ovirt-firstboot index bdafb33..650dcf7 100755 --- a/scripts/ovirt-firstboot +++ b/scripts/ovirt-firstboot @@ -32,7 +32,7 @@ trap 'exit $?' 1 2 13 15 start () { - if ! is_fi...
2009 Nov 16
2
Resend...
Resending the refactored patch: I realized after I emailed it that it referenced the wrong bugzilla.
2010 Feb 10
1
RFC: First pass at making the node generic...
I'm looking for feedback on this first patch. The node has been pushed towards a more generic boot process. With this patch the node can now boot up and execute a few specifically-named scripts that reside in /etc/node.d/ at key points during the startup. After this goes upstream, the next step will be to define in more detail the remote interfaces for the "managed" runtime
2009 Jul 22
1
Updated patch...
This patch obsoletes the previous, renaming the karg to ssh_pwauth.
2009 Jul 22
1
Changes the ssh karg to ssh_pwauth
This patch obsoletes the previous one with feedback from pmyers at redhat.com.
2009 Jun 30
2
[PATCH node] Make all yes/no prompts consistent. rhbz#508778
...12 @@ continuing." else bootparams="${OVIRT_BOOTPARAMS}" fi - read -p "Do you wish to continue (Y/n)? " - r=$(echo $REPLY|tr '[[:lower:]]' '[[:upper:]]') - if [ "$r" == "Y" ]; then + if ask_yes_or_no; then mount_live \ - && /usr/sbin/ovirt-config-boot /live "${bootparams}" + && /usr/sbin/ovirt-config-boot /live "${bootparams}" rc=$? break - elif [ "$r" == "N" ]; then + else printf "\nExiting back to t...
2010 Feb 23
1
More complete patch...
This patch supercedes the previous one by moving the functionality for relocating files into the make system.
2009 Oct 22
0
[PATCH node] merge Root and /boot partitions
...iff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot index dd53988..9ab06bd 100755 --- a/scripts/ovirt-config-boot +++ b/scripts/ovirt-config-boot @@ -29,9 +29,9 @@ ovirt_boot_setup() { local disk2 local partN=-1 log "installing the image." - mount_boot + mount_liveos # check that /boot mounted ok and find partition number for GRUB - eval $(readlink -f /dev/disk/by-label/BOOT|awk {' + eval $(readlink -f /dev/disk/by-label/RootBackup|awk {' print "disk=" substr($1,1,length($1)-1); print "disk2=" substr($1...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...it to run the virsh console + os.system("echo \"anyterm ALL=NOPASSWD: /usr/bin/virsh console *\" >> /etc/sudoers") + +# mount livecd media +# e.g. CD /dev/sr0, USB /dev/sda1, +# PXE /dev/loop0 (loopback ISO) +# not available when booted from local disk installation +def mount_live(): + if os.path.ismount("/live"): + return + + live_dev="/dev/live" + if not os.path.exists(live_dev): + ret = os.system("losetup /dev/loop0|grep -q '\.iso'") + if ret == 0: + # PXE boot + live_dev="/dev/...