forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
btrfs-1.ks.in
48 lines (38 loc) · 991 Bytes
/
btrfs-1.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
url @KSTEST_URL@
install
network --bootproto=dhcp
bootloader --timeout=1
zerombr
clearpart --all
part --fstype=ext4 --size=500 /boot
part --fstype=swap --size=500 swap
part btrfs.10 --fstype="btrfs" --size=4400
btrfs none --label=fedora-btrfs btrfs.10
btrfs / --subvol --name=root fedora-btrfs
btrfs /home --subvol --name=home fedora-btrfs
keyboard us
lang en
timezone America/New_York
rootpw qweqwe
shutdown
%packages
@core
%end
%post
btrfs filesystem show fedora-btrfs
if [[ $? != 0 ]]; then
echo "*** btrfs volume 'fedora-btrfs' was not found" >> /root/RESULT
fi
grep "\s/\s" /etc/fstab | grep "subvol=root"
if [[ $? != 0 ]]; then
echo "*** root subvol is not mounted at /" >> /root/RESULT
fi
grep "\s/home\s" /etc/fstab | grep "subvol=home"
if [[ $? != 0 ]]; then
echo "*** home subvol is not mounted at /home" >> /root/RESULT
fi
# No error was written to /root/RESULT file, everything is OK
if [[ ! -e /root/RESULT ]]; then
echo SUCCESS > /root/RESULT
fi
%end