forked from tfgrid/zosbuilder
• ntp: robust /etc/ntp.conf symlink, safe defaults, avoid nounset, keep BusyBox CLI -p usage • network: wrap dhcpcd to create dhcpcd user/group if missing; run as root if needed • console: set getty console to 115200 vt100
5.6 KiB
5.6 KiB
Function List - scripts/lib Library
This document lists all functions currently defined under scripts/lib with their source locations.
alpine.sh - Alpine Linux operations
File: scripts/lib/alpine.sh
- alpine_extract_miniroot() - Download and extract Alpine miniroot
- alpine_setup_chroot() - Setup chroot mounts and resolv.conf
- alpine_cleanup_chroot() - Unmount chroot mounts
- alpine_install_packages() - Install packages from packages.list
- alpine_aggressive_cleanup() - Reduce image size by removing docs/locales/etc
- alpine_configure_repos() - Configure APK repositories
- alpine_configure_system() - Configure hostname, hosts, timezone, profile
- alpine_install_firmware() - Install required firmware packages
common.sh - Core utilities
File: scripts/lib/common.sh
- log_info()
- log_warn()
- log_error()
- log_debug()
- safe_execute()
- section_header()
- command_exists()
- in_container()
- check_dependencies()
- safe_mkdir()
- safe_rmdir()
- safe_copy()
- is_absolute_path()
- resolve_path()
- get_file_size()
- wait_for_file()
- cleanup_on_exit()
components.sh - Component management
File: scripts/lib/components.sh
- components_parse_sources_conf()
- components_download_git()
- components_download_release()
- components_process_extra_options()
- components_build_component()
- components_setup_rust_env()
- build_zinit()
- build_rfs()
- build_mycelium()
- install_rfs()
- install_corex()
- components_verify_installation()
- components_cleanup()
docker.sh - Container runtime management
File: scripts/lib/docker.sh
- docker_detect_runtime()
- docker_verify_rootless()
- docker_build_container()
- docker_create_dockerfile()
- docker_start_rootless()
- docker_run_build()
- docker_commit_builder()
- docker_cleanup()
- docker_check_capabilities()
- docker_setup_rootless()
initramfs.sh - Initramfs assembly
File: scripts/lib/initramfs.sh
- initramfs_setup_zinit()
- initramfs_install_init_script()
- initramfs_copy_components()
- initramfs_setup_modules()
- initramfs_resolve_module_dependencies()
- initramfs_create_module_scripts()
- initramfs_strip_and_upx()
- initramfs_finalize_customization()
- initramfs_create_cpio()
- initramfs_validate()
- initramfs_test_archive()
- initramfs_copy_resolved_modules()
kernel.sh - Kernel building
File: scripts/lib/kernel.sh
- kernel_get_full_version()
- kernel_download_source()
- kernel_apply_config()
- kernel_modify_config_for_initramfs()
- kernel_build_with_initramfs()
- kernel_build_modules()
- kernel_cleanup()
stages.sh - Build stage tracking
File: scripts/lib/stages.sh
- stages_init()
- stage_is_completed()
- stage_mark_completed()
- stage_force_rebuild()
- stages_clear_all()
- stage_run()
- stages_status()
testing.sh - Boot testing
File: scripts/lib/testing.sh