mirror of
https://github.com/CloudNebulaProject/refraction-forger.git
synced 2026-04-10 13:20:40 +00:00
Standalone workspace with 4 crates for building optimized OS images and publishing to OCI registries: - spec-parser: KDL image spec parsing with include resolution and profile-based conditional filtering - forge-oci: OCI image creation (tar layers, manifests, Image Layout) and registry push via oci-client - forge-engine: Build pipeline with Phase 1 (rootfs assembly via native package managers with -R) and Phase 2 (QCOW2/OCI/artifact targets), plus dyn-compatible ToolRunner trait for external tool execution - forger: CLI binary with build, validate, inspect, push, and targets commands Ported KDL specs and overlay files from the vm-manager prototype. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
1.1 KiB
Text
20 lines
1.1 KiB
Text
// SMF profiles and basic network/name service configuration ported from image-builder JSON
|
|
overlays {
|
|
// SMF default profiles
|
|
ensure-symlink "/etc/svc/profile/generic.xml" target="generic_limited_net.xml" owner="root" group="root"
|
|
ensure-symlink "/etc/svc/profile/inetd_services.xml" target="inetd_generic.xml" owner="root" group="root"
|
|
ensure-symlink "/etc/svc/profile/platform.xml" target="platform_none.xml" owner="root" group="root"
|
|
|
|
// Name service profile
|
|
ensure-symlink "/etc/svc/profile/name_service.xml" target="ns_dns.xml" owner="root" group="root"
|
|
|
|
// nsswitch: use the dns profile file; symlink to keep parity with imagesrc copy
|
|
ensure-symlink "/etc/nsswitch.conf" target="nsswitch.dns" owner="root" group="root"
|
|
|
|
// Network basics and identity
|
|
file destination="/etc/inet/hosts" source="etc/hosts" owner="root" group="root" mode="644"
|
|
file destination="/etc/nodename" source="etc/nodename" owner="root" group="root" mode="644"
|
|
|
|
// Empty resolv.conf; can be populated by DHCP or later config
|
|
file destination="/etc/resolv.conf" owner="root" group="root" mode="644"
|
|
}
|