Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

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

fix: streaming upload (-T) + non-fatal ISO to prevent OOM on oven

curl --data-binary loads entire file into RAM, OOM on 1GB+ ISO.
Switch to -T (streaming upload). Make ISO upload non-fatal so slim
kernel + initramfs always get uploaded even if ISO fails.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+5 -3
+5 -3
fedac/native/scripts/upload-release.sh
··· 124 124 "$md5_val" "$content_type" "$date_val" "$acl" "$DO_SPACES_BUCKET" "$dest_key" \ 125 125 | openssl dgst -sha1 -hmac "$DO_SPACES_SECRET" -binary | base64) 126 126 127 + # Use -T (upload-file) for streaming — avoids loading entire file into memory 128 + # (--data-binary loads the whole file into RAM, OOM on 1GB+ files) 127 129 curl -sf -X PUT \ 128 130 -H "Date: $date_val" \ 129 131 -H "Content-Type: $content_type" \ 130 132 -H "Content-MD5: $md5_val" \ 131 133 -H "x-amz-acl: $acl" \ 132 134 -H "Authorization: AWS ${DO_SPACES_KEY}:${sig}" \ 133 - --data-binary "@$src" \ 135 + -T "$src" \ 134 136 "${BASE_URL}/${dest_key}" \ 135 137 && echo " uploaded: $dest_key" \ 136 138 || { echo " ERROR uploading $dest_key" >&2; return 1; } ··· 220 222 do_upload "$INITRAMFS_SIBLING" "os/${CHANNEL_PREFIX}native-notepat-latest.initramfs.cpio.gz" "application/octet-stream" 221 223 fi 222 224 223 - # Also upload ISO if it exists next to vmlinuz 225 + # Also upload ISO if it exists (non-fatal — ISO is optional) 224 226 ISO_SIBLING="$(dirname "$VMLINUZ")/ac-os.iso" 225 227 if [ -f "$ISO_SIBLING" ]; then 226 228 echo " Uploading ISO ($(du -sh "$ISO_SIBLING" | cut -f1))..." 227 - do_upload "$ISO_SIBLING" "os/${CHANNEL_PREFIX}native-notepat-latest.iso" "application/octet-stream" 229 + do_upload "$ISO_SIBLING" "os/${CHANNEL_PREFIX}native-notepat-latest.iso" "application/octet-stream" || echo " ISO upload failed (non-fatal)" 228 230 fi 229 231 230 232 echo ""