forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlang-2.ks.in
43 lines (34 loc) · 827 Bytes
/
lang-2.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
#version=DEVEL
url @KSTEST_URL@
install
network --bootproto=dhcp
bootloader --timeout=1
zerombr
clearpart --all --initlabel
autopart
keyboard ara
lang ar_EG.UTF-8
timezone America/New_York --utc
rootpw testcase
shutdown
%packages
@^xfce-desktop-environment
%end
%post
count=$(rpm -qa kacst\* | wc -l)
if [[ $count -lt 5 ]]; then
echo '*** kacst packages were not installed' >> /root/RESULT
exit 1
fi
LANG="ar_EG.UTF-8"
INSTLANG=`cat /etc/locale.conf | awk -F\" '{ print $2 }'`
if [[ "$INSTLANG" != "$LANG" ]]; then
echo '*** specified language was not set' >> /root/RESULT
fi
if ! grep -q "langpack_locales=$LANG" /etc/dnf/plugins/langpacks.conf; then
echo '*** /etc/dnf/plugins/langpacks.conf was not set up' >> /root/RESULT
fi
if [[ ! -e /root/RESULT ]]; then
echo SUCCESS > /root/RESULT
fi
%end