Skip to content

ssd bağlı değilken sd karta indirmeyi durdur / stop downloads to the sd card when the ssd is not mounted - #38

Merged
schematrix merged 1 commit into
schematrix:mainfrom
d0ukan:fix/stop-downloads-when-library-ssd-is-missing
Nov 26, 2026
Merged

schematrix merged 1 commit into
schematrix:mainfrom
d0ukan:fix/stop-downloads-when-library-ssd-is-missing

Conversation

@d0ukan

@d0ukan d0ukan commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

/library için ssd ayarlıysa ama disk açılışta bağlanmazsa indirme betiği uyarı verip arşivleri sd karta yazmaya devam ediyordu. varsayılan içerik listesi yaklaşık 160 gb.

artık /etc/fstab içinde /library kaydı varsa ve disk bağlı değilse betik dosya oluşturmadan ve ağ isteği göndermeden duruyor. sadece sd kart kullanacak şekilde kurulan sistemlerde indirme yine çalışıyor.

arm64 qemu’da ayrı bir ext4 disk imajıyla denedim. eski betiğin kök dosya sistemine yazdığını gördüm. düzeltmeyle disk bağlıyken indirme doğru yere gitti, diski ayırınca indirme başlamadı. shellcheck ve bash sözdizimi kontrolleri geçti. pi 5 üzerinde henüz denemedim.

English

if an ssd is configured for /library but doesn't mount at boot, the downloader warns and then writes the archives to the sd card anyway. the default content list is about 160 gb.

now it stops before creating files or making network requests when /etc/fstab has a /library entry but the disk isn't mounted. sd-only setups can still download content.

i reproduced the issue in arm64 qemu with a separate ext4 disk image. after the fix, the downloader wrote to the mounted disk and stopped before downloading when the disk was unmounted. shellcheck and bash syntax checks passed. i haven't tested on a pi 5.

@schematrix
schematrix merged commit 83724bf into schematrix:main Nov 26, 2026
1 check passed

Copy link
Copy Markdown
Owner

Merhaba d0ukan, teşekkürler. SSD çıkmışken 160 GB'ın SD karta inmeye başlaması kutuyu bozabilecek bir durumdu. SSD'siz kurulumlara dokunmadan sadece bu durumu yakalaman çok iyi olmuş. Merge ediyorum.


Hi d0ukan, thanks. Starting a 160 GB download onto the SD card while the SSD is unplugged could break the box. Catching just that case without touching SSD-less installs is great. Merging.


Generated by Claude Code

turer73 added a commit to turer73/HAS_Prepper_Disk that referenced this pull request Nov 27, 2026
…ry disk is not mounted

Same guard as download-content.sh (schematrix#38). It runs only when WEB is under /library,
and before the web root check so an unmounted disk is not reported as a missing
Internet-in-a-Box install.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants