mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 22:41:09 +02:00
sys-apps/systemd: apply ebuild changes from gentoo
This commit is contained in:
parent
4d78cb33b5
commit
63675cbd46
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.164 2015/04/18 23:54:18 floppym Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.169 2015/05/30 13:58:45 floppym Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
@ -533,32 +533,12 @@ pkg_postinst() {
|
||||
eerror
|
||||
fi
|
||||
|
||||
if [[ ! -L "${ROOT}"/etc/mtab ]]; then
|
||||
ewarn "Upstream mandates the /etc/mtab file should be a symlink to /proc/mounts."
|
||||
ewarn "Not having it is not supported by upstream and will cause tools like 'df'"
|
||||
ewarn "and 'mount' to not work properly. Please run:"
|
||||
ewarn " # ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
if [[ $(readlink "${ROOT}"/etc/resolv.conf) == */run/systemd/network/resolv.conf ]]; then
|
||||
ewarn "resolv.conf is now generated by systemd-resolved. To use it, enable"
|
||||
ewarn "systemd-resolved.service, and create a symlink from /etc/resolv.conf"
|
||||
ewarn "to /run/systemd/resolve/resolv.conf"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
if ! has_version sys-apps/systemd-ui; then
|
||||
elog "To get additional features, a number of optional runtime dependencies may"
|
||||
elog "be installed:"
|
||||
elog "- sys-apps/systemd-ui: for GTK+ systemadm UI and gnome-ask-password-agent"
|
||||
fi
|
||||
|
||||
if has_version sys-apps/openrc &&
|
||||
! has_version sys-fs/udev-init-scripts; then
|
||||
elog "If you plan to boot using OpenRC and udev or eudev, you"
|
||||
elog "need to install the udev-init-scripts package."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user