diff options
author | Christian Hesse <mail@eworm.de> | 2013-10-01 13:40:57 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-10-01 13:40:57 +0200 |
commit | 0ab4f48caafb7dfd496fe51d3c5db129e95f65a5 (patch) | |
tree | 214f412467be6541b666e24616bf7f136cf4f60a | |
parent | 01f0ccb7edffb33dd0cce299b8837b682b376957 (diff) | |
download | mkinitcpio-uname-0ab4f48caafb7dfd496fe51d3c5db129e95f65a5.tar.gz mkinitcpio-uname-0ab4f48caafb7dfd496fe51d3c5db129e95f65a5.tar.zst |
update for systemd in initramfs
-rw-r--r-- | hook/uname | 6 | ||||
-rw-r--r-- | install/uname | 3 | ||||
-rw-r--r-- | systemd/uname | 4 | ||||
-rw-r--r-- | systemd/uname.service | 10 |
4 files changed, 16 insertions, 7 deletions
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 |