forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbindtomac-onboot-activate-httpks.ks.in
55 lines (43 loc) · 1.52 KB
/
bindtomac-onboot-activate-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
44
45
46
47
48
49
50
51
52
53
54
55
#test name: bindtomac-onboot-activate-httpks
%ksappend repos/default.ks
network --device=@KSTEST_NETDEV2@ --bootproto=dhcp --no-activate --onboot=yes --bindto=mac
network --device=@KSTEST_NETDEV1@ --bootproto=dhcp --onboot=no --bindto=mac
network --device=@KSTEST_NETDEV3@ --bootproto=dhcp --activate --onboot=no --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
pass_autoconnections_info_to_chroot
check_gui_configurations @KSTEST_NETDEV1@ @KSTEST_NETDEV2@ @KSTEST_NETDEV3@
%end
%post
@KSINCLUDE@ post-lib-network.sh
check_device_config_value @KSTEST_NETDEV1@ ONBOOT no connection autoconnect false
check_device_config_value @KSTEST_NETDEV2@ ONBOOT yes connection autoconnect __NONE
check_device_config_value @KSTEST_NETDEV3@ ONBOOT no connection autoconnect false
detect_nm_has_autoconnections_off
nm_has_autoconnections_off=$?
if [[ $nm_has_autoconnections_off -eq 0 ]]; then
check_device_connected @KSTEST_NETDEV2@ no
else
# Ifcfg from initramfs is no longer blocking default autoconnection
check_device_connected @KSTEST_NETDEV2@ yes
fi
check_device_connected @KSTEST_NETDEV3@ yes
check_device_config_bound_to_mac @KSTEST_NETDEV1@
check_device_config_bound_to_mac @KSTEST_NETDEV2@
check_device_config_bound_to_mac @KSTEST_NETDEV3@
# No error was written to /root/RESULT file, everything is OK
if [[ ! -e /root/RESULT ]]; then
echo SUCCESS > /root/RESULT
fi
%end