#
# Hammerhead Base System Manifest
#
# This file defines the Tier 1 (base system) boundary. Components listed
# here are built as part of the base system and produce the sysroot that
# Tier 2 (Coral packages) builds against.
#
# Tier 0: Kernel (uts/) — built independently via GNU Make
# Tier 1: Base System — libraries + commands listed below
# Tier 2: Everything else — built by Coral against Tier 1 sysroot
#

#
# Essential Libraries (~30)
# These install to /lib (root filesystem) or /usr/lib
#
[libraries]
# Core C runtime
lib/libc
lib/libm

# Memory and data structures
lib/libumem
lib/libnvpair
lib/libavl
lib/libcustr

# Filesystem
lib/libzfs
lib/libzfs_core
lib/libzutil
lib/libefi
lib/libdevid

# Device and system info
lib/libdevinfo
lib/libkstat
lib/libsysevent

# Service management
lib/libscf
lib/libcontract
lib/libuutil

# Network
lib/libsocket
lib/libnsl
lib/libinetutil
lib/libipadm
lib/libdladm

# Security
lib/libsec
lib/libsecdb
lib/libcryptoutil
lib/libuuid
lib/libmd

# General utility
lib/libgen

#
# Essential Commands — /bin (~45 commands)
# These are required for single-user mode, shell scripts, and basic
# system interaction. Install to /bin with symlinks from /usr/bin.
#
[commands-bin]
cmd/cat
cmd/chmod
cmd/chown
cmd/cp
cmd/date
cmd/dd
cmd/df
cmd/echo
cmd/ed
cmd/expr
cmd/hostname
cmd/ln
cmd/ls
cmd/mkdir
cmd/mv
cmd/printf
cmd/ps
cmd/pwd
cmd/rm
cmd/rmdir
cmd/sh
cmd/sleep
# stty is built by cmd/ttymon, installs to /bin
cmd/stty
cmd/sync
cmd/head
cmd/tail
cmd/grep
cmd/sed
cmd/awk
cmd/sort
cmd/tr
cmd/xargs
cmd/basename
cmd/dirname
cmd/env
cmd/false
cmd/true
cmd/id
cmd/uname
cmd/who
cmd/groups
cmd/su

# Provided by cmd/ast/ksh/builtins (hardlinks to alias binary):
#   kill, test, cut, wc, uniq, tee
# Coral may provide standalone replacements (coreutils) later.
# pax is not in gate; will be provided by Coral.

#
# Essential Commands — /sbin (~35 commands)
# These are required for system boot, shutdown, filesystem management,
# and network bootstrap. Install to /sbin with symlinks from /usr/sbin.
#
[commands-sbin]
# Boot & shutdown
cmd/init
cmd/reboot
cmd/halt

# Filesystem
cmd/fs.d/mount
cmd/fs.d/umount
cmd/fs.d/fsck
cmd/zfs
cmd/zpool
cmd/zdb
cmd/swap
cmd/dumpadm

# Device management
cmd/devfsadm
cmd/modload
cmd/dladm
cmd/ipadm

# Network bootstrap
cmd/cmd-inet/ifconfig
cmd/cmd-inet/route
cmd/cmd-inet/ping
cmd/arp
cmd/cmd-inet/dhcpagent

# System
cmd/dmesg
cmd/prtconf
cmd/bootadm
cmd/beadm
