Skip to content

Commit 492d17f

Browse files
committed
Fix warnings for vconsole and autofs4
1 parent 58240f3 commit 492d17f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Disable autofs4 module loading
2+
blacklist autofs4
3+
install autofs4 /bin/true
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2+
3+
SRC_URI += "file://blacklist-autofs4.conf"
4+
5+
do_install:append() {
6+
# Disable systemd-vconsole-setup.service
7+
rm -f ${D}${systemd_system_unitdir}/sysinit.target.wants/systemd-vconsole-setup.service
8+
9+
# Install modprobe blacklist for autofs4
10+
install -d ${D}${sysconfdir}/modprobe.d
11+
install -m 0644 ${WORKDIR}/blacklist-autofs4.conf ${D}${sysconfdir}/modprobe.d/
12+
}
13+
14+
SYSTEMD_SERVICE:${PN}-vconsole-setup = ""
15+
16+
FILES:${PN} += "${sysconfdir}/modprobe.d/blacklist-autofs4.conf"

0 commit comments

Comments
 (0)