Files
ps5-linux-image/distros/cachyos/files/grow-rootfs
Chihab Djaidja 292c9c02fd feat: add CachyOS image (Gamescope + Steam)
- Add distros/cachyos image.yaml and helper files under files/
- Wire kernel packaging and --distro cachyos in build_image.sh
- Stage CachyOS artifacts in image-builder entrypoints; include cachyos in multi image
- Add boot/kexec-cachyos.sh and document in README

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-08 20:40:44 +02:00

15 lines
366 B
Bash

#!/bin/bash
# Grows the root partition and filesystem to fill the disk.
# Runs once on first boot, then disables itself.
set -e
ROOT_DEV=$(findmnt -no SOURCE /)
DISK="/dev/$(lsblk -ndo PKNAME "$ROOT_DEV")"
PART_NUM=$(cat /sys/class/block/$(basename "$ROOT_DEV")/partition)
growpart "$DISK" "$PART_NUM"
resize2fs "$ROOT_DEV"
systemctl disable grow-rootfs.service