-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Task
0 / 10 of 1 issue completed
Copy link
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Description:
Currently, several rc scripts in the package rely on binaries located in /usr (/usr/bin/logger, /usr/sbin/syslogd, /usr/bin/find, etc.) and resources like fonts and keymaps under /usr. On systems with a separate /usr filesystem, these scripts fail in early boot, leading to:
- Lost boot logs when
loggerorsyslogdis invoked too early. - Failed
/tmpand/var/lockcleanup using/usr/bin/find. - Keyboard, console, and font setup (
loadkeys,setterm,setfont) may fail if font/keymap files are only in/usr.
Current Workarounds:
BOOTLOG=YEScaptures early boot logs viabootlogd.- Some scripts wrap
/usrbinaries with existence checks, but usage is inconsistent. - Users may need to manually ensure
/usris available early.
Proposed Transition / Solution:
-
Rootfs-only binaries in early boot:
-
Move essential binaries to
/binor/sbin(or ensure copies exist).- Examples:
logger,syslogd,find,loadkeys,setterm,setfont.
- Examples:
-
-
Minimal resources on rootfs:
- Include a minimal set of fonts and keymaps under
/libor/etcfor early console setup.
- Include a minimal set of fonts and keymaps under
-
Early-boot safe scripts:
- Replace
/usr/bin/findcalls with rootfs-safe shell loops. - Replace
/usr/bin/loggercalls with a wrapper that falls back to stdout.
- Replace
-
Conditional execution / fallbacks:
- If binaries or resources are missing, skip gracefully instead of failing early boot.
-
Documentation:
- Document changed fonts/keymaps location in rc.conf manual page.
- Document that
/usrmay not be available in early boot. - Recommend
bootlogdfor capturing early messages.
Goal:
- Ensure that all early-boot steps (cleanup, console setup, minimal logging) work reliably before
/usris mounted, while transitioning multiuser services to run after/usrbecomes available. - Keep scripts minimal, readable, and KISS-friendly.
Notes / References:
- Historical approaches in Slackware, CRUX, Debian pre-systemd, and Red Hat pre-systemd.
- Rootfs-only early boot ensures robust system startup even with a separate
/usr.
Reactions are currently unavailable
Sub-issues
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Type
Projects
Status
Tools