forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathencrypt-device.ks.in
32 lines (28 loc) · 934 Bytes
/
encrypt-device.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
url @KSTEST_URL@
install
network --bootproto=dhcp
bootloader --timeout=1
zerombr
clearpart --all --initlabel
part pv.68 --asprimary --fstype="lvmpv" --ondisk=sda --size=7691
part /boot --asprimary --fstype="ext4" --ondisk=sda --size=500
volgroup vg01 --pesize=4096 pv.68
logvol / --fstype="ext4" --size=5000 --encrypted --name=root_lv --vgname=vg01 --passphrase=OntarioIsAProvince --label=root
logvol /var --fstype="ext4" --size=1000 --name=var_lv --vgname=vg01
logvol swap --fstype="swap" --size=1024 --name=swap_lv --vgname=vg01
logvol /home --fstype="ext4" --grow --size=1 --name=home_lv --vgname=vg01
keyboard us
lang en_US.UTF-8
timezone America/New_York --utc
rootpw testcase
shutdown
%packages --default
%end
%post
root_lv_type=$(blkid -ovalue -sTYPE /dev/mapper/vg01-root_lv)
if [ "$root_lv_type" != "crypto_LUKS" ]; then
echo "root LV is not encrypted" > /home/RESULT
else
echo SUCCESS > /home/RESULT
fi
%end