aboutsummaryrefslogtreecommitdiffstats
path: root/install/uname
diff options
context:
space:
mode:
Diffstat (limited to 'install/uname')
-rw-r--r--install/uname6
1 files changed, 4 insertions, 2 deletions
diff --git a/install/uname b/install/uname
index cc9a88a..f1eb5b3 100644
--- a/install/uname
+++ b/install/uname
@@ -5,8 +5,10 @@ build() {
add_systemd_unit "uname.service"
# busybox provides uname, but the base hook is not prerequisite
- # for a systemd-enable initramfs - so add uname
- add_binary uname
+ # for a systemd-enable initramfs - so add uname if required
+ if [ ! -e "${BUILDROOT}/usr/bin/uname" ]; then
+ add_binary uname
+ fi
add_symlink "/usr/lib/systemd/system/sysinit.target.wants/uname.service" "../uname.service"
else