Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd4cafbbf3 | ||
|
|
61e211c1c4 | ||
|
|
40d3795fba | ||
|
|
fa39271d7a | ||
|
|
0077e54146 | ||
|
|
871fa56baa | ||
|
|
53f6bd3690 | ||
|
|
6074cbd651 | ||
|
|
8b9ea8b9e6 | ||
|
|
c47b497483 | ||
|
|
977811563d | ||
|
|
47aa0b93cd | ||
|
|
f680c89c26 |
195
ChangeLog
195
ChangeLog
@@ -1,3 +1,117 @@
|
|||||||
|
commit 61e211c1c4f51fdb8babb9a70ed7ce138d71c80b
|
||||||
|
Author: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
init.d: initial service adjustments for docker support
|
||||||
|
|
||||||
|
Add -docker keyword to the same scripts that have -lxc keyword.
|
||||||
|
|
||||||
|
commit 40d3795fbacc70349a52efc670a22458f4e2d7c4
|
||||||
|
Author: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
librc: fix Docker auto detection
|
||||||
|
|
||||||
|
The original auto detection of Docker containers assumed the presence of
|
||||||
|
a container environment variable. However, Docker-1.12 does not
|
||||||
|
implement this, and I'm not sure which versions of docker implemented
|
||||||
|
it.
|
||||||
|
|
||||||
|
The new test is for the presence of a file named .dockerenv in the
|
||||||
|
root directory.
|
||||||
|
|
||||||
|
commit fa39271d7a979ec8c1cf9c694d256456528baaf8
|
||||||
|
Author: Doug Freed <dwfreed@mtu.edu>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
rc-logger: refuse to cat TMPLOG into itself
|
||||||
|
|
||||||
|
This prevents an infinite loop in case somebody decides to set
|
||||||
|
rc_log_path to match TMPLOG.
|
||||||
|
|
||||||
|
commit 0077e54146c0c6180769bb5fa2d8da2924038baa
|
||||||
|
Author: Julian Ospald <hasufell@posteo.de>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
Build: fix hardcoded pkg-config invocation
|
||||||
|
|
||||||
|
This fixes #89.
|
||||||
|
|
||||||
|
commit 871fa56baaa0f1ae2b6531303f73f18acd74a71e
|
||||||
|
Author: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
version 0.21.3
|
||||||
|
|
||||||
|
commit 53f6bd369057fd0f48c6ecfa813d35bfe47196cd
|
||||||
|
Author: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
update changelog
|
||||||
|
|
||||||
|
commit 6074cbd651da7f27fc6fbc20a66f651c2577857b
|
||||||
|
Author: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
hwclock: always use --noadjfile if available
|
||||||
|
|
||||||
|
When we use the --utc or --localtime switch, also use --noadjfile if it
|
||||||
|
is available. This means hwclock will not use a drift file.
|
||||||
|
|
||||||
|
X-Gentoo-Bug: 584722
|
||||||
|
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=584722
|
||||||
|
|
||||||
|
commit 8b9ea8b9e6631d5cd987a7cb31560aa5a13c060b
|
||||||
|
Author: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
version 0.21.2
|
||||||
|
|
||||||
|
commit c47b497483040107263c9b9984474db5c569485b
|
||||||
|
Author: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
update changelog
|
||||||
|
|
||||||
|
commit 977811563dd93cab7a64caefa0e86f5b864fc04f
|
||||||
|
Author: Benda Xu <heroxbd@gentoo.org>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
Fix PATH for Prefix.
|
||||||
|
|
||||||
|
1. remove default /bin:/sbin:/usr/bin:/usr/sbin
|
||||||
|
2. PKG_PREFIX should be defaulted to $(PREFIX)/usr
|
||||||
|
3. LOCAL_PREFIX should be defaulted to $(PREFIX)/usr/local
|
||||||
|
|
||||||
|
X-Gentoo-Bug:583634
|
||||||
|
X-Gentoo-Bug-URL:https://bugs.gentoo.org/show_bug.cgi?id=583634
|
||||||
|
|
||||||
|
commit 47aa0b93cdf14253c3a75b4feefabe97c43cbf8a
|
||||||
|
Author: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
fstabinfo/mountinfo: ensure /etc/fstab exists before calling setmntent
|
||||||
|
|
||||||
|
This is based on a patch by A. Wilcox <awilfox.gentoo@foxkit.us>.
|
||||||
|
|
||||||
|
X-Gentoo-Bug: 478226
|
||||||
|
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=478226
|
||||||
|
|
||||||
|
X-Gentoo-Bug: 478226
|
||||||
|
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=478226
|
||||||
|
|
||||||
|
commit f680c89c26709164934ee72534af7a3960166cf3
|
||||||
|
Author: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
version 0.21.1
|
||||||
|
|
||||||
|
commit 5bfb7d6c77ff533e34e2bbfe5b6e57410d961d70
|
||||||
|
Author: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
|
|
||||||
|
Update ChangeLog
|
||||||
|
|
||||||
commit 12c8248b5f53879935d4e62ef42023f703c7b636
|
commit 12c8248b5f53879935d4e62ef42023f703c7b636
|
||||||
Author: William Hubbs <w.d.hubbs@gmail.com>
|
Author: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
||||||
@@ -1004,84 +1118,3 @@ Commit: William Hubbs <w.d.hubbs@gmail.com>
|
|||||||
mountinfo: fix -e and -E options
|
mountinfo: fix -e and -E options
|
||||||
|
|
||||||
Add the -e and -E options to getoptstring so they are recognized.
|
Add the -e and -E options to getoptstring so they are recognized.
|
||||||
|
|
||||||
commit eeadca0b8a5b87c26e60a58563251604350a7a3b
|
|
||||||
Author: William Hubbs <w.d.hubbs@gmail.com>
|
|
||||||
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
|
||||||
|
|
||||||
Add EERROR_QUIET and EINFO_QUIET to environment whitelist
|
|
||||||
|
|
||||||
commit dde339070b4850dc1fadf4992cc01d3468992106
|
|
||||||
Author: William Hubbs <w.d.hubbs@gmail.com>
|
|
||||||
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
|
||||||
|
|
||||||
Increment version
|
|
||||||
|
|
||||||
commit 1736be3bc3ebbc1440f87b49fc353e81fb0a6037
|
|
||||||
Author: Doug Freed <dwfreed@mtu.edu>
|
|
||||||
Commit: Doug Freed <dwfreed@mtu.edu>
|
|
||||||
|
|
||||||
savecache: Fix unable to create cache message
|
|
||||||
|
|
||||||
The cache is created in $RC_LIBEXECDIR, not $RC_SVCDIR, so fix the error
|
|
||||||
message when we fail to create it to match.
|
|
||||||
|
|
||||||
commit a36a635b016a7427dd1739a26c951fedf22f0dec
|
|
||||||
Author: Mike Gilbert <floppym@gentoo.org>
|
|
||||||
Commit: Doug Freed <dwfreed@mtu.edu>
|
|
||||||
|
|
||||||
tmpfiles: Recognize type 'v' (create btrfs subvol)
|
|
||||||
|
|
||||||
This change does NOT implement btrfs subvol creation. Instead, it
|
|
||||||
treats 'v' the same as 'd', which is an acceptable fallback
|
|
||||||
according to the manual.
|
|
||||||
|
|
||||||
Fixes #58
|
|
||||||
|
|
||||||
commit 9310ccc06bcadd8897aed51cd51c94fccb7d9c07
|
|
||||||
Author: Mike Gilbert <floppym@gentoo.org>
|
|
||||||
Commit: Doug Freed <dwfreed@mtu.edu>
|
|
||||||
|
|
||||||
Remove execute bit from tmpfiles.sh.in
|
|
||||||
|
|
||||||
commit 0c2e4eb3cd7935d375b74099a3a9a5fe519e6cab
|
|
||||||
Author: William Hubbs <w.d.hubbs@gmail.com>
|
|
||||||
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
|
||||||
|
|
||||||
Update ChangeLog
|
|
||||||
|
|
||||||
commit d2ce07e227ec95370e8aee5f1199edc6ad61aff9
|
|
||||||
Author: William Hubbs <w.d.hubbs@gmail.com>
|
|
||||||
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
|
||||||
|
|
||||||
Add rc-sstat script
|
|
||||||
|
|
||||||
The rc-sstat script is written to display status of s6 services and
|
|
||||||
run rc-status to display all services status.
|
|
||||||
|
|
||||||
This currently only works on Linux.
|
|
||||||
|
|
||||||
commit b209fe3859c05c286037843bb34058f849c54b15
|
|
||||||
Author: Mike Gilbert <floppym@gentoo.org>
|
|
||||||
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
|
||||||
|
|
||||||
bootmisc: Don't call dmesg in systemd-nspawn containers
|
|
||||||
|
|
||||||
This fixes #57.
|
|
||||||
|
|
||||||
commit c94c8288cd5217b01c24d6f048c64ebbc30bee02
|
|
||||||
Author: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
Commit: Mike Frysinger <vapier@gentoo.org>
|
|
||||||
|
|
||||||
fix link to s6 website
|
|
||||||
|
|
||||||
commit bcb9c44e73ccf332c7c961a6f82520699c6e776d
|
|
||||||
Author: Mike Gilbert <floppym@gentoo.org>
|
|
||||||
Commit: William Hubbs <w.d.hubbs@gmail.com>
|
|
||||||
|
|
||||||
man: Document the stopsig variable
|
|
||||||
|
|
||||||
This variable can be used to set the signal to send if the service is
|
|
||||||
using start-stop-daemon.
|
|
||||||
|
|
||||||
This fixes #56
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
NAME= openrc
|
NAME= openrc
|
||||||
VERSION= 0.21
|
VERSION= 0.21.3
|
||||||
PKG= ${NAME}-${VERSION}
|
PKG= ${NAME}-${VERSION}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ depend()
|
|||||||
{
|
{
|
||||||
after procfs
|
after procfs
|
||||||
use modules devfs
|
use modules devfs
|
||||||
keyword -openvz -prefix -systemd-nspawn -vserver -lxc
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ depend()
|
|||||||
{
|
{
|
||||||
need localmount termencoding
|
need localmount termencoding
|
||||||
after hotplug bootmisc modules
|
after hotplug bootmisc modules
|
||||||
keyword -openvz -prefix -systemd-nspawn -uml -vserver -xenu -lxc
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ depend()
|
|||||||
{
|
{
|
||||||
provide dev-mount
|
provide dev-mount
|
||||||
before dev
|
before dev
|
||||||
keyword -prefix -systemd-nspawn -vserver -lxc
|
keyword -docker -lxc -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_dev()
|
mount_dev()
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ description="Set the dmesg level for a cleaner boot"
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
before dev modules
|
before dev modules
|
||||||
keyword -lxc -prefix -systemd-nspawn -vserver
|
keyword -docker -lxc -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ _IFS="
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
use dev clock modules
|
use dev clock modules
|
||||||
keyword -jail -openvz -prefix -systemd-nspawn -timeout -vserver -lxc -uml
|
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -timeout -vserver -uml
|
||||||
}
|
}
|
||||||
|
|
||||||
_abort() {
|
_abort() {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
description="Sets the hostname of the machine."
|
description="Sets the hostname of the machine."
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
keyword -prefix -systemd-nspawn -lxc
|
keyword -docker -lxc -prefix -systemd-nspawn
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ depend()
|
|||||||
else
|
else
|
||||||
before *
|
before *
|
||||||
fi
|
fi
|
||||||
keyword -openvz -prefix -systemd-nspawn -uml -vserver -xenu -lxc
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
||||||
}
|
}
|
||||||
|
|
||||||
setupopts()
|
setupopts()
|
||||||
@@ -69,6 +69,16 @@ _hwclock()
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_noadjfile()
|
||||||
|
{
|
||||||
|
if ! yesno $clock_adjfile; then
|
||||||
|
# Some implementations don't handle adjustments
|
||||||
|
if LC_ALL=C hwclock --help 2>&1 | grep -q "\-\-noadjfile"; then
|
||||||
|
echo --noadjfile
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
local retval=0 errstr=""
|
local retval=0 errstr=""
|
||||||
@@ -91,16 +101,16 @@ start()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Always set the kernel's time zone.
|
# Always set the kernel's time zone.
|
||||||
_hwclock --systz $utc_cmd $clock_args
|
_hwclock --systz $utc_cmd $(get_noadjfile) $clock_args
|
||||||
: $(( retval += $? ))
|
: $(( retval += $? ))
|
||||||
|
|
||||||
if [ -e /etc/adjtime ] && yesno $clock_adjfile; then
|
if [ -e /etc/adjtime ] && yesno $clock_adjfile; then
|
||||||
_hwclock --adjust $utc_cmd
|
_hwclock --adjust $utc_cmd $(get_noadjfile)
|
||||||
: $(( retval += $? ))
|
: $(( retval += $? ))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if yesno ${clock_hctosys:-YES}; then
|
if yesno ${clock_hctosys:-YES}; then
|
||||||
_hwclock --hctosys $utc_cmd $clock_args
|
_hwclock --hctosys $utc_cmd $(get_noadjfile) $clock_args
|
||||||
: $(( retval += $? ))
|
: $(( retval += $? ))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -122,14 +132,7 @@ stop()
|
|||||||
|
|
||||||
ebegin "Setting hardware clock using the system clock" "[$utc]"
|
ebegin "Setting hardware clock using the system clock" "[$utc]"
|
||||||
|
|
||||||
if ! yesno $clock_adjfile; then
|
_hwclock --systohc $utc_cmd $(get_noadjfile) $clock_args
|
||||||
# Some implementations don't handle adjustments
|
|
||||||
if LC_ALL=C hwclock --help 2>&1 | grep -q "\-\-noadjfile"; then
|
|
||||||
utc_cmd="$utc_cmd --noadjfile"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
_hwclock --systohc $utc_cmd $clock_args
|
|
||||||
retval=$?
|
retval=$?
|
||||||
|
|
||||||
eend $retval "Failed to sync clocks"
|
eend $retval "Failed to sync clocks"
|
||||||
@@ -144,5 +147,5 @@ save()
|
|||||||
show()
|
show()
|
||||||
{
|
{
|
||||||
setupopts
|
setupopts
|
||||||
hwclock --show "$utc_cmd" $clock_args
|
hwclock --show "$utc_cmd" $(get_noadjfile) $clock_args
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ depend()
|
|||||||
{
|
{
|
||||||
need localmount termencoding
|
need localmount termencoding
|
||||||
after bootmisc
|
after bootmisc
|
||||||
keyword -openvz -prefix -systemd-nspawn -uml -vserver -xenu -lxc
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ depend()
|
|||||||
need fsck
|
need fsck
|
||||||
use lvm modules mtab
|
use lvm modules mtab
|
||||||
after lvm modules
|
after lvm modules
|
||||||
keyword -jail -prefix -systemd-nspawn -vserver -lxc
|
keyword -docker -jail -lxc -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ description="Loads a user defined list of kernel modules."
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
use isapnp
|
use isapnp
|
||||||
keyword -openvz -prefix -systemd-nspawn -vserver -lxc
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ description="Re-mount filesytems read-only for a clean reboot."
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
need killprocs savecache
|
need killprocs savecache
|
||||||
keyword -openvz -prefix -systemd-nspawn -vserver -lxc
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ depend()
|
|||||||
{
|
{
|
||||||
after modules
|
after modules
|
||||||
need sysfs
|
need sysfs
|
||||||
keyword -jail -lxc -openvz -prefix -systemd-nspawn -uml -vserver
|
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -uml -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
get_interfaces()
|
get_interfaces()
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ depend()
|
|||||||
want $mywant
|
want $mywant
|
||||||
use afc-client amd openvpn
|
use afc-client amd openvpn
|
||||||
use dns
|
use dns
|
||||||
keyword -jail -prefix -systemd-nspawn -vserver -lxc
|
keyword -docker -jail -lxc -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ ttyn=${rc_tty_number:-${RC_TTY_NUMBER:-12}}
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
need localmount
|
need localmount
|
||||||
keyword -openvz -prefix -systemd-nspawn -vserver -lxc
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
_setleds()
|
_setleds()
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ depend()
|
|||||||
{
|
{
|
||||||
use modules devfs
|
use modules devfs
|
||||||
need localmount
|
need localmount
|
||||||
keyword -openvz -prefix -systemd-nspawn -vserver -lxc
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ description="Mount the root fs read/write"
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
need fsck
|
need fsck
|
||||||
keyword -jail -openvz -prefix -systemd-nspawn -vserver -lxc
|
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
before localmount
|
before localmount
|
||||||
keyword -jail -openvz -prefix -systemd-nspawn -vserver -lxc
|
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
need localmount
|
need localmount
|
||||||
keyword -jail -openvz -prefix -systemd-nspawn -vserver -lxc
|
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
start()
|
start()
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ depend()
|
|||||||
{
|
{
|
||||||
before *
|
before *
|
||||||
provide clock
|
provide clock
|
||||||
keyword -openvz -prefix -systemd-nspawn -uml -vserver -xenu -lxc
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
||||||
}
|
}
|
||||||
|
|
||||||
# swclock is an OpenRC built in
|
# swclock is an OpenRC built in
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ sysfs_opts=nodev,noexec,nosuid
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
keyword -lxc -prefix -systemd-nspawn -vserver
|
keyword -docker -lxc -prefix -systemd-nspawn -vserver
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_sys()
|
mount_sys()
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ ttyn=${rc_tty_number:-${RC_TTY_NUMBER:-12}}
|
|||||||
|
|
||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
keyword -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
||||||
use root
|
use root
|
||||||
after bootmisc
|
after bootmisc
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ description="Initializes the random number generator."
|
|||||||
depend()
|
depend()
|
||||||
{
|
{
|
||||||
need localmount
|
need localmount
|
||||||
keyword -jail -lxc -openvz -prefix -systemd-nspawn
|
keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn
|
||||||
}
|
}
|
||||||
|
|
||||||
save_seed()
|
save_seed()
|
||||||
|
|||||||
@@ -3,4 +3,6 @@
|
|||||||
|
|
||||||
ifeq (${MKPREFIX},yes)
|
ifeq (${MKPREFIX},yes)
|
||||||
CPPFLAGS+= -DPREFIX
|
CPPFLAGS+= -DPREFIX
|
||||||
|
PKG_PREFIX?= $(PREFIX)/usr
|
||||||
|
SED_EXTRA= -e '/_PATH=.*usr.bin/d'
|
||||||
endif
|
endif
|
||||||
|
|||||||
2
mk/os.mk
2
mk/os.mk
@@ -13,7 +13,7 @@
|
|||||||
_OS_SH= uname -s | tr '/' '-'
|
_OS_SH= uname -s | tr '/' '-'
|
||||||
_OS:= $(shell ${_OS_SH})
|
_OS:= $(shell ${_OS_SH})
|
||||||
OS?= ${_OS}
|
OS?= ${_OS}
|
||||||
include ${MK}/os-${OS}.mk
|
|
||||||
include ${MK}/os-prefix.mk
|
include ${MK}/os-prefix.mk
|
||||||
|
include ${MK}/os-${OS}.mk
|
||||||
|
|
||||||
RC_LIB= /$(LIBNAME)/rc
|
RC_LIB= /$(LIBNAME)/rc
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
AR?= ar
|
AR?= ar
|
||||||
CP?= cp
|
CP?= cp
|
||||||
|
PKG_CONFIG?= pkg-config
|
||||||
ECHO?= echo
|
ECHO?= echo
|
||||||
INSTALL?= install
|
INSTALL?= install
|
||||||
RANLIB?= ranlib
|
RANLIB?= ranlib
|
||||||
@@ -26,7 +27,7 @@ ifeq (${MKPREFIX},yes)
|
|||||||
UPREFIX= ${PREFIX}/usr
|
UPREFIX= ${PREFIX}/usr
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
LOCAL_PREFIX= /usr/local
|
LOCAL_PREFIX= $(UPREFIX)/local
|
||||||
|
|
||||||
PICFLAG?= -fPIC
|
PICFLAG?= -fPIC
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
ifeq (${MKTERMCAP},ncurses)
|
ifeq (${MKTERMCAP},ncurses)
|
||||||
TERMCAP_CFLAGS:= $(shell pkg-config ncurses --cflags 2> /dev/null)
|
TERMCAP_CFLAGS:= $(shell ${PKG_CONFIG} ncurses --cflags 2> /dev/null)
|
||||||
LTERMCAP:= $(shell pkg-config ncurses --libs 2> /dev/null)
|
LTERMCAP:= $(shell ${PKG_CONFIG} ncurses --libs 2> /dev/null)
|
||||||
ifeq ($(LTERMCAP),)
|
ifeq ($(LTERMCAP),)
|
||||||
LIBTERMCAP?= -lncurses
|
LIBTERMCAP?= -lncurses
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -285,6 +285,9 @@ detect_container(const char *systype)
|
|||||||
return RC_SYS_RKT;
|
return RC_SYS_RKT;
|
||||||
else if (file_regex("/proc/1/environ", "container=systemd-nspawn"))
|
else if (file_regex("/proc/1/environ", "container=systemd-nspawn"))
|
||||||
return RC_SYS_SYSTEMD_NSPAWN;
|
return RC_SYS_SYSTEMD_NSPAWN;
|
||||||
|
else if (exists("/.dockerenv"))
|
||||||
|
return RC_SYS_DOCKER;
|
||||||
|
/* old test, I'm not sure when this was valid. */
|
||||||
else if (file_regex("/proc/1/environ", "container=docker"))
|
else if (file_regex("/proc/1/environ", "container=docker"))
|
||||||
return RC_SYS_DOCKER;
|
return RC_SYS_DOCKER;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -178,6 +178,9 @@ int main(int argc, char **argv)
|
|||||||
FILE *fp;
|
FILE *fp;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* fail if there is no /etc/fstab */
|
||||||
|
if (!exists("/etc/fstab"))
|
||||||
|
eerrorx("/etc/fstab does not exist");
|
||||||
/* Ensure that we are only quiet when explicitly told to be */
|
/* Ensure that we are only quiet when explicitly told to be */
|
||||||
unsetenv("EINFO_QUIET");
|
unsetenv("EINFO_QUIET");
|
||||||
|
|
||||||
|
|||||||
@@ -297,6 +297,9 @@ getmntfile(const char *file)
|
|||||||
struct mntent *ent = NULL;
|
struct mntent *ent = NULL;
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
|
||||||
|
if (!exists("/etc/fstab"))
|
||||||
|
return NULL;
|
||||||
|
|
||||||
fp = setmntent("/etc/fstab", "r");
|
fp = setmntent("/etc/fstab", "r");
|
||||||
while ((ent = getmntent(fp)))
|
while ((ent = getmntent(fp)))
|
||||||
if (strcmp(file, ent->mnt_dir) == 0)
|
if (strcmp(file, ent->mnt_dir) == 0)
|
||||||
|
|||||||
@@ -247,6 +247,10 @@ rc_logger_open(const char *level)
|
|||||||
logfile = rc_conf_value("rc_log_path");
|
logfile = rc_conf_value("rc_log_path");
|
||||||
if (logfile == NULL)
|
if (logfile == NULL)
|
||||||
logfile = DEFAULTLOG;
|
logfile = DEFAULTLOG;
|
||||||
|
if (!strcmp(logfile, TMPLOG)) {
|
||||||
|
eerror("Cowardly refusing to concatenate a logfile into itself.");
|
||||||
|
eerrorx("Please change rc_log_path to something other than %s to get rid of this message", TMPLOG);
|
||||||
|
}
|
||||||
|
|
||||||
if ((plog = fopen(logfile, "ae"))) {
|
if ((plog = fopen(logfile, "ae"))) {
|
||||||
if ((log = fopen(TMPLOG, "re"))) {
|
if ((log = fopen(TMPLOG, "re"))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user