fix module loading, they have to be listed in a single line

include magic files for file

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=41
This commit is contained in:
Olaf Hering 2012-08-31 16:14:04 +00:00 committed by Git OBS Bridge
parent 7bb7bd89cf
commit 12d47b73e2
3 changed files with 22 additions and 11 deletions

View File

@ -1,12 +1,7 @@
#!/bin/bash
#%stage: block
#
#%modules: dm-mod
#%modules: virtio_blk
#%modules: virtio_console
#%modules: virtio_net
#%modules: virtio_pci
#%modules: virtio_scsi
#%modules: dm-mod virtio_blk virtio_console virtio_net virtio_pci virtio_scsi sg sd_mod sr_mod
#
#%programs: mdadm
#%programs: modprobe
@ -15,22 +10,25 @@
#%programs: ls
#%programs: cat
#%programs: ip
#%programs: lsmod
#%programs: date
#%programs: valgrind
#%programs: guestfsd
#
# Generated at build time:
#@GUESTFS_EXT_CMDS@
#
missing_commands="@GUESTFS_MISSING_CMDS@"
# Make the modules available now
# run_all.sh will load them after this script is sourced
load_modules
# from libguestfs-1.19.34/appliance/init:
# Scan for MDs.
mdadm -As --auto=yes --run
# Scan for LVM.
modprobe dm_mod ||:
lvm vgscan --ignorelockingfailure
lvm vgchange -ay --ignorelockingfailure
@ -46,7 +44,7 @@ if grep -sq guestfs_verbose=1 /proc/cmdline; then
lvm lvs
ip a
ip r
lsmod
cat /proc/modules
#hwclock -r
date
#ping -n -v -c 5 10.0.2.2

View File

@ -1,3 +1,13 @@
#!/bin/bash
#%stage: block
#
for f in /etc/magic /usr/share/misc/magic*
do
if test -e $f
then
mkdir -vp $tmp_mnt/${f%/*}
cp -av $f $tmp_mnt/$f
fi
done

View File

@ -73,6 +73,7 @@ BuildRequires: ntfs-3g
BuildRequires: rsync
BuildRequires: cryptsetup
BuildRequires: iproute2
BuildRequires: strace
%if %suse_version < 1210
# perl as included in openSuSE 11.4 has this, but an older version without html_charset
# Without the version the requires is ignored for some reason
@ -357,7 +358,9 @@ rm -rf mkinitrd
cp -av /lib/mkinitrd .
for bad in \
setup-dm.sh \
setup-storage.sh
setup-storage.sh \
boot-storage.sh \
;
do
rm mkinitrd/scripts/${bad}
done