forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
driverdisk-disk.ks.in
41 lines (33 loc) · 910 Bytes
/
driverdisk-disk.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
35
36
37
38
39
40
41
#version=DEVEL
url @KSTEST_URL@
install
network --bootproto=dhcp
keyboard us
lang en_US.UTF-8
timezone America/New_York --utc
rootpw testcase
shutdown
bootloader --timeout=1
zerombr
clearpart --all
autopart
driverdisk /dev/disk/by-label/TEST_DD
%packages
@core
%end
%post --nochroot
SYSROOT=${ANA_INSTALL_PATH:-/mnt/sysimage}
RESULTFILE=$SYSROOT/root/RESULT
fail() { echo "*** $*" >> $RESULTFILE; }
# check the installer environment
[ -f /lib/modules/`uname -r`/updates/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