forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bindtomac-network-device-default-httpks.ks.in
43 lines (31 loc) · 1014 Bytes
/
bindtomac-network-device-default-httpks.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
42
43
#test name: bindtomac-network-device-default
#NOTE: as this test is a "-httpks" the kickstart should be really applied
# in initrafs (config files created by parse-kickstart). The parse-kickstart
# code actually ignores the command without --device specified
# (and no ksdevice set), so it will be applied in anaconda.
%ksappend repos/default.ks
network --bootproto=dhcp --ipv6=2001:cafe:cafe::1/64 --bindto=mac
bootloader --timeout=1
zerombr
clearpart --all
autopart
keyboard us
lang en
timezone America/New_York
rootpw qweqwe
shutdown
%packages
%end
%post --nochroot
@KSINCLUDE@ post-nochroot-lib-network.sh
check_gui_configurations @KSTEST_NETDEV1@
%end
%post
@KSINCLUDE@ post-lib-network.sh
check_device_config_value @KSTEST_NETDEV1@ IPV6ADDR 2001:cafe:cafe::1/64 ipv6 address1 2001:cafe:cafe::1/64
check_device_config_bound_to_mac @KSTEST_NETDEV1@
# No error was written to /root/RESULT file, everything is OK
if [[ ! -e /root/RESULT ]]; then
echo SUCCESS > /root/RESULT
fi
%end