mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 22:11:39 +02:00
Merge pull request #1037 from marineam/systemd
systemd: copy symlink-usr handling from old systemd-sysv-utils ebuild
This commit is contained in:
commit
8c92e641dd
@ -38,8 +38,8 @@ IUSE="acl apparmor audit cryptsetup curl doc elfutils gcrypt gudev http
|
|||||||
idn introspection kdbus +kmod lz4 lzma pam policykit python qrcode +seccomp
|
idn introspection kdbus +kmod lz4 lzma pam policykit python qrcode +seccomp
|
||||||
selinux ssl sysv-utils terminal test vanilla xkb"
|
selinux ssl sysv-utils terminal test vanilla xkb"
|
||||||
|
|
||||||
# Gentoo removed this use flag, we'll keep it for now
|
# Gentoo removed the nls use flag, we'll keep it for now
|
||||||
IUSE+=" nls"
|
IUSE+=" nls symlink-usr"
|
||||||
|
|
||||||
MINKV="3.8"
|
MINKV="3.8"
|
||||||
|
|
||||||
@ -372,10 +372,12 @@ multilib_src_install_all() {
|
|||||||
einstalldocs
|
einstalldocs
|
||||||
|
|
||||||
if use sysv-utils; then
|
if use sysv-utils; then
|
||||||
|
local prefix
|
||||||
|
use symlink-usr && prefix=/usr
|
||||||
for app in halt poweroff reboot runlevel shutdown telinit; do
|
for app in halt poweroff reboot runlevel shutdown telinit; do
|
||||||
dosym "..${ROOTPREFIX-/usr}/bin/systemctl" /sbin/${app}
|
dosym /usr/bin/systemctl ${prefix}/sbin/${app}
|
||||||
done
|
done
|
||||||
dosym "..${ROOTPREFIX-/usr}/lib/systemd/systemd" /sbin/init
|
dosym /usr/lib/systemd/systemd ${prefix}/sbin/init
|
||||||
else
|
else
|
||||||
# we just keep sysvinit tools, so no need for the mans
|
# we just keep sysvinit tools, so no need for the mans
|
||||||
rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
|
rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
|
@ -38,8 +38,8 @@ IUSE="acl apparmor audit cryptsetup curl doc elfutils gcrypt gudev http
|
|||||||
idn introspection kdbus +kmod lz4 lzma pam policykit python qrcode +seccomp
|
idn introspection kdbus +kmod lz4 lzma pam policykit python qrcode +seccomp
|
||||||
selinux ssl sysv-utils terminal test vanilla xkb"
|
selinux ssl sysv-utils terminal test vanilla xkb"
|
||||||
|
|
||||||
# Gentoo removed this use flag, we'll keep it for now
|
# Gentoo removed the nls use flag, we'll keep it for now
|
||||||
IUSE+=" nls"
|
IUSE+=" nls symlink-usr"
|
||||||
|
|
||||||
MINKV="3.8"
|
MINKV="3.8"
|
||||||
|
|
||||||
@ -368,10 +368,12 @@ multilib_src_install_all() {
|
|||||||
einstalldocs
|
einstalldocs
|
||||||
|
|
||||||
if use sysv-utils; then
|
if use sysv-utils; then
|
||||||
|
local prefix
|
||||||
|
use symlink-usr && prefix=/usr
|
||||||
for app in halt poweroff reboot runlevel shutdown telinit; do
|
for app in halt poweroff reboot runlevel shutdown telinit; do
|
||||||
dosym "..${ROOTPREFIX-/usr}/bin/systemctl" /sbin/${app}
|
dosym /usr/bin/systemctl ${prefix}/sbin/${app}
|
||||||
done
|
done
|
||||||
dosym "..${ROOTPREFIX-/usr}/lib/systemd/systemd" /sbin/init
|
dosym /usr/lib/systemd/systemd ${prefix}/sbin/init
|
||||||
else
|
else
|
||||||
# we just keep sysvinit tools, so no need for the mans
|
# we just keep sysvinit tools, so no need for the mans
|
||||||
rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
|
rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user