aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-06 20:38:39 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-10-06 20:38:39 +0200
commit606252e15b268f4e59089a2f9768005a2eb7eb5a (patch)
treed918798609db2b350bb99bfa7d567d8614c9d33f
parent834acb656de41c0aa5ba7819385d555c7064177e (diff)
downloadmkinitcpio-uname-606252e15b268f4e59089a2f9768005a2eb7eb5a.tar.gz
mkinitcpio-uname-606252e15b268f4e59089a2f9768005a2eb7eb5a.tar.zst
readd support for plain old script based initramfs
-rw-r--r--hook/uname6
-rw-r--r--install/uname7
2 files changed, 11 insertions, 2 deletions
diff --git a/hook/uname b/hook/uname
new file mode 100644
index 0000000..d82d822
--- /dev/null
+++ b/hook/uname
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+run_earlyhook() {
+ echo " Booting $(uname -srm)."
+ echo
+}
diff --git a/install/uname b/install/uname
index 546c3e2..b30eeb3 100644
--- a/install/uname
+++ b/install/uname
@@ -1,8 +1,11 @@
#!/bin/sh
build() {
- add_systemd_unit uname.service
- add_symlink "/usr/lib/systemd/system/sysinit.target.wants/uname.service" "../uname.service"
+ if add_systemd_unit uname.service 2>/dev/null; then
+ add_symlink "/usr/lib/systemd/system/sysinit.target.wants/uname.service" "../uname.service"
+ else
+ add_runscript
+ fi
# busybox provides uname, so we do not add it
}