Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(os): fix FEDAC-PIECE permission denied — chmod 777 partition + write test

The ext4 partition root is owned by root after mkfs, so liveuser/kioskuser
can't write kiosk.log. chmod 777 at build time, and add a write test
before committing to the log path so the session falls back to /tmp
gracefully if permissions are still wrong.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+6 -2
+3 -1
fedac/scripts/make-alpine-kiosk.sh
··· 357 357 if [ -n "$PIECE_DEV" ]; then 358 358 mkdir -p /mnt/piece 359 359 mount "$PIECE_DEV" /mnt/piece 2>/dev/null || true 360 - if mountpoint -q /mnt/piece 2>/dev/null; then 360 + if mountpoint -q /mnt/piece 2>/dev/null && touch /mnt/piece/.writetest 2>/dev/null; then 361 + rm -f /mnt/piece/.writetest 361 362 PIECE_LOG="/mnt/piece/kiosk.log" 362 363 fi 363 364 fi ··· 741 742 PIECE_MOUNT_TMP=$(mktemp -d /tmp/alpine-piece-XXXX) 742 743 mount "$p3" "$PIECE_MOUNT_TMP" 743 744 cp "$BUNDLE_PATH" "$PIECE_MOUNT_TMP/piece.html" 745 + chmod 777 "$PIECE_MOUNT_TMP" 744 746 sync 745 747 umount "$PIECE_MOUNT_TMP" 746 748 rmdir "$PIECE_MOUNT_TMP"
+3 -1
fedac/scripts/make-kiosk-piece-usb.sh
··· 348 348 # Write logs to persistent FEDAC-PIECE partition (readable from another machine) 349 349 # FEDAC-PIECE is auto-mounted by systemd (mnt-piece.mount unit) — no blkid/mount needed here. 350 350 PIECE_LOG="" 351 - if mountpoint -q /mnt/piece 2>/dev/null; then 351 + if mountpoint -q /mnt/piece 2>/dev/null && touch /mnt/piece/.writetest 2>/dev/null; then 352 + rm -f /mnt/piece/.writetest 352 353 PIECE_LOG="/mnt/piece/kiosk.log" 353 354 fi 354 355 LOG="${PIECE_LOG:-/tmp/kiosk.log}" ··· 1189 1190 PIECE_MOUNT=$(mktemp -d /tmp/fedac-piece-XXXX) 1190 1191 mount "$p3" "$PIECE_MOUNT" 1191 1192 cp "$BUNDLE_PATH" "$PIECE_MOUNT/piece.html" 1193 + chmod 777 "$PIECE_MOUNT" 1192 1194 sync 1193 1195 umount "$PIECE_MOUNT" 1194 1196 rmdir "$PIECE_MOUNT"