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:
parent
7bb7bd89cf
commit
12d47b73e2
@ -1,12 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#%stage: block
|
#%stage: block
|
||||||
#
|
#
|
||||||
#%modules: dm-mod
|
#%modules: dm-mod virtio_blk virtio_console virtio_net virtio_pci virtio_scsi sg sd_mod sr_mod
|
||||||
#%modules: virtio_blk
|
|
||||||
#%modules: virtio_console
|
|
||||||
#%modules: virtio_net
|
|
||||||
#%modules: virtio_pci
|
|
||||||
#%modules: virtio_scsi
|
|
||||||
#
|
#
|
||||||
#%programs: mdadm
|
#%programs: mdadm
|
||||||
#%programs: modprobe
|
#%programs: modprobe
|
||||||
@ -15,22 +10,25 @@
|
|||||||
#%programs: ls
|
#%programs: ls
|
||||||
#%programs: cat
|
#%programs: cat
|
||||||
#%programs: ip
|
#%programs: ip
|
||||||
#%programs: lsmod
|
|
||||||
#%programs: date
|
#%programs: date
|
||||||
|
#%programs: valgrind
|
||||||
#%programs: guestfsd
|
#%programs: guestfsd
|
||||||
#
|
#
|
||||||
|
# Generated at build time:
|
||||||
#@GUESTFS_EXT_CMDS@
|
#@GUESTFS_EXT_CMDS@
|
||||||
#
|
#
|
||||||
missing_commands="@GUESTFS_MISSING_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:
|
# from libguestfs-1.19.34/appliance/init:
|
||||||
|
|
||||||
# Scan for MDs.
|
# Scan for MDs.
|
||||||
mdadm -As --auto=yes --run
|
mdadm -As --auto=yes --run
|
||||||
|
|
||||||
# Scan for LVM.
|
# Scan for LVM.
|
||||||
modprobe dm_mod ||:
|
|
||||||
|
|
||||||
lvm vgscan --ignorelockingfailure
|
lvm vgscan --ignorelockingfailure
|
||||||
lvm vgchange -ay --ignorelockingfailure
|
lvm vgchange -ay --ignorelockingfailure
|
||||||
|
|
||||||
@ -46,7 +44,7 @@ if grep -sq guestfs_verbose=1 /proc/cmdline; then
|
|||||||
lvm lvs
|
lvm lvs
|
||||||
ip a
|
ip a
|
||||||
ip r
|
ip r
|
||||||
lsmod
|
cat /proc/modules
|
||||||
#hwclock -r
|
#hwclock -r
|
||||||
date
|
date
|
||||||
#ping -n -v -c 5 10.0.2.2
|
#ping -n -v -c 5 10.0.2.2
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#%stage: block
|
#%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
|
||||||
|
|
||||||
|
@ -73,6 +73,7 @@ BuildRequires: ntfs-3g
|
|||||||
BuildRequires: rsync
|
BuildRequires: rsync
|
||||||
BuildRequires: cryptsetup
|
BuildRequires: cryptsetup
|
||||||
BuildRequires: iproute2
|
BuildRequires: iproute2
|
||||||
|
BuildRequires: strace
|
||||||
%if %suse_version < 1210
|
%if %suse_version < 1210
|
||||||
# perl as included in openSuSE 11.4 has this, but an older version without html_charset
|
# 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
|
# Without the version the requires is ignored for some reason
|
||||||
@ -357,7 +358,9 @@ rm -rf mkinitrd
|
|||||||
cp -av /lib/mkinitrd .
|
cp -av /lib/mkinitrd .
|
||||||
for bad in \
|
for bad in \
|
||||||
setup-dm.sh \
|
setup-dm.sh \
|
||||||
setup-storage.sh
|
setup-storage.sh \
|
||||||
|
boot-storage.sh \
|
||||||
|
;
|
||||||
do
|
do
|
||||||
rm mkinitrd/scripts/${bad}
|
rm mkinitrd/scripts/${bad}
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user