From c5506dc78eaa274629999667faba4983e4042cbd Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 1 Oct 2013 13:18:25 +0200 Subject: update for systemd in initramfs --- hook/archlogo | 5 ----- install/archlogo | 6 ++++-- systemd/archlogo.service | 11 +++++++++++ 3 files changed, 15 insertions(+), 7 deletions(-) delete mode 100644 hook/archlogo create mode 100644 systemd/archlogo.service 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}" -- cgit v1.2.3-70-g09d2