Skip to content

Instantly share code, notes, and snippets.

@mrwormhole
Created October 5, 2023 00:00
Show Gist options
  • Save mrwormhole/2d74bb00d0150df26c54af02a4499c6b to your computer and use it in GitHub Desktop.
Save mrwormhole/2d74bb00d0150df26c54af02a4499c6b to your computer and use it in GitHub Desktop.
EXT4 disk partitioning on Hetzner, please adjust the percentages carefully, this config leaves 60% as unformatted second partition, this is useful for rook-ceph
#cloud-config
# Ubuntu 22.04+
resize_rootfs: false
write_files:
- content: |
path: /etc/growroot-disabled
runcmd:
- [ sgdisk, -e, /dev/sda ]
- [ partprobe ]
- [ parted, -s, /dev/sda, mkpart, primary, ext4, "40%", "100%" ]
- [ growpart, /dev/sda, 1 ]
- [ resize2fs, /dev/sda1 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment