[Bug 282324] Utilities used by FreeBSD-rc-14.1 RC Scripts require dragging in bloated utilities
Date: Sat, 26 Oct 2024 01:37:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282324 Bug ID: 282324 Summary: Utilities used by FreeBSD-rc-14.1 RC Scripts require dragging in bloated utilities Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: jeff+freebsd@wagsky.com I had hoped that the "core" rc scripts in FreeBSD-rc-14.1 would be covered by either FreeBSD-runtime-14.1p5 or FreeBSD-rescue-14.1p5. However it appears that at least `tr` and `utx` are called by these scripts in their default configuration. They result in apparently untrapped errors: eval: tr: not found eval: utx: not found rather than apparently trapped ones that generate a warning: /etc/rc: WARNING: /etc/newsyslog.conf is not readable. /etc/rc: WARNING: run_rc_command: cannot run /usr/sbin/syslogd /etc/rc: WARNING: run_rc_command: cannot run /usr/sbin/cron --- At a minimum, I believe the base rc scripts should terminate gracefully if the utilities are not present. Ideally, common utilities used by rc scripts would be available in a reasonably compact package or added to /rescue so that FreeBSD-utilities doesn't need to be dragged in. --- Testing using filesystem generated by https://github.com/dfr/freebsd-images/blob/main/build-minimal.sh and run using `jail` on a ZFS clone [jeff@js2 /var/jail/dns-new/etc/rc.d]$ pkg-in-jail dns-new info FreeBSD-caroot-14.1 SSL Certificates FreeBSD-certctl-14.1 SSL Certificate Utility FreeBSD-clibs-14.1p3 Core C Libraries FreeBSD-fetch-14.1 Fetch Utility FreeBSD-kerberos-lib-14.1 Kerberos Libraries FreeBSD-libarchive-14.1 libarchive package FreeBSD-libbsm-lib32-14.1 libbsm package (32-bit Libraries) FreeBSD-libbz2-14.1 libbz2 package FreeBSD-libexecinfo-14.1 libexecinfo package FreeBSD-liblzma-14.1 liblzma package FreeBSD-libsqlite3-lib32-14.1 libsqlite3 package (32-bit Libraries) FreeBSD-libucl-14.1 libucl package FreeBSD-mtree-14.1 MTREE Files FreeBSD-openssl-lib-14.1p4 OpenSSL Libraries FreeBSD-pkg-bootstrap-14.1 pkg bootstrap Utility FreeBSD-rc-14.1 RC Scripts FreeBSD-rescue-14.1p5 Rescue Utilities FreeBSD-runtime-14.1p5 FreeBSD Base System FreeBSD-zoneinfo-14.1 zoneinfo package -rescue- was added but does not contain `tr` -- You are receiving this mail because: You are the assignee for the bug.