mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
sys-apps/systemd: Guard deletion of hwdb.d folder behind use flag
Building systemd in the SDK bootstrap failed because the hwdb.d folder did not exist. The upstream ebuild file has this guard: https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-apps/systemd/systemd-245.5.ebuild#n390
This commit is contained in:
parent
c0d4c41ae3
commit
c66b25ccfe
@ -379,7 +379,9 @@ multilib_src_install_all() {
|
||||
rmdir "${ED}${rootprefix}"/sbin || die
|
||||
fi
|
||||
|
||||
rm -r "${ED}${rootprefix}"/lib/udev/hwdb.d || die
|
||||
if use hwdb; then
|
||||
rm -r "${ED}${rootprefix}"/lib/udev/hwdb.d || die
|
||||
fi
|
||||
|
||||
# Flatcar: Upstream uses keepdir commands to keep some empty
|
||||
# directories.
|
||||
|
Loading…
Reference in New Issue
Block a user