mirror of
https://github.com/ps5-linux/ps5-linux-image.git
synced 2026-07-16 01:50:40 +00:00
Plain Debian 12 Bookworm with XFCE desktop, LightDM autologin, Firefox ESR, and standard desktop utilities. Fills the gap between the heavier Kali (Debian + security tools) and the headless Proxmox (Debian + hypervisor) — a clean, lightweight Debian desktop for PS5. Tested on PS5 hardware: XFCE displays over HDMI, boots to desktop. [skip ci]
20 lines
647 B
Bash
20 lines
647 B
Bash
#!/bin/bash
|
|
# Grows the root partition and filesystem to fill the disk.
|
|
# Runs once on first boot, then disables itself.
|
|
# If resize fails, the service stays enabled and retries next boot.
|
|
|
|
ROOT_DEV=$(findmnt -no SOURCE /) || { echo "Cannot find root device"; exit 1; }
|
|
DISK=$(lsblk -ndo PKNAME "$ROOT_DEV")
|
|
PART_NUM=$(cat /sys/class/block/$(basename "$ROOT_DEV")/partition 2>/dev/null)
|
|
|
|
if [ -z "$DISK" ] || [ -z "$PART_NUM" ]; then
|
|
echo "Cannot determine disk layout (DISK=$DISK PART_NUM=$PART_NUM)"
|
|
exit 1
|
|
fi
|
|
|
|
growpart "/dev/$DISK" "$PART_NUM" || true
|
|
partprobe "/dev/$DISK"
|
|
resize2fs "$ROOT_DEV"
|
|
|
|
systemctl disable grow-rootfs.service
|