From 9aec1ae65e9efdc1531575927715328bc566195e Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 12 Oct 2013 22:02:01 +0200 Subject: [PATCH] gen_initramfs: use /usr/bin/plymouthd if /sbin/plymouthd is not available --- gen_initramfs.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 4b2bb5c..fde0c76 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -478,8 +478,12 @@ append_plymouth() { final_libs+=( "${final_lib}" ) done + local plymouthd_bin="/sbin/plymouthd" + [ ! -e "${plymouthd_bin}" ] && \ + plymouthd_bin="/usr/bin/plymouthd" + copy_binaries "${TEMP}/initramfs-ply-temp" \ - /sbin/plymouthd /bin/plymouth \ + "${plymouthd_bin}" /bin/plymouth \ "${final_libs[@]}" || gen_die "cannot copy plymouth" log_future_cpio_content