//! ISO store: uploads, listing, introspection, boot-entry generation. //! //! An ISO goes through three states: //! 1. **Uploading** — bytes streaming to a `.partial` file under `iso_dir`. //! 2. **Introspecting** — once upload completes, we probe the ISO to detect //! the distro family and extract kernel/initrd if applicable. Metadata //! persisted as a sibling `.meta.json` file. //! 3. **Ready** — listed in the menu, servable over HTTP. //! //! Introspection is best-effort. If we can't identify the distro, the ISO is //! still bootable via a generic `memdisk`/`sanboot` fallback path (not //! recommended but better than nothing). //! //! The `smb` submodule needs exactly one `unsafe` call to `libc::kill` for //! SIGHUP-based Samba reload — the call is documented inline and every //! other file in this crate is `#![forbid(unsafe_code)]`-equivalent via //! the workspace lints. pub mod entry; pub mod introspect; pub mod pxe_logo; pub mod smb; pub mod smb_share; pub mod store; pub mod windows; pub use entry::{BootEntry, BootKind, KernelArgs}; pub use introspect::{DistroFamily, IntrospectionReport}; // v0.4.65: kernel-mount NFS is gone. SMB shares via Samba's userspace // `smbclient` CLI replaced it — works in any container (no // CAP_SYS_ADMIN, no host kernel modules), matching how Bootimus and // every other PXE/imaging tool that supports network storage handles // it. pub use smb::{extract_windows_iso, SmbManager, SmbState}; pub use smb_share::{SmbAddRequest, SmbShare, SmbShareError, SmbShareManager, SmbStream}; pub use store::{ generate_boot_entries_for, slugify_str, IsoCategory, IsoMeta, IsoSource, IsoStore, UploadHandle, }; pub use windows::{WimPatcher, WinPatchState};