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

Open
d0ukan wants to merge 1 commit into
schematrix:mainfrom
d0ukan:fix/stop-downloads-when-library-ssd-is-missing
Open

d0ukan wants to merge 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

/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.

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.

1 participant