aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-02-25 21:17:12 +0100
committerGravatar Christian Hesse <mail@eworm.de>2016-02-25 21:17:12 +0100
commit8cd8f56b204bbabb1a0ba131d2178fb44eed826a (patch)
tree0a1e70bdad456d3acbd8f7b705d4693240b1d324
parent3a2aba7fb34769c717ce9ede94ee3831e119b6be (diff)
downloadmkinitcpio-uname-8cd8f56b204bbabb1a0ba131d2178fb44eed826a.tar.gz
mkinitcpio-uname-8cd8f56b204bbabb1a0ba131d2178fb44eed826a.tar.zst
make sure uname binary is around
-rw-r--r--install/uname5
1 files changed, 4 insertions, 1 deletions
diff --git a/install/uname b/install/uname
index b30eeb3..153a646 100644
--- a/install/uname
+++ b/install/uname
@@ -2,11 +2,14 @@
build() {
if add_systemd_unit uname.service 2>/dev/null; then
+ # busybox provides uname, but the base hook is not prerequisite
+ # for a systemd-enable initramfs - so add uname
+ add_binary uname
+
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
}
help() {