Skip to content

Commit

Permalink
Add quotas to manual kickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
spartan782 authored Aug 21, 2019
1 parent 4d78e40 commit 6513bf8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ks/manual.ks
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,11 @@ case $(sudo virt-what) in
qemu) yum -y install qemu-guest-agent; systemctl enable qemu-guest-agent ;;
esac

/usr/bin/grep -E "\s/data\s" /etc/fstab > /dev/null
if [[ $? -eq 0 ]]; then
/usr/bin/sed -i '/\s\/data\s/ s|defaults|rw,relatime,seclabel,attr2,inode64,prjquota|g' /etc/fstab
else
/usr/bin/sed -i '/\s\/\s/ s|defaults|rw,relatime,seclabel,attr2,inode64,prjquota|g' /etc/fstab
fi

%end

0 comments on commit 6513bf8

Please sign in to comment.