From 8c980995fc4cf95c5b40cc712109e928347fbd3b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 8 Dec 2022 00:15:59 +0100 Subject: do not overwrite uname if available --- install/uname | 6 ++++-- 1 file 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 -- cgit v1.2.3-54-g00ecf