Repository navigation
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 intoNov 26, 2026
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/libraryiç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/fstabiçinde/librarykaydı 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
/librarybut 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/fstabhas a/libraryentry 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.