mirror of
https://github.com/ps5-linux/ps5-linux-image.git
synced 2026-07-15 21:42:27 +00:00
- 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>
15 lines
366 B
Bash
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
|