-
-
Save omaciel/61b4849dd5c999967225 to your computer and use it in GitHub Desktop.
Tweaks Blades to have more disk space and other changes needed to install products
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Repartitioning of disks to add everything to lv_root | |
umount /home | |
lvremove -f /dev/mapper/*home | |
sed -i '/home/d' /etc/fstab | |
lvresize -l +100%FREE /dev/mapper/*root | |
if uname -r | grep -q el6; then resize2fs -f /dev/mapper/*root; else xfs_growfs / && mount / -o inode64,remount; fi | |
# Get rid of Beaker repos | |
rm -rf /etc/yum.repos.d/beaker-* | |
# Fixes /etc/hosts | |
export ETH=$(ping -c 1 $(hostname) | grep 'icmp_seq' | awk -F '(' '{print $2}' | awk -F ')' '{print $1}') | |
echo "$ETH $(hostname)" >> /etc/hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment