diff options
author | Mike Gilbert <floppym@gentoo.org> | 2024-06-06 10:47:47 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2024-06-06 10:47:47 -0400 |
commit | 8f80d73e11b36f6452b396e73821ff3f72d85de7 (patch) | |
tree | 0cfaf1ab86101c63140f7d80c621e878473d3fa0 /sys-apps | |
parent | sec-policy/*: drop old SELinux policies (diff) | |
download | gentoo-8f80d73e11b36f6452b396e73821ff3f72d85de7.tar.gz gentoo-8f80d73e11b36f6452b396e73821ff3f72d85de7.tar.bz2 gentoo-8f80d73e11b36f6452b396e73821ff3f72d85de7.zip |
sys-apps/systemd-utils: add einfo messages to preinst
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/systemd-utils/systemd-utils-255.7.ebuild | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys-apps/systemd-utils/systemd-utils-255.7.ebuild b/sys-apps/systemd-utils/systemd-utils-255.7.ebuild index f34f50b1db52..01d50ad73596 100644 --- a/sys-apps/systemd-utils/systemd-utils-255.7.ebuild +++ b/sys-apps/systemd-utils/systemd-utils-255.7.ebuild @@ -573,13 +573,14 @@ add_service() { pkg_preinst() { # Migrate /lib/{systemd,udev} to /usr/lib if use split-usr; then - dosym ../usr/lib/systemd /lib/systemd - dosym ../usr/lib/udev /lib/udev local d for d in systemd udev; do + dosym ../usr/lib/${d} /lib/${d} if [[ -e ${EROOT}/lib/${d} && ! -L ${EROOT}/lib/${d} ]]; then - cp -rpPT "${EROOT}"/{,usr/}lib/${d} || die - rm -r "${EROOT}"/lib/${d} || die + einfo "Copying files from '${EROOT}/lib/${d}' to '${EROOT}/usr/lib/${d}'" + cp -rpPT "${EROOT}/lib/${d}" "${EROOT}/usr/lib/${d}" || die + einfo "Removing '${EROOT}/lib/${d}'" + rm -r "${EROOT}/lib/${d}" || die fi done fi |