# HG changeset patch # User Pascal Bellard # Date 1487773910 -3600 # Node ID 864a180f69c35bf1526d793327c5c0dd8784fab8 # Parent 027ff114948ae8af4e7c620dd2db7063990b7adc busybox: do not need kmod & util-linux-mount diff -r 027ff114948a -r 864a180f69c3 busybox/receipt --- a/busybox/receipt Wed Feb 22 15:11:33 2017 +0100 +++ b/busybox/receipt Wed Feb 22 15:31:50 2017 +0100 @@ -139,6 +139,10 @@ readelf -h $src/_install/bin/busybox } +# Keep kmod & util-linux-mount files +REMOVED_SYMLINKS="/bin/mount /bin/mountpoint /bin/umount /sbin/depmod \ +/sbin/insmod /sbin/modinfo /sbin/modprobe /sbin/rmmod" + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { @@ -186,18 +190,9 @@ sed -i "s/copy; [0-9]*/copy; $(date +%Y)/" # Remove kmod & util-linux-mount links - while read link; do + for link in $REMOVED_SYMLINKS; do rm -f $fs$link done <> $1/etc/daemons.conf fi sed -i "s/copy; 20../copy; $(date +%Y)/" $1/var/www/httpd/404.html + for link in $REMOVED_SYMLINKS; do + [ -e $1$link ] || ln -s /bin/busybox $1$link + done } pre_remove()