mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
systemd: use default hwdb service
This commit is contained in:
parent
d210b2b774
commit
a5099794ec
@ -121,14 +121,6 @@ post_makeinstall_target() {
|
|||||||
safe_remove ${INSTALL}/usr/lib/tmpfiles.d/home.conf
|
safe_remove ${INSTALL}/usr/lib/tmpfiles.d/home.conf
|
||||||
safe_remove ${INSTALL}/usr/share/factory
|
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
|
# remove Network adaper renaming rule, this is confusing
|
||||||
safe_remove ${INSTALL}/usr/lib/udev/rules.d/80-net-setup-link.rules
|
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/systemd-update-done.service
|
||||||
safe_remove ${INSTALL}/usr/lib/systemd/system/*.target.wants/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
|
# adjust systemd-hwdb-update (we have read-only /etc).
|
||||||
safe_remove ${INSTALL}/usr/lib/systemd/system/systemd-hwdb-update.service
|
sed '/^ConditionNeedsUpdate=.*$/d' -i ${INSTALL}/usr/lib/systemd/system/systemd-hwdb-update.service
|
||||||
|
|
||||||
# remove nspawn
|
# remove nspawn
|
||||||
safe_remove ${INSTALL}/usr/bin/systemd-nspawn
|
safe_remove ${INSTALL}/usr/bin/systemd-nspawn
|
||||||
@ -281,7 +273,6 @@ post_install() {
|
|||||||
enable_service userconfig.service
|
enable_service userconfig.service
|
||||||
enable_service usercache.service
|
enable_service usercache.service
|
||||||
enable_service envconfig.service
|
enable_service envconfig.service
|
||||||
enable_service hwdb.service
|
|
||||||
enable_service cpufreq.service
|
enable_service cpufreq.service
|
||||||
enable_service network-base.service
|
enable_service network-base.service
|
||||||
enable_service systemd-timesyncd.service
|
enable_service systemd-timesyncd.service
|
||||||
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user