forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default-fstype.ks.in
38 lines (32 loc) · 893 Bytes
/
default-fstype.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
#version=DEVEL
url @KSTEST_URL@
install
network --bootproto=dhcp
bootloader --timeout=1
zerombr
clearpart --all --initlabel
part /boot --size=500 --label=boot
part pv.1 --fstype=lvmpv --size=4504
volgroup fedora pv.1
logvol swap --name=swap --vgname=fedora --size=500 --fstype=swap
logvol / --name=root --vgname=fedora --size=4000 --label=root
keyboard us
lang en_US.UTF-8
timezone America/New_York --utc
rootpw testcase
shutdown
%packages
%end
%post
root_fstype=$(blkid -o value -t LABEL=root -s TYPE)
if [ $root_fstype != "ext4" ]; then
echo "default fstype is incorrect (got $root_fstype; expected ext4)" >> /root/RESULT
fi
boot_fstype=$(blkid -o value -t LABEL=boot -s TYPE)
if [ $boot_fstype != "ext4" ]; then
echo "default boot fstype is incorrect (got $boot_fstype; expected ext4)" >> /root/RESULT
fi
if [ ! -e /root/RESULT ]; then
echo SUCCESS > /root/RESULT
fi
%end