Mike Burns
2010-Mar-23 19:47 UTC
[Ovirt-devel] [PATCH] Remove initrd patching from oc-boot
Dracut includes what was being patched in Signed-off-by: Mike Burns <mburns at redhat.com> --- scripts/ovirt-config-boot | 47 --------------------------------------------- 1 files changed, 0 insertions(+), 47 deletions(-) diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot index d13dad2..28d1572 100755 --- a/scripts/ovirt-config-boot +++ b/scripts/ovirt-config-boot @@ -143,53 +143,6 @@ ovirt_boot_setup() { fi fi - # append LVM support to the livecd initramfs - tmpdir=$(mktemp -d) - cd $tmpdir - gzip -dc $live/$syslinux/initrd0.img | - cpio -id init sbin/real-init - init_script=init - if [ -e sbin/real-init ]; then - # Fedora 10 mkliveinitrd - init_script=sbin/real-init - fi - sed -i '/^\/sbin\/udev.*trigger/ a \ -echo SCSI wait for scans\ -/sbin/modprobe scsi_wait_scan\ -/sbin/modprobe -r scsi_wait_scan\ -set +e\ -while true; do\ - echo Scanning logical volumes\ - lvm vgscan --ignorelockingfailure\ - echo Activating logical volumes\ - if lvm vgchange -ay --ignorelockingfailure HostVG; then\ - break\ - fi\ - sleep 1\ -done\ -set -e\ -' $init_script - # fix emergency shell - sed -i 's/^ bash$/ bash < \/dev\/console/' $init_script - mkdir -p bin - bit- if [ -e /lib64 ]; then - bit=64 - fi - mkdir -p lib$bit - if [ -e /sbin/lvm.static ]; then - cp /sbin/lvm.static bin/lvm - else - cp /sbin/lvm bin - # lvm is not static in Fedora - cp /lib$bit/libreadline.so.5 /lib$bit/libncurses.so.5 lib$bit - fi - - find $init_script bin/lvm lib$bit -type f | - cpio -H newc --quiet -o | - gzip -9 | - cat $live/$syslinux/initrd0.img - > $initrd_dest/initrd0.img - version=$(rpm -q --qf '%{version}' ovirt-node) release=$(rpm -q --qf '%{release}' ovirt-node) # reorder tty0 to allow both serial and phys console after installation -- 1.6.6.1
Mike Burns
2010-Mar-23 20:05 UTC
[Ovirt-devel] [PATCH] Remove initrd patching from oc-boot
On Tue, 2010-03-23 at 15:47 -0400, Mike Burns wrote:> Dracut includes what was being patched inSorry didn't finish writing this commit message. With dracut, patching of initrd is not needed.> > Signed-off-by: Mike Burns <mburns at redhat.com> > --- > scripts/ovirt-config-boot | 47 --------------------------------------------- > 1 files changed, 0 insertions(+), 47 deletions(-) > > diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot > index d13dad2..28d1572 100755 > --- a/scripts/ovirt-config-boot > +++ b/scripts/ovirt-config-boot > @@ -143,53 +143,6 @@ ovirt_boot_setup() { > fi > fi > > - # append LVM support to the livecd initramfs > - tmpdir=$(mktemp -d) > - cd $tmpdir > - gzip -dc $live/$syslinux/initrd0.img | > - cpio -id init sbin/real-init > - init_script=init > - if [ -e sbin/real-init ]; then > - # Fedora 10 mkliveinitrd > - init_script=sbin/real-init > - fi > - sed -i '/^\/sbin\/udev.*trigger/ a \ > -echo SCSI wait for scans\ > -/sbin/modprobe scsi_wait_scan\ > -/sbin/modprobe -r scsi_wait_scan\ > -set +e\ > -while true; do\ > - echo Scanning logical volumes\ > - lvm vgscan --ignorelockingfailure\ > - echo Activating logical volumes\ > - if lvm vgchange -ay --ignorelockingfailure HostVG; then\ > - break\ > - fi\ > - sleep 1\ > -done\ > -set -e\ > -' $init_script > - # fix emergency shell > - sed -i 's/^ bash$/ bash < \/dev\/console/' $init_script > - mkdir -p bin > - bit> - if [ -e /lib64 ]; then > - bit=64 > - fi > - mkdir -p lib$bit > - if [ -e /sbin/lvm.static ]; then > - cp /sbin/lvm.static bin/lvm > - else > - cp /sbin/lvm bin > - # lvm is not static in Fedora > - cp /lib$bit/libreadline.so.5 /lib$bit/libncurses.so.5 lib$bit > - fi > - > - find $init_script bin/lvm lib$bit -type f | > - cpio -H newc --quiet -o | > - gzip -9 | > - cat $live/$syslinux/initrd0.img - > $initrd_dest/initrd0.img > - > version=$(rpm -q --qf '%{version}' ovirt-node) > release=$(rpm -q --qf '%{release}' ovirt-node) > # reorder tty0 to allow both serial and phys console after installation
Joey Boggs
2010-Mar-24 15:10 UTC
[Ovirt-devel] [PATCH] Remove initrd patching from oc-boot
On 03/23/2010 03:47 PM, Mike Burns wrote:> Dracut includes what was being patched in > > Signed-off-by: Mike Burns<mburns at redhat.com> > --- > scripts/ovirt-config-boot | 47 --------------------------------------------- > 1 files changed, 0 insertions(+), 47 deletions(-) > > diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot > index d13dad2..28d1572 100755 > --- a/scripts/ovirt-config-boot > +++ b/scripts/ovirt-config-boot > @@ -143,53 +143,6 @@ ovirt_boot_setup() { > fi > fi > > - # append LVM support to the livecd initramfs > - tmpdir=$(mktemp -d) > - cd $tmpdir > - gzip -dc $live/$syslinux/initrd0.img | > - cpio -id init sbin/real-init > - init_script=init > - if [ -e sbin/real-init ]; then > - # Fedora 10 mkliveinitrd > - init_script=sbin/real-init > - fi > - sed -i '/^\/sbin\/udev.*trigger/ a \ > -echo SCSI wait for scans\ > -/sbin/modprobe scsi_wait_scan\ > -/sbin/modprobe -r scsi_wait_scan\ > -set +e\ > -while true; do\ > - echo Scanning logical volumes\ > - lvm vgscan --ignorelockingfailure\ > - echo Activating logical volumes\ > - if lvm vgchange -ay --ignorelockingfailure HostVG; then\ > - break\ > - fi\ > - sleep 1\ > -done\ > -set -e\ > -' $init_script > - # fix emergency shell > - sed -i 's/^ bash$/ bash< \/dev\/console/' $init_script > - mkdir -p bin > - bit> - if [ -e /lib64 ]; then > - bit=64 > - fi > - mkdir -p lib$bit > - if [ -e /sbin/lvm.static ]; then > - cp /sbin/lvm.static bin/lvm > - else > - cp /sbin/lvm bin > - # lvm is not static in Fedora > - cp /lib$bit/libreadline.so.5 /lib$bit/libncurses.so.5 lib$bit > - fi > - > - find $init_script bin/lvm lib$bit -type f | > - cpio -H newc --quiet -o | > - gzip -9 | > - cat $live/$syslinux/initrd0.img -> $initrd_dest/initrd0.img > - > version=$(rpm -q --qf '%{version}' ovirt-node) > release=$(rpm -q --qf '%{release}' ovirt-node) > # reorder tty0 to allow both serial and phys console after installation >ACK
Possibly Parallel Threads
- [PATCH node] adjust init script patching for local boot on F11
- [PATCH node] iscsi remote root basework This lays most of the groundwork for iscsi installation and configuration. At this time configuring iscsi is disabled due to multiple issues with dependent pieces.
- Adding handling for Multipath storage devices
- [PATCH node 1/3] Enables ability to have a common shared root
- [PATCH node] merge Root and /boot partitions