aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-01 13:18:25 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-10-01 13:18:25 +0200
commitc5506dc78eaa274629999667faba4983e4042cbd (patch)
tree121c9a8fcf34a3b4461e638d6a04fb434d4bf1f0
parent85b339cbb5aeda0e9c934093d69fae57ae929fad (diff)
downloadmkinitcpio-archlogo-c5506dc78eaa274629999667faba4983e4042cbd.tar.gz
mkinitcpio-archlogo-c5506dc78eaa274629999667faba4983e4042cbd.tar.zst
update for systemd in initramfs
-rw-r--r--hook/archlogo5
-rw-r--r--install/archlogo6
-rw-r--r--systemd/archlogo.service11
3 files changed, 15 insertions, 7 deletions
diff --git a/hook/archlogo b/hook/archlogo
deleted file mode 100644
index a9d7e82..0000000
--- a/hook/archlogo
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-run_earlyhook() {
- cat < /archlogo
-}
diff --git a/install/archlogo b/install/archlogo
index c2f77ea..0b1fb48 100644
--- a/install/archlogo
+++ b/install/archlogo
@@ -2,8 +2,10 @@
build() {
source /etc/archlogo.conf
- add_file "/usr/share/archlogo/${ARCHLOGO}" /archlogo
- add_runscript
+ add_file /etc/archlogo.conf
+ add_file "/usr/share/archlogo/${ARCHLOGO}"
+ add_systemd_unit archlogo.service
+ add_symlink "/usr/lib/systemd/systemd/sysinit.target.wants/archlogo.service" "../archlogo.service"
}
help() {
diff --git a/systemd/archlogo.service b/systemd/archlogo.service
new file mode 100644
index 0000000..37601bc
--- /dev/null
+++ b/systemd/archlogo.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Archlogo
+DefaultDependencies=no
+Before=sysinit.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+StandardOutput=tty
+EnvironmentFile=/etc/archlogo.conf
+ExecStart=/usr/bin/cat "/usr/share/archlogo/${ARCHLOGO}"