summaryrefslogtreecommitdiff
path: root/pcr/systemd-knock/initcpio-install-systemd
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-09-24 02:33:42 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-09-24 02:40:19 -0300
commitae12fa42a5749f1e34302e7526f9fbb91c369c27 (patch)
tree55c1bd73f70f80581b8f99357772a49b11f189eb /pcr/systemd-knock/initcpio-install-systemd
parentc282db517b232036573d38b6c10702e0e4e7bbd4 (diff)
systemd-knock-231-1: updating version
Diffstat (limited to 'pcr/systemd-knock/initcpio-install-systemd')
-rw-r--r--pcr/systemd-knock/initcpio-install-systemd13
1 files changed, 13 insertions, 0 deletions
diff --git a/pcr/systemd-knock/initcpio-install-systemd b/pcr/systemd-knock/initcpio-install-systemd
index 30b542570..b57661b3e 100644
--- a/pcr/systemd-knock/initcpio-install-systemd
+++ b/pcr/systemd-knock/initcpio-install-systemd
@@ -93,6 +93,13 @@ add_systemd_unit() {
fi
}
+add_systemd_drop_in() {
+ local unit=$1 dropin_name=$2
+
+ mkdir -p "$BUILDROOT/etc/systemd/system/$unit.d"
+ cat >"$BUILDROOT/etc/systemd/system/$unit.d/$2.conf"
+}
+
build() {
local rules unit
@@ -159,6 +166,12 @@ build() {
echo "root:x:0:0:root:/:/bin/sh" >"$BUILDROOT/etc/passwd"
echo "root:x:0:root" >"$BUILDROOT/etc/group"
echo "root::::::::" >"$BUILDROOT/etc/shadow"
+
+ add_systemd_drop_in systemd-udevd.service resolve-names <<EOF
+[Service]
+ExecStart=
+ExecStart=/usr/lib/systemd/systemd-udevd --resolve-names=never
+EOF
}
help() {