aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc
Commit message (Collapse)AuthorAgeFilesLines
* Fix the ipfw service status output when ipfw.ko isn't loadedMark Johnston2020-12-181-1/+3
| | | | | | | | | | Reported by: lme Reviewed by: lme MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27657 Notes: svn path=/head/; revision=368762
* Make mountcritremote dependent upon nfscbd.Rick Macklem2020-12-171-1/+1
| | | | | | | | | | | | | | | | | Although it is not often needed, the nfscbd(8) should be running when NFSv4 mounts are done if callback functionality is required. Callback functionality is required for the NFSv4 server to issue delegations or pNFS layouts. This patch adds nfscbd to the mountcritremote's REQUIRED line to ensure it is started before NFS mounts specified in /etc/fstab are done. Reviewed by: 0mp Differential Revision: https://reviews.freebsd.org/D27506 Notes: svn path=/head/; revision=368710
* Revert r366857.Cy Schubert2020-12-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | r366857 created a number of problems, tearing down interfaces too early in shutdown. This resulted in: - hung ssh sessions when shutting down or rebooting remotely using shutdown (I've used exec shutdown, for years, as apposed to simply shutdown). - NFS mounted filesystems "disappear" prior to unmount. - dhclient attached to a VLAN on an interface who's parent interface has already shut down prints errors. The path forward is to teach lagg(4) and vlan(4) about WOL. PR: 251531, 251540 PR: 158734, 109980 are broken again Reported by: jhb, emaste, jtl, Helge Oldach<freebsd_oldach.net> Martin Birgmeier <d8zNeCFG_aon.at> MFC after: Immediately Discussion at: https://reviews.freebsd.org/D27459 Notes: svn path=/head/; revision=368345
* IPv6: set ifdisabled in the kernel rather than in rcBjoern A. Zeeb2020-11-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Enable ND6_IFF_IFDISABLED when the interface is created in the kernel before return to user space. This avoids a race when an interface is create by a program which also calls ifconfig IF inet6 -ifdisabled and races with the devd -> /etc/pccard_ether -> .. netif start IF -> ifdisabled calls (the devd/rc framework disabling IPv6 again after the program had enabled it already). In case the global net.inet6.ip6.accept_rtadv was turned on, we also default to enabling IPv6 on the interfaces, rather than disabling them. PR: 248172 Reported by: Gert Doering (gert greenie.muc.de) Reviewed by: glebius (, phk) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D27324 Notes: svn path=/head/; revision=368031
* Revert r367291 (KEYWORD: shutdown for rc.d/zfs)Mateusz Piotrowski2020-11-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem is that zfs is asked to stop too early in the shutdown sequence. Other services, such as syslog may still be running and have some files open (e.g., under /var/log). This of course causes the messages like: cannot unmount '/var/run': umount failed cannot unmount '/var/log': umount failed cannot unmount '/var': umount failed cannot unmount '/usr/home': umount failed cannot unmount '/usr': umount failed cannot unmount '/': umount failed For now, let's remove the shutdown KEYWORD from the zfs service, as people are reporting problems in their setups: https://lists.freebsd.org/pipermail/freebsd-current/2020-November/077559.html In the future, we may think of stopping zfs on shutdown after all the other services and just before init(8) exits. Another interesting option might be to a new rcorder(8) KEYWORD like "shutdownjail", but this idea would need to be discussed a bit. Reported by: Johan Hendriks <joh.hendriks gmail.com> Reported by: Yasuhiro KIMURA <yasu utahime.org> Reported by: Tomoaki AOKI <junchoon dec.sakura.ne.jp> Approved by: kevans (src) MFC: 3 days Differential Revision: https://reviews.freebsd.org/D27263 Notes: svn path=/head/; revision=367893
* Fix startup of gssd when /usr is a separately mounted local file system.Rick Macklem2020-11-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | meowthink@gmail.com reported that the gssd daemon was not starting, because /etc/rc.d/gssd was executed before his local /usr file system was mounted. He fixed the problem by adding mountcritlocal to the REQUIRED line. This fix seems safe and works for a separately mounted /usr file system on a local disk. The case of a separately mounted remote /usr file system (such as NFS) is still broken, but there is no obvious solution for that. Adding mountcritremote would fix the problem, but it would cause a POLA violation, because all kerberized NFS mounts in /etc/fstab would need the "late" option specified to work. Submitted by: meowthink@gmail.com Reported by: meowthink@gmail.com Reviewed by: 0mp MFC after: 2 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D27203 Notes: svn path=/head/; revision=367660
* Add support for the new mountd -R option.Rick Macklem2020-11-063-6/+30
| | | | | | | | | | | | | | | | | | | | r376026 added a new "-R" option to mountd, which tells it to not support the Mount protocol (not used by NFSv4) and not register with rpcbind. Rpcbind is considered a security issue by some sites now. This patch adds a new yes/no variable called nfsv4_server_only. When that is set, make vfs.nfsd.server_min_vers=4 and set "=R" for mountd. Setting vfs.nfsd.server_min_vers=4 tells nfsd to not register with rpcbind. While here, add a check for "load_kld nfsd" failing to nfsd. Reviewed by: 0mp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D26938 Notes: svn path=/head/; revision=367423
* Replace literal uses of /usr/local with a variableStefan Eßer2020-11-032-7/+12
| | | | | | | | | | | | | | | | | | The variable defaults to "/usr/local", unless sysctl returns some other value for "user.localbase". The value of user.localbase defaults to _PATH_LOCALBASE as defined in paths.h and thus this commit has no immediate effect. The purpose of this change is to make /etc/defaults/rc.conf automatically use the value of _PATH_LOCALBASE when not set to the default value. Reviewed by: imp, scottl MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D27014 Notes: svn path=/head/; revision=367294
* rc.d/zfs: Add shutdown to KEYWORDSMateusz Piotrowski2020-11-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem is that Without walling /etc/rc.d/zfs on shutdown, resources associated with ZFS mounts are not freed and the jails will remain in dying state. In addition, the dataset is now in a dangling state, as the jail it is attached to is dying. A known workaround for jails was to add the following lines to /etc/jail.conf, to make sure that "service zfs stop" is run when the jail is stopped: exec.stop = "/bin/sh /etc/rc.shutdown"; exec.stop += "/usr/sbin/service zfs stop || /usr/bin/true"; While the workaround seems to be okay-ish for the jail situation, it is still unclean. However, for physical hosts this may wreak havoc with the pool if shared spares are used, as "zfs unshare" is never invoked on shutdown. PR: 147444 Submitted by: Markus Stoff <markus__stoffdv_at> Reported by: Mykah <mburkhardt__exavault_com> Reviewed by: cy Approved by: cy (src) MFC after: 1 week Relnotes: yes Differential Revision: https://reviews.freebsd.org/D27039 Notes: svn path=/head/; revision=367291
* rc.d/syscons: remove spaces before tabEd Maste2020-10-251-1/+1
| | | | Notes: svn path=/head/; revision=367043
* Destroy cloned interfaces at netif stop, netif restart and shutdown.Cy Schubert2020-10-191-1/+1
| | | | | | | | | | | | | | | | This is especially important during shutdown because a child interface of lagg with WOL enabled will not enable WOL at interface shutdown and thus no WOL to wake up the device (and machine). PR: 158734, 109980 Reported by: Antonio Huete Jimenez <tuxillo at quantumachine.net> Marat N.Afanasyev <marat at zealot.ksu.ru> reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D26797 Notes: svn path=/head/; revision=366857
* [pf] /etc/rc.d/pf should REQUIRE routingPawel Biernacki2020-10-081-2/+1
| | | | | | | | | | | | | | | | | | | | | When a system with pf_enable="YES" in /etc/rc.conf uses hostnames in /etc/pf.conf, these hostnames cannot be resolved via external nameservers because the default route is not yet set. This results in an empty (all open) ruleset. Since r195026 already put netif back to REQUIRE, this change does not affect the issue that the firewall should rather have been setup before any network traffic can occur. PR: 211928 Submitted by: Robert Schulze Reported by: Robert Schulze Tested by: Mateusz Kwiatkowski No objections from: kp MFC after: 3 days Notes: svn path=/head/; revision=366537
* loader: zfs should support bootonce an nextbootToomas Soome2020-09-212-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bootonce feature is temporary, one time boot, activated by "bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag. By default, the bootonce setting is reset on attempt to boot and the next boot will use previously active BE. By setting zfs_bootonce_activate="YES" in rc.conf, the bootonce BE will be set permanently active. bootonce dataset name is recorded in boot pool labels, bootenv area. in case of nextboot, the nextboot_enable boolean variable is recorded in freebsd:nvstore nvlist, also stored in boot pool label bootenv area. On boot, the loader will process /boot/nextboot.conf if nextboot_enable is "YES", and will set nextboot_enable to "NO", preventing /boot/nextboot.conf processing on next boot. bootonce and nextboot features are usable in both UEFI and BIOS boot. To use bootonce/nextboot features, the boot loader needs to be updated on disk; if loader.efi is stored on ESP, then ESP needs to be updated and for BIOS boot, stage2 (zfsboot or gptzfsboot) needs to be updated (gpart or other tools). At this time, only lua loader is updated. Sponsored by: Netflix, Klara Inc. Differential Revision: https://reviews.freebsd.org/D25512 Notes: svn path=/head/; revision=365938
* Declare dependency relationship once instead of twice for zpoolXin LI2020-09-051-1/+1
| | | | | | | and zvol. Notes: svn path=/head/; revision=365354
* Make zpool on GELI work again.Xin LI2020-09-042-2/+1
| | | | | | | | | | | | | | | | | | After OpenZFS import, zpool auto import behavior was moved to an explicit "zpool import -a", and the zpool rc.d script was added as a prerequisite of zvol. However, in r299839, zvol was added as a prerequisite of dumpon, making it to start very early and before all 'disks' providers. At this time, dumping on a zvol is not supported, so remove this requirement and make zpool depend on disks to allow zpool on full disk encryption work. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D26333 Notes: svn path=/head/; revision=365348
* /etc/zfs/zpool.cache is the preferred (and new) location of zpool.cache.Cy Schubert2020-08-271-2/+2
| | | | | | | | | | | Check for it first. Only use /boot/zfs/zpool.cache if the /etc/zfs version is not found and good. Reported by: avg Suggested by: avg, kevans Notes: svn path=/head/; revision=364867
* To avoid breakage for those who build/install without ZFS onlyCy Schubert2020-08-261-1/+1
| | | | | | | | | rely on rc.d/zpool's BEFORE specification. Reported by: rpokala Notes: svn path=/head/; revision=364835
* As of r364746 (OpenZFS import) existing ZPOOLs are not importedCy Schubert2020-08-265-9/+34
| | | | | | | | | | | | | | | | | | prior to zvol and mountcritlocal resulting in ZVOLs (swap and virtual machine UFS filesystems) being unavailable, leading to boot failures. We move the zpool import from zfs to a new zpool script, with the -N option to avoid mounting datasets while making the ZPOOL's datasets available for "legacy" mount (mountpoint=legacy) and ZVOLs available for subsequent use for swap (in the zvol rc sript) or for UFS or other filesystems in fstab(5), mounted by mountcritlocal. Reviewed by: freqlabs (previous version) Differential Revision: https://reviews.freebsd.org/D26185 Notes: svn path=/head/; revision=364817
* Merge OpenZFS support in to HEAD.Matt Macy2020-08-251-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The primary benefit is maintaining a completely shared code base with the community allowing FreeBSD to receive new features sooner and with less effort. I would advise against doing 'zpool upgrade' or creating indispensable pools using new features until this change has had a month+ to soak. Work on merging FreeBSD support in to what was at the time "ZFS on Linux" began in August 2018. I first publicly proposed transitioning FreeBSD to (new) OpenZFS on December 18th, 2018. FreeBSD support in OpenZFS was finally completed in December 2019. A CFT for downstreaming OpenZFS support in to FreeBSD was first issued on July 8th. All issues that were reported have been addressed or, for a couple of less critical matters there are pull requests in progress with OpenZFS. iXsystems has tested and dogfooded extensively internally. The TrueNAS 12 release is based on OpenZFS with some additional features that have not yet made it upstream. Improvements include: project quotas, encrypted datasets, allocation classes, vectorized raidz, vectorized checksums, various command line improvements, zstd compression. Thanks to those who have helped along the way: Ryan Moeller, Allan Jude, Zack Welch, and many others. Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D25872 Notes: svn path=/head/; revision=364746
* When booting a system with WITHOUT_IPFILTER the following errorsCy Schubert2020-08-116-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | are encountered at boot time: rcorder: requirement `ipfs' in file `/etc/rc.d/netif' has no providers. rcorder: requirement `ipfilter' in file `/etc/rc.d/netif' has no providers. rcorder: requirement `ipfilter' in file `/etc/rc.d/netwait' has no providers. rcorder: requirement `ipfilter' in file `/etc/rc.d/net_watchdog' has no providers. rcorder: requirement `ipfilter' in file `/etc/rc.d/securelevel' has no providers. Listing its own requrements in BEFORE rather than use REQUIRE of non-optional scripts resolves this issue. The issue was discovered and patched by glebius at Netflix. Submitted by: glebius Reported by: glebius MFC after: 1 week Notes: svn path=/head/; revision=364133
* Load ipfilter, ipnat, and ippool rules, and start ipmon in a vnet jail.Cy Schubert2020-07-234-4/+4
| | | | | | | | | PR: 248109 Reported by: joeb1@a1poweruser.com MFC after: 2 weeks Notes: svn path=/head/; revision=363452
* rc.firewall: Merge two identical conditions into one.Mark Johnston2020-07-231-3/+0
| | | | | | | | | | | No functional change intended. PR: 247949 Submitted by: Jose Luis Duran <jlduran@gmail.com> MFC after: 1 week Notes: svn path=/head/; revision=363449
* Revert that!Simon J. Gerraty2020-07-191-3/+0
| | | | Notes: svn path=/head/; revision=363351
* Oops missed Makefile.configSimon J. Gerraty2020-07-191-0/+3
| | | | Notes: svn path=/head/; revision=363350
* Remove excess spaces from rc.d scriptsAllan Jude2020-07-132-2/+2
| | | | | | | | | | | | | | | | | | | | The space between words is already being echoed by the space between quoted strings: % echo 'foo' 'bar' foo bar % echo 'foo' ' baz' foo baz Found in `ipfw` and `mountlate` messages. PR: 247948 Submitted by: Jose Luis Duran <jlduran@gmail.com> MFC after: 2 weeks Sponsored by: Klara Inc. Notes: svn path=/head/; revision=363142
* Make the linux rc script use linrdlnk by default.Edward Tomasz Napierala2020-07-041-1/+1
| | | | | | | | | | | | This fixes Linux gettyname(3), with caveats (see PR). PR: kern/240767 MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25558 Notes: svn path=/head/; revision=362935
* Remove ldconfig_paths_aout from rc.conf after r362543Mateusz Piotrowski2020-06-231-2/+0
| | | | | | | | Approved by: imp Differential Revision: https://reviews.freebsd.org/D25415 Notes: svn path=/head/; revision=362550
* ldconfig: remove i386 aout invocationEd Maste2020-06-231-16/+0
| | | | | | | | | | | | | | aout support in ldconfig hasn't been required since FreeBSD 2.x. Anyone still using FreeBSD 2 shared libraries can use a FreeBSD 2 ldconfig to generate aout ldconfig hints. Reviewed by: dim, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24883 Notes: svn path=/head/; revision=362543
* network.subr: unobsolete gif_interfacesEugene Grosbein2020-06-221-3/+0
| | | | | | | | | | | | There are cases when gif_interfaces cannot be replaced with cloned_interfaces, such as tunnels with external IPv6 addresses and internal IPv4 or vice versa. Such configuration requires extra invocation of ifconfig(8) and supported with gif_interfaces only. MFC after: 1 week Notes: svn path=/head/; revision=362502
* Move the devmatch rc.d script before netif in the boot process.Colin Percival2020-05-161-0/+1
| | | | | | | | | | | | | Prior to this change, using lagg to aggregate wired and wireless networks was broken in the (relatively common) case where wifi drivers + firmware are loaded by devmatch, since the interface didn't exist at the time when the lagg interface was being created. Suggested by: imp MFC after: 3 days Notes: svn path=/head/; revision=361114
* Due to popular demand, revert r360102.Cy Schubert2020-04-191-7/+4
| | | | | | | Reported by: many Notes: svn path=/head/; revision=360106
* Conditionally install Kerberos rc files based on MK_KERBEROS_SCRIPTSCy Schubert2020-04-191-4/+7
| | | | | | | | | | | | | | instead of MK_KERBEROS. The reason for this change is some users prefer to build FreeBSD WITHOUT_KERBEROS, wanting to retain the Kerberos rc scripts to start/stop MIT Kerberos or Heimdal from ports. PR: 197337 Reported by: Adam McDougall <ebay at looksharp.net> Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D24252 Notes: svn path=/head/; revision=360102
* sshd: Warn about missing ssh-keygen only when necessaryMateusz Piotrowski2020-04-151-7/+8
| | | | | | | | | | | | | | | | | | | | | | The sshd service is using ssh-keygen to generate missing SSH keys. If ssh-keygen is missing, it prints the following message: > /etc/rc.d/sshd: WARNING: /usr/bin/ssh-keygen does not exist. It makes sense when the key is not generated yet and cannot be created because ssh-keygen is missing. The problem is that even if the key is present on the host, the sshd service would still warn about missing ssh-keygen (even though it does not need it). Reviewed by: emaste Approved by: emaste (src) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D23911 Notes: svn path=/head/; revision=359973
* Revert r359294 per manu's requestBaptiste Daroussin2020-03-252-78/+62
| | | | | | | | | It breaks etcupdate Reported by: cy Notes: svn path=/head/; revision=359296
* pkgbase: Stop threating rc files as config filesEmmanuel Vadot2020-03-252-62/+78
| | | | | | | | | | | | rc scripts arent configuration files so use FILES instead of CONFS. While here put rc scripts into related package (sendmail in the FreeBSD-sendmail package, wpa_supplicant in the FreeBSD-wpa etc ...) Reviewed by: bapt, emaste Differential Revision: https://reviews.freebsd.org/D24177 Notes: svn path=/head/; revision=359294
* Make ICMP redirect processing depend on routing daemon.Alexander V. Chernikov2020-03-233-3/+34
| | | | | | | | | Submitted by: lutz at donnerhacke.de Reviewed by: melifaro,rgrimes Differential Revision: https://reviews.freebsd.org/D23329 Notes: svn path=/head/; revision=359244
* Add fsck_flags config optionLeandro Lupori2020-03-182-2/+5
| | | | | | | | | | | | | | | | | | | On UFS with SU+J, sometimes fsck's default recovery from journal marks the filesystem as clean but some errors remain. With SU only, default fsck in preen mode sometimes thinks all errors have been fixed but some still remain. To address the issues above, this change adds a new config option: fsck_flags. By default it's set to -p, but the user may change it to -y or -f -y, for instance, to force a full fsck after a system crash. Submitted by: jhibbits@ (original version) Reviewed by: mckusick Differential Revision: https://reviews.freebsd.org/D24087 Notes: svn path=/head/; revision=359069
* Remove /etc/host.conf, which was automatically generated fromHiroki Sato2020-03-182-105/+0
| | | | | | | | | | | nsswitch.conf for backward compatibility. This file was used over 19 years ago, before introducing nsdispatch() in the name-service lookup APIs. MFC after: 3 days Notes: svn path=/head/; revision=359068
* retire amd(8)Ed Maste2020-03-092-55/+0
| | | | | | | | | | | | | | autofs was introduced with FreeBSD 10.1 and is the supported method for automounting filesystems. As of r296194 the amd man page claimed that it is deprecated. Remove it from base now; the sysutils/am-utils port is still available if necessary. Discussed with: cy Relnotes: Yes Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=358821
* auditd_stop: wait_for_pids instead of sleepingRyan Libby2020-02-061-1/+3
| | | | | | | | | | | | | | | | It's faster and more reliable to wait_for_pids than to sleep 1. cem@ suggested just to remove auditd_stop() and use the rc.subr default stop action (SIGTERM instead of audit -t), which has a built-in wait_for_pids. That may be a better solution. Discussed with: cem Reviewed by: asomers Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D23223 Notes: svn path=/head/; revision=357611
* libexec/rc/rc.d/ipfw: style fix after r356943Eugene Grosbein2020-01-211-2/+3
| | | | | | | | | | Also, make sure it does not break for systems without ipfw code loaded. MFC after: 1 months X-MFC-with: 356943 Notes: svn path=/head/; revision=356944
* Correct "service ipfw status" for INET6-only systems.Eugene Grosbein2020-01-211-0/+3
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=356943
* Run netoptions startup script in vnet jails.Bjoern A. Zeeb2020-01-081-1/+1
| | | | | | | | | | | | | | People use rc.conf inside vnet jails to configure networking setups. Presumably because some sysctl were not virtualised up until r356527 the script was not run for vnet jails leaving the rc.conf options without effect for non-obvious reasons. Run the netoptions startup script also for VNET jails now to make the rc.conf options work. PR: 243193 MFC after: 2 weeks Notes: svn path=/head/; revision=356528
* rc.shutdown: kill shutdown process after logging messageEd Maste2019-12-071-1/+1
| | | | | | | | | | Move the kill -KILL $$ back to the pre-r354446 location at the end of the shutdown timeout handler. MFC with: r354446 Notes: svn path=/head/; revision=355476
* Regularize my copyright noticeWarner Losh2019-12-041-1/+1
| | | | | | | | | | | | o Remove All Rights Reserved from my notices o imp@FreeBSD.org everywhere o regularize punctiation, eliminate date ranges o Make sure that it's clear that I don't claim All Rights reserved by listing All Rights Reserved on same line as other copyright holders (but not me). Other such holders are also listed last where it's clear. Notes: svn path=/head/; revision=355394
* ldconfig: fetch hw.machine_arch only onceMateusz Guzik2019-11-301-3/+5
| | | | | | | | This happens to be of significance with poudriere which runs the script a lot when installing packages. Notes: svn path=/head/; revision=355232
* Allow opt-out of automatic ntpd leapfile checking/fetching.Ian Lepore2019-11-251-2/+32
| | | | | | | | | | | | | | | | When a system has no internet connection, or when it is configured to obtain ntpd leapfiles from some source other than the internet, or even when the sysadmin has decided for some reason to customize ntp.conf to eliminate use of the leapfile, the rc.d/ntpd script emits various error messages related to the file. This change allows setting the rc var ntp_db_leapfile to NONE to disable all automatic processing related to that file in rc.d/ntpd. Differential Revision: https://reviews.freebsd.org/D22461 Notes: svn path=/head/; revision=355100
* Create /etc/os-release file.Warner Losh2019-11-203-0/+48
| | | | | | | | | | | | | | | | | | | | | | Each boot, regenerate /var/run/os-release based on the currently running system. Create a /etc/os-release symlink pointing to this file (so that this doesn't create a new reason /etc can not be mounted read-only). This is compatible with what other systems do and is what the sysutil/os-release port attempted to do, but in an incomplete way. Linux, Solaris and DragonFly all implement this natively as well. The complete standard can be found at https://www.freedesktop.org/software/systemd/man/os-release.html Moving this to the base solves both the non-standard location problem with the port, as well as the lack of update of this file on system update. Bump __FreeBSD_version to 1300060 PR: 238953 Differential Revision: https://reviews.freebsd.org/D22271 Notes: svn path=/head/; revision=354922
* Add 'linux_mounts_enable' rc.conf(5) variable, to make it possibleEdward Tomasz Napierala2019-11-132-6/+10
| | | | | | | | | | | | | to disable mounting Linux-specific filesystems under /compat/linux when 'linux_enable' is set to YES. Reviewed by: netchild, ian (earlier version) MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D22320 Notes: svn path=/head/; revision=354690
* Extend the linux rc script to mount the neccessary file systems,Edward Tomasz Napierala2019-11-071-1/+20
| | | | | | | | | | | | set ELF fallback brand, and load pty(4). Reviewed by: emaste (earlier version) MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D21874 Notes: svn path=/head/; revision=354458