- Add support for lvm (bnv#837595)
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=232
This commit is contained in:
parent
cf3506976f
commit
9c9bcc4217
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 29 21:36:08 CEST 2013 - ohering@suse.de
|
||||||
|
|
||||||
|
- Add support for lvm (bnv#837595)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 22 11:36:24 CEST 2013 - ohering@suse.de
|
Thu Aug 22 11:36:24 CEST 2013 - ohering@suse.de
|
||||||
|
|
||||||
|
@ -114,6 +114,12 @@ load_modules
|
|||||||
|
|
||||||
# from libguestfs-1.19.34/appliance/init:
|
# from libguestfs-1.19.34/appliance/init:
|
||||||
|
|
||||||
|
# Disk optimizations.
|
||||||
|
# Increase the SCSI timeout so we can read remote images.
|
||||||
|
for f in /sys/block/sd*/device/timeout; do if test -w $f ; then echo 300 > $f; fi; done
|
||||||
|
# https://access.redhat.com/site/solutions/5427
|
||||||
|
for f in /sys/block/{h,s,ub,v}d*/queue/scheduler; do if test -w $f ; then echo noop > $f; fi; done
|
||||||
|
|
||||||
# Scan for MDs.
|
# Scan for MDs.
|
||||||
mdadm -As --auto=yes --run
|
mdadm -As --auto=yes --run
|
||||||
|
|
||||||
@ -123,22 +129,21 @@ echo -n >> /etc/lvm/lvm.conf
|
|||||||
lvm vgscan --ignorelockingfailure
|
lvm vgscan --ignorelockingfailure
|
||||||
lvm vgchange -ay --ignorelockingfailure
|
lvm vgchange -ay --ignorelockingfailure
|
||||||
|
|
||||||
# Improve virtio-blk performance (RHBZ#509383).
|
|
||||||
for f in /sys/block/vd*/queue/rotational; do if test -f $f ; then echo 1 > $f; fi ; done
|
|
||||||
|
|
||||||
# These are useful when debugging.
|
# These are useful when debugging.
|
||||||
if grep -sq guestfs_verbose=1 /proc/cmdline; then
|
if grep -sq guestfs_verbose=1 /proc/cmdline; then
|
||||||
ls -lR /dev
|
ls -lR /dev
|
||||||
head -n 1234 \
|
head -n 1234 \
|
||||||
/proc/mounts \
|
/proc/mounts \
|
||||||
/proc/modules \
|
/proc/modules \
|
||||||
/proc/cpuinfo \
|
/proc/cpuinfo \
|
||||||
/proc/uptime \
|
/proc/uptime \
|
||||||
/proc/version \
|
/proc/version \
|
||||||
/proc/partitions
|
/proc/partitions
|
||||||
lvm pvs
|
for i in pvs vgs lvs
|
||||||
lvm vgs
|
do
|
||||||
lvm lvs
|
echo "# lvm $i:"
|
||||||
|
lvm $i
|
||||||
|
done
|
||||||
# ip a
|
# ip a
|
||||||
# ip r
|
# ip r
|
||||||
date
|
date
|
||||||
|
@ -44,6 +44,17 @@ do
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# copy needed rules
|
||||||
|
for rule in \
|
||||||
|
95-dm-notify.rules \
|
||||||
|
; do
|
||||||
|
if [ -f /lib/udev/rules.d/$rule ]; then
|
||||||
|
cp /lib/udev/rules.d/$rule $tmp_mnt/lib/udev/rules.d
|
||||||
|
elif [ -f /etc/udev/rules.d/$rule ]; then
|
||||||
|
cp /etc/udev/rules.d/$rule $tmp_mnt/etc/udev/rules.d
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Need to create the modprobe.conf file to force read-write mode
|
# Need to create the modprobe.conf file to force read-write mode
|
||||||
if modinfo -k $kernel_version ext4 | grep -E '^parm:[[:blank:]]+rw:'
|
if modinfo -k $kernel_version ext4 | grep -E '^parm:[[:blank:]]+rw:'
|
||||||
then
|
then
|
||||||
|
@ -667,6 +667,7 @@ bash -x \
|
|||||||
-i initramfs.${arch}.img \
|
-i initramfs.${arch}.img \
|
||||||
-b $PWD/mkinitrd/boot_tmp \
|
-b $PWD/mkinitrd/boot_tmp \
|
||||||
-m "$additional_modules" \
|
-m "$additional_modules" \
|
||||||
|
-f "lvm2 dm md network nfs" \
|
||||||
-B
|
-B
|
||||||
#
|
#
|
||||||
mkdir -vp $RPM_BUILD_ROOT%{_libdir}/guestfs
|
mkdir -vp $RPM_BUILD_ROOT%{_libdir}/guestfs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user