Full transcript
JavaScript is off, so here is the whole sequence. Lines starting with # are explanations.
Startup
# This is a simulation. Comments describe the supplied script. Hardware messages and the hostname are examples. The rc output follows the supplied log.
# Power on. The BIOS or UEFI firmware starts.
# The POST initializes memory and devices. Its messages depend on the firmware.
# In this BIOS example, boot code passes through the MBR and then the PBR. UEFI follows a different path.
>> OpenBSD/amd64 BOOT 3.68
# Before the prompt appears, /etc/boot.conf is read if present. It can change the delay, the kernel to load, or skip the prompt.
boot>
# The amd64 boot prompt allows input. Without intervention, /bsd loads after the configured delay, five seconds by default.
# The FAQ also describes bsd.rd, the installer and recovery kernel. This simulation follows a normal boot of an installed system.
booting hd0a:/bsd: 21229208+5435396+491776+0+1220608 [1581213+128+1213440+1062416]=0x2088000
# The /bsd kernel is loaded along with its boot options, device and console settings.
OpenBSD 8.0 (GENERIC.MP)
# The kernel reports memory and detected devices. These vary with the machine.
# The kernel identifies the root, swap and dump devices. Their names depend on the machine.
# autoconf(4) finishes and the root filesystem is mounted read-only.
# The kernel starts /sbin/init as PID 1, with securelevel 0.
# For an automatic multi-user boot, init(8) runs /etc/rc with the autoboot argument.
# Setup: set +o sh; stty status ^T; SIGINT and SIGQUIT traps; INRC=1; HOME=/; PATH includes sbin and bin.
# The hostname comes from /etc/myname. The domain name comes from /etc/defaultdomain if kern.domainname is empty.
# rc then reads /etc/rc.conf and /etc/rc.conf.local (lines 386-387), after the domain name has been set for YP decisions.
# These files control services through daemon_flags and pkg_scripts. The last assignment takes precedence.
# Lines 428-429: in addition to the randomness provided by the boot loader (/etc/random.seed), dmesg and hw.uuid, hw.serialno and hw.sensors are fed into /dev/random.
# Line 432: swapctl -A -t blk enables block swap devices.
Automatic boot in progress: starting file system checks.
/dev/sd0a (fa64f950175a066b.a): file system is clean; not checking
/dev/sd0d (fa64f950175a066b.d): file system is clean; not checking
/dev/sd0f (fa64f950175a066b.f): file system is clean; not checking
/dev/sd0e (fa64f950175a066b.e): file system is clean; not checking
# fsck -p checks filesystems. See lines 336-360 for return codes. If /fastboot exists, the check is skipped.
# umount -a unmounts filesystems except root; mount -a -t nonfs,vnd mounts local filesystems; mount -uw / makes root writable.
# chmod og-rwx /bsd; ln -fh /bsd /bsd.booted; rm -f /fastboot.
# rootdisk_nodes (line 459): if kern.maxpartitions is still 16 (old 16-partition disklabel), fallback /dev/rootdisk and /dev/rrootdisk nodes are created.
# ttyflags -a applies flags from /etc/ttys (line 462).
# kbd reads /etc/kbdtype if /sbin/kbd is executable and the file is not empty (line 465).
# wsconsctl_conf applies settings from /etc/wsconsctl.conf, such as keyboard and console settings (line 469).
# Temporary PF rules (lines 471-506): block all, then loopback, inbound SSH, outbound DNS and ping, DHCP, neighbor discovery, RA and DHCPv6 when IPv6 is present, CARP, and NFS when needed.
pf enabled
# fill_baddynamic excludes the ports listed in /etc/services from random source port allocation, for UDP then TCP. sysctl_conf applies sysctl.conf and resource limits.
# mount -s attempts to mount /var, /var/log, /usr and /tmp. See the NFS comments in the supplied script.
clearing /tmp
# lost+found, quota files and vi.recover are kept. Other temporary files are removed in the background.
# reorder_libs runs as a co-process (line 535). Its output is captured and printed by wait_reorder_libs (line 551), always after starting network.
# slaacd, dhcpleased and resolvd start quietly before network configuration (line 537).
starting network
# The CARP demotion counter is raised before sh /etc/netstart (lines 543-545).
# unwind starts quietly; store_random saves random data; wait_reorder_libs waits for the background task.
reordering: ld.so libc libcrypto ssh-agent smtpd-ca smtpd-control smtpd-dispatcher smtpd-lka smtpd-queue smtpd-scheduler sshd-auth sshd-session smtpd sshd.
# The final PF rules are loaded from /etc/pf.conf if present. pfsync0 is configured if hostname.pfsync0 exists.
# Cleanup covers /etc/nologin, lock files, /var/run and /var/authpf. dmesg is saved to /var/run/dmesg.boot.
# make_keys handles isakmpd, iked, SSH host keys and soii.key. It normally reports only key generation.
starting early daemons: syslogd pflogd ntpd.
# If IPsec is enabled and /etc/ipsec.conf exists, ipsecctl loads the rules.
starting RPC daemons:.
# portmap comes first (disabled by default), then YP services only when a domain name is set, then the other RPC services.
# Lines 592-599: mount -a, swapctl -A -t noblk, do_fsck -N and mount -a -N handle the remaining filesystems and swap, then kvm_mkdb and dev_mkdb build the kvm and device databases.
# savecore checks /var/crash if it exists. acpidump saves ACPI tables to /var/db/acpi.
# Quotas are checked when check_quotas is YES. TTY device permissions are also set.
savecore: no core dump
checking quotas: done.
# An existing /etc/ptmp triggers a password file warning. X socket directories and /tmp/run/user are prepared.
# After /etc/rc.securelevel, rc raises securelevel from 0 to 1 if it has not already changed.
kern.securelevel: 0 -> 1
# In /etc/motd, everything before the first blank line is replaced by the kernel version. A custom message goes after that blank line.
# Accounting starts if enabled. ldconfig builds the runtime linker cache using available library paths.
creating runtime link editor directory cache.
preserving editor files.
# If rc.sysmerge exists, it is run once and removed. Its output is mailed to root (line 669).
starting network daemons: sshd smtpd.
# If rc.firsttime exists, it runs once and is removed, before pkg_scripts. Its output is mailed to root (line 680).
# Package services in pkg_scripts start in the listed order. None appear in the supplied log.
# If /etc/rc.local exists, it runs near the end of startup (line 695).
# The CARP interlock is released and mixer settings are applied.
starting local daemons: cron.
# reorder_kernel runs in the background; rc prints the date and exits.
Sun Nov 15 09:10:09 CET 2026
# After rc exits, init(8) starts getty for enabled entries in /etc/ttys.
OpenBSD/amd64 (puffy) (ttyC0)
login: root
Password:
# BSD Authentication verifies the password. rc removed /etc/nologin at boot, and root's daemon class ignores it anyway. login then shows the last login and /etc/motd.
Last login: Sat Nov 14 18:42:07 on ttyC0
OpenBSD 8.0 (GENERIC.MP)
Welcome to OpenBSD: The proactively secure Unix-like operating system.
Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code. With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.
# A login shell reads /etc/profile and ~/.profile when present, followed by the file named by ENV if set.
# If ENV points to ~/.kshrc, that file is read and may source /etc/ksh.kshrc. This is not automatic.
# puffy# is ksh's default prompt for root: the first part of the hostname followed by #. /etc/ksh.kshrc is loaded only if the shell configuration requests it.
puffy#
Shutdown
puffy# halt -p
# halt -p requests shutdown and power-off if the hardware supports it.
# halt(8) suspends init with SIGTSTP, then runs /etc/rc with the shutdown argument itself.
# In the shutdown branch, store_random saves seed data for the next boot.
# At securelevel 0, rc reports that it is not running shutdown scripts and skips pkg_scripts, vmd and rc.shutdown. CARP interfaces are still brought down.
# Services in pkg_scripts stop in reverse startup order.
# If vmd is running, rc stops it, which stops its virtual machines. In this example it is not running.
# If /etc/rc.shutdown exists, administrator-defined shutdown commands are run.
# CARP interfaces are brought down.
# halt(8) sends SIGTERM to all processes, waits about five seconds with a sync, then sends SIGKILL to any that remain.
# halt(8) calls reboot(2), and the kernel flushes filesystem caches.
syncing disks... done
# With -p and ACPI, the kernel powers the machine off. Without ACPI, or if power-off fails, it prints "The operating system has halted." and "Please press any key to reboot."