diff options
author | Christian Hesse <mail@eworm.de> | 2022-12-08 00:15:59 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-12-08 00:15:59 +0100 |
commit | 8c980995fc4cf95c5b40cc712109e928347fbd3b (patch) | |
tree | a921df702de2ce7af71fdf7968de207087d2696e /install | |
parent | 5339430490829a0a011070a5ec22c0b42d574135 (diff) | |
download | mkinitcpio-uname-8c980995fc4cf95c5b40cc712109e928347fbd3b.tar.gz mkinitcpio-uname-8c980995fc4cf95c5b40cc712109e928347fbd3b.tar.zst |
do not overwrite uname if available
Diffstat (limited to 'install')
-rw-r--r-- | install/uname | 6 |
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 |