Skip to content

Instantly share code, notes, and snippets.

@lusis
Created October 15, 2015 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lusis/d4c940a51e7f00df3400 to your computer and use it in GitHub Desktop.
Save lusis/d4c940a51e7f00df3400 to your computer and use it in GitHub Desktop.
#Disk partitioning information
clearpart --all --initlabel
part /boot --fstype ext4 --size 512 --asprimary
part swap --size 1024
part pv.01 --size 1 --grow
volgroup sysvg pv.01
logvol / --fstype ext4 --vgname=sysvg --size=20000 --name=root
logvol /tmp --fstype ext4 --vgname=sysvg --size=5000 --name=temp
logvol /home --fstype ext4 --vgname=sysvg --size=10000 --name=home
logvol /var --fstype ext4 --vgname=sysvg --size=100000 --name=var
logvol /fuckyoubuntu --fstype ext4 --vgname=sysvg --size=1 --grow --name=fuckyoubuntu
echo "Cleaning up ubuntu daftness"
sed -i -e 's/^.*fuckyoubuntu.*$//g' /etc/fstab
umount /fuckyoubuntu
lvremove -v -f /dev/sysvg/fuckyoubuntu
rm -rf /fuckyoubuntu
@berendt
Copy link

berendt commented Jun 2, 2016

Thanks for the hint. Partman made me crazy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment