summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmkinitramfs5
1 files changed, 5 insertions, 0 deletions
diff --git a/mkinitramfs b/mkinitramfs
index cdec420..7fd4cd6 100755
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -317,6 +317,11 @@ if [ -e "${CONFDIR}/DSDT.aml" ]; then
copy_exec "${CONFDIR}/DSDT.aml" /
fi
+# Make sure there is a final sh in initramfs
+if [ ! -e "${DESTDIR}/bin/sh" ]; then
+ copy_exec /bin/sh "${DESTDIR}/bin/"
+fi
+
# Remove any looping or broken symbolic links, since they break cpio.
[ "${verbose}" = y ] && xargs_verbose="-t"
(cd "${DESTDIR}" && find . -type l -printf '%p %Y\n' | sed -n 's/ [LN]$//p' \