Merge pull request #5204 from lrusak/systemd-hwdb

systemd: use default hwdb service
This commit is contained in:
CvH 2021-08-11 13:11:43 +02:00 committed by GitHub
commit 9099377b1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 25 deletions

View File

@ -121,14 +121,6 @@ post_makeinstall_target() {
safe_remove ${INSTALL}/usr/lib/tmpfiles.d/home.conf
safe_remove ${INSTALL}/usr/share/factory
# clean up hwdb
safe_remove ${INSTALL}/usr/lib/udev/hwdb.d/20-OUI.hwdb
safe_remove ${INSTALL}/usr/lib/udev/hwdb.d/20-acpi-vendor.hwdb
safe_remove ${INSTALL}/usr/lib/udev/hwdb.d/20-bluetooth-vendor-product.hwdb
safe_remove ${INSTALL}/usr/lib/udev/hwdb.d/20-net-ifname.hwdb
safe_remove ${INSTALL}/usr/lib/udev/hwdb.d/20-sdio-classes.hwdb
safe_remove ${INSTALL}/usr/lib/udev/hwdb.d/20-sdio-vendor-model.hwdb
# remove Network adaper renaming rule, this is confusing
safe_remove ${INSTALL}/usr/lib/udev/rules.d/80-net-setup-link.rules
@ -149,8 +141,8 @@ post_makeinstall_target() {
safe_remove ${INSTALL}/usr/lib/systemd/system/systemd-update-done.service
safe_remove ${INSTALL}/usr/lib/systemd/system/*.target.wants/systemd-update-done.service
# remove systemd-hwdb-update. we have own hwdb.service
safe_remove ${INSTALL}/usr/lib/systemd/system/systemd-hwdb-update.service
# adjust systemd-hwdb-update (we have read-only /etc).
sed '/^ConditionNeedsUpdate=.*$/d' -i ${INSTALL}/usr/lib/systemd/system/systemd-hwdb-update.service
# remove nspawn
safe_remove ${INSTALL}/usr/bin/systemd-nspawn
@ -284,7 +276,6 @@ post_install() {
enable_service userconfig.service
enable_service usercache.service
enable_service envconfig.service
enable_service hwdb.service
enable_service cpufreq.service
enable_service network-base.service
enable_service systemd-timesyncd.service

View File

@ -1,14 +0,0 @@
[Unit]
Description=Update hwdb.bin
DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-tmpfiles-setup.service
Before=sysinit.target shutdown.target systemd-udevd.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=systemd-hwdb update
[Install]
WantedBy=sysinit.target