-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathdriverdisk-disk-kargs.ks.in
34 lines (27 loc) · 1.16 KB
/
driverdisk-disk-kargs.ks.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#version=DEVEL
%ksappend repos/default.ks
%ksappend common/common_no_payload.ks
%ksappend payload/default_packages.ks
%post --nochroot
SYSROOT=/mnt/sysroot
RESULTFILE=$SYSROOT/root/RESULT
fail() { echo "*** $*" >> $RESULTFILE; }
# Module version folder is created by the RPM with driver disk. The RPM is
# created by the script in lib/mkdud.py. The kernel version is 3.0.0 if
# version parameter is not explicitly set. Because the tests are run on a
# boot.iso, we don't know which kernel version is there in time of the script
# execution.
# TODO: This can be improved by grabbing logs from Lorax when building this iso
# or by running the boot.iso in some pre-testing phase.
# check the installer environment
[ -f /usr/lib/modules/3.0.0/extra/fake-dd.ko ] || fail "kmod not loaded"
[ -f /usr/bin/fake-dd-bin ] || fail "installer-enhancement not loaded"
# check the installed system
[ -f $SYSROOT/root/fake-dd-2.ko ] || fail "kmod rpm not installed"
[ ! -f $SYSROOT/usr/bin/fake-dd-bin ] || \
fail "installer-enhancement package installed to target system"
# write successful result if nothing failed
if [[ ! -e $RESULTFILE ]]; then
echo SUCCESS > $RESULTFILE
fi
%end