Skip to content

Commit 536be49

Browse files
lpancescukbsingh
authored andcommitted
Back to xfs (#145)
* Use xfs instead of ext4 for CentOS 7 People have complained that libaio requires xfs. * Don't remove e2fstools and btrfstools from c7 * c7: use dd instead of fallocate to create the swap file
1 parent 214757f commit 536be49

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

vagrant/centos7.ks

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services --enabled=vmtoolsd
1616
bootloader --timeout=1 --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop"
1717
zerombr
1818
clearpart --all --drives=vda
19-
part / --fstype=ext4 --asprimary --size=1024 --grow --ondisk=vda
19+
part / --fstype=xfs --asprimary --size=1024 --grow --ondisk=vda
2020

2121
user --name=vagrant --password=vagrant
2222

@@ -34,8 +34,6 @@ chrony
3434
yum-utils
3535
hyperv-daemons
3636
open-vm-tools
37-
-e2fsprogs
38-
-btrfs-progs
3937
# Vagrant boxes aren't normally visible, no need for Plymouth
4038
-plymouth
4139
# Microcode updates cannot work in a VM
@@ -76,9 +74,8 @@ open-vm-tools
7674
#%end
7775

7876
%post
79-
80-
# configure swap to a file
81-
fallocate -l 2G /swapfile
77+
# configure swap to a file (fallocate doesn't work with c7 xfs)
78+
dd if=/dev/zero of=/swapfile bs=1M count=2048
8279
chmod 600 /swapfile
8380
mkswap /swapfile
8481
echo "/swapfile none swap defaults 0 0" >> /etc/fstab

0 commit comments

Comments
 (0)