diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2020-01-18 15:38:44 +0000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2020-01-18 15:39:52 +0000 |
commit | c2d589e0aa67a6d7a5b976d8fd217d92f121bf1f (patch) | |
tree | bd6d1f4d0d273574a83e8e2c4ae75f30dfcc38d0 | |
parent | 15fd713e73d6a89d63bf7bdc4c6bfccb409f1cec (diff) |
Revert "mkinitramfs: check if initramfs has a shell"
This reverts commit 9c823ad2b3284a6bd5cfbdfdd699d3e033cadd3f. It did
not solve the problem it was intended to, because it used "$DESTDIR"
in the destination argument to copy_exec and would therefore copy to
/var/tmp/<something> inside the initramfs.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rwxr-xr-x | mkinitramfs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mkinitramfs b/mkinitramfs index 2382eb6..1ab7f66 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -379,11 +379,6 @@ if [ -e "${CONFDIR}/DSDT.aml" ]; then copy_file DSDT "${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 - [ "${verbose}" = y ] && echo "Building cpio ${outfile} initramfs" if [ -s "${__TMPEARLYCPIO}" ]; then |