Skip to content

Commit

Permalink
busybox: disable bzip2
Browse files Browse the repository at this point in the history
bzip2 adds about 8kb of size. For tiny builds it's often disabled.
It's not directly used by stock OpenWrt programs.
Kernel images compressed with bzip2 are also not fully supported.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
[fix \ indention]
Signed-off-by: Paul Spooren <mail@aparcar.org>
  • Loading branch information
stokito authored and aparcar committed Jun 21, 2021
1 parent bb2ac5a commit bffee5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion package/base-files/files/lib/upgrade/common.sh
Expand Up @@ -96,7 +96,6 @@ get_image() { # <source> [ <command> ]
local magic="$(dd if="$from" bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"')"
case "$magic" in
1f8b) cmd="zcat";;
425a) cmd="bzcat";;
*) cmd="cat";;
esac
fi
Expand Down
2 changes: 1 addition & 1 deletion package/base-files/files/lib/upgrade/stage2
Expand Up @@ -39,7 +39,7 @@ switch_to_ramfs() {
for binary in \
/bin/busybox /bin/ash /bin/sh /bin/mount /bin/umount \
pivot_root mount_root reboot sync kill sleep \
md5sum hexdump cat zcat bzcat dd tar \
md5sum hexdump cat zcat dd tar \
ls basename find cp mv rm mkdir rmdir mknod touch chmod \
'[' printf wc grep awk sed cut \
mtd partx losetup mkfs.ext4 nandwrite flash_erase \
Expand Down
4 changes: 2 additions & 2 deletions package/utils/busybox/Config-defaults.in
Expand Up @@ -351,10 +351,10 @@ config BUSYBOX_DEFAULT_FEATURE_GUNZIP_LONG_OPTIONS
default n
config BUSYBOX_DEFAULT_BUNZIP2
bool
default y
default n
config BUSYBOX_DEFAULT_BZCAT
bool
default y
default n
config BUSYBOX_DEFAULT_UNLZMA
bool
default n
Expand Down

0 comments on commit bffee5e

Please sign in to comment.