From 0ab4f48caafb7dfd496fe51d3c5db129e95f65a5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 1 Oct 2013 13:40:57 +0200 Subject: update for systemd in initramfs --- hook/uname | 6 ------ install/uname | 3 ++- systemd/uname | 4 ++++ systemd/uname.service | 10 ++++++++++ 4 files changed, 16 insertions(+), 7 deletions(-) delete mode 100644 hook/uname create mode 100644 systemd/uname create mode 100644 systemd/uname.service diff --git a/hook/uname b/hook/uname deleted file mode 100644 index d82d822..0000000 --- a/hook/uname +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -run_earlyhook() { - echo " Booting $(uname -srm)." - echo -} diff --git a/install/uname b/install/uname index f0fd732..1b306ab 100644 --- a/install/uname +++ b/install/uname @@ -1,7 +1,8 @@ #!/bin/sh build() { - add_runscript + add_systemd_unit uname.service + add_symlink "/usr/lib/systemd/sysinit.target.wants/uname.service" "../uname.service" # busybox provides uname, so we do not add it } diff --git a/systemd/uname b/systemd/uname new file mode 100644 index 0000000..7143927 --- /dev/null +++ b/systemd/uname @@ -0,0 +1,4 @@ +#!/bin/sh + +echo " Booting $(uname -srm)." +echo diff --git a/systemd/uname.service b/systemd/uname.service new file mode 100644 index 0000000..53373e6 --- /dev/null +++ b/systemd/uname.service @@ -0,0 +1,10 @@ +[Unit] +Description=uname +DefaultDependencies=no +Before=sysinit.target + +[Service] +Type=oneshot +RemainAfterExit=yes +StandardOutput=tty +ExecStart=/usr/lib/systemd/scripts/uname -- cgit v1.2.3-70-g09d2