qubes-installer-qubes-os/anaconda/tests/kickstart_tests/tmpfs-fixed_size.ks
M. Vefa Bicakci 38f3e28d77
anaconda: Update to 23.19.10
Use the output of

  git diff --full-index --binary anaconda-22.20.13-1..anaconda-23.19.10-1

from anaconda's git repository and fix-up merge conflicts.
2016-04-10 00:00:00 -04:00

50 lines
1.1 KiB
Plaintext

url --url=http://dl.fedoraproject.org/pub/fedora/linux/development/$releasever/$basearch/os/
install
network --bootproto=dhcp
bootloader --timeout=1
zerombr
clearpart --all
part --fstype=ext4 --size=4400 --label=rootfs /
part --fstype=ext4 --size=500 /boot
part --fstype=swap --size=500 swap
part --fstype=tmpfs --size 5000 /tmp
keyboard us
lang en
timezone America/New_York
rootpw qweqwe
shutdown
%packages
@core
%end
%post
mount | grep -q "tmpfs on /tmp"
if [[ $? != 0 ]]; then
echo '*** tmpfs not mounted in /tmp' >> /root/RESULT
fi
mount | grep "tmpfs on /tmp" | grep -q "size=5120000k"
if [[ $? != 0 ]]; then
echo '*** tmpfs size is not 5000 MB' >> /root/RESULT
fi
cat /etc/fstab | grep -q "tmpfs"
if [[ $? != 0 ]]; then
echo '*** tmpfs is not present in fstab' >> /root/RESULT
fi
cat /etc/fstab | grep "tmpfs" | grep -q "size=5000m"
if [[ $? != 0 ]]; then
echo '*** tmpfs size is not 5000 MB in fstab' >> /root/RESULT
fi
# the installation was successfull if nothing bad happend till now
if [[ ! -e /root/RESULT ]]; then
echo SUCCESS > /root/RESULT
fi
%end