OPNsense - FreeBSD source
Find a file
Keve Müller 3c61bbebc4 Update rc.initdiskless, fix error handling of remount_optional
chkerr() ignores the exit code of a preceding mount command in case a
file ```remount_optional``` exists.  The check is performed and a
subshell is launched to log the informational message and return.  The
return is executed in the context of the subshell, not the context of
the chkerr() function, hence is a NOP.  The remount_optional check is
hence ineffective.

Change the code to if/then/fi, so the return is evaluated in the context
of the chkerr function, to make the check effective.

Reviewed by: imp, emaste
Pull Request: https://github.com/freebsd/freebsd-src/pull/1497
2025-01-24 12:40:33 -07:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github github: limit paths for style workflow 2024-12-05 17:59:51 -07:00
bin ls: --group-directories requires stat information 2025-01-22 08:29:29 +01:00
cddl dtrace tests: Fix the ATF config variable name 2025-01-23 19:09:56 +00:00
contrib netcat: Add a flag to enable the use of SO_REUSEPORT_LB 2025-01-24 16:37:43 +00:00
crypto Add 'crypto/libecc/' from commit '736d663976d1768533badbf06581481d01fade4c' 2025-01-01 15:11:18 -06:00
etc Revert "isp: Fix abort issue introduced by previous commit" 2025-01-08 13:20:09 -05:00
gnu Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
include libc: Fix getentropy POSIX 2024 conformance issues 2025-01-17 13:23:23 -05:00
kerberos5 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
lib iscsi: Move valid_iscsi_name to libiscsiutil 2025-01-24 09:53:22 -05:00
libexec Update rc.initdiskless, fix error handling of remount_optional 2025-01-24 12:40:33 -07:00
release release: install etc files from the source tree, not the host 2025-01-10 14:21:10 +00:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin nvmf: Refactor reconnection support 2025-01-24 09:43:19 -05:00
secure secure: hook up libecc as libpkgecc 2025-01-01 15:11:22 -06:00
share ithread: Allow some ithreads to sleep 2025-01-24 15:08:09 +00:00
stand stand/efi: Limit where we load the arm64 kernel 2025-01-24 12:09:28 +00:00
sys ure(4): Add support for ELECOM EDC-QUA3C 2025-01-24 19:25:11 +00:00
targets gvinum(8): Remove userland tool for managing vinum volumes 2025-01-23 11:20:43 -05:00
tests pf: make reply-to work with nat64 2025-01-24 11:20:31 +01:00
tools depend-cleanup: Add a regex for files that moved 2025-01-23 17:26:25 +00:00
usr.bin iscsi: Move valid_iscsi_name to libiscsiutil 2025-01-24 09:53:22 -05:00
usr.sbin bsdinstall: hook up help line and prompt for ZFS disk selection 2025-01-24 19:33:18 +00:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml .cirrus-ci: Update the non-manual GCC build job to GCC 13 2025-01-03 10:44:44 -05:00
.clang-format clang-format: Minor tweaks 2024-04-30 17:33:43 -04:00
.git-blame-ignore-revs git-blame-ignore-revs: list rtld-elf reformatting 2025-01-21 03:57:21 +02:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore .gitignore: add sys/*/compile 2024-02-02 09:20:36 -07:00
.mailmap mailmap: Translate my personal address 2024-06-22 08:57:56 +02:00
CONTRIBUTING.md CONTRIBUTING.md/style: spring cleaning 2024-05-10 15:07:03 -06:00
COPYRIGHT copyright: Happy New Year 2025 2025-01-01 00:04:28 +00:00
LOCKS Update LOCKS for Git 2023-12-26 10:28:25 -07:00
MAINTAINERS man filesystems: fix more xrefs after move to s4 2024-06-27 18:32:05 -06:00
Makefile universe: Permit requesting a specific version of GCC 2025-01-10 22:49:59 -05:00
Makefile.inc1 pkgbase: Fix OSVERSION specification when creating a repo 2025-01-20 13:54:49 +00:00
Makefile.libcompat Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc ObsoleteFiles.inc: Remove bogus entries 2025-01-23 16:27:54 -04:00
README.md Update README.md to add pointer to release page. 2024-05-09 20:40:46 -06:00
RELNOTES RELNOTES: Document removal of vinum support 2025-01-23 13:16:55 -05:00
UPDATING RELNOTES: Document recent file handle layout changes 2025-01-15 18:21:08 +00:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

For official FreeBSD bootable images, see the release page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.