feat(linbo): add LINBO management extension modules#6
Open
amolani wants to merge 2 commits intolinuxmuster:lmn73from
Open
feat(linbo): add LINBO management extension modules#6amolani wants to merge 2 commits intolinuxmuster:lmn73from
amolani wants to merge 2 commits intolinuxmuster:lmn73from
Conversation
Add 18 new Python modules to linuxmusterTools.linbo for LINBO boot infrastructure management. These modules provide reusable building blocks for linuxmuster-webui plugins, CLI tools, and API routers. New modules: - ssh.py, terminal.py: SSH command execution + interactive PTY sessions - wol.py, host_status.py: Wake-on-LAN + TCP port probe for online detection - grub_generator.py: GRUB config generation from start.conf data objects - firmware.py: firmware detection (dmesg parsing), config management, boot-log health analysis - drivers.py: driver profile CRUD with ZIP extraction and validation - kernel.py: kernel variant switching + linbofs rebuild trigger - linbofs.py: linbofs64 rebuild orchestration with file-based locking - dhcp.py: dnsmasq proxy-DHCP + ISC DHCP config export (server IP configurable, auto-detected from setup.ini) - image_sync.py: image download with HTTP Range resume + MD5 verification - multicast.py, torrent.py: multicast/BitTorrent distribution wrappers - boot_logs.py: boot log access + host image status parsing - wlan.py: WLAN/wpa_supplicant configuration management - linbo_update.py: APT-based LINBO package update management - hooks.py: update-linbofs hook discovery - _validation.py: centralized validation using upstream NameChecker with fallback regex for standalone usage Design decisions: - Zero runtime dependencies (paramiko optional via lazy import) - Uses upstream NameChecker for validation when available - No duplication of existing parsers (config.py, images.py, models.py) - All subprocess calls use list form (no shell=True) - Path traversal protection on all file operations - GPL-3.0-only, Python >= 3.10
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.
Add 18 new Python modules to linuxmusterTools.linbo for LINBO boot infrastructure management. These modules provide reusable building blocks for linuxmuster-webui plugins, CLI tools, and API routers.
New modules:
Design decisions: