wok rev 19788

busybox: do not need kmod & util-linux-mount
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 22 15:31:50 2017 +0100 (2017-02-22)
parents 027ff114948a
children 035585dc224b
files busybox/receipt
line diff
     1.1 --- a/busybox/receipt	Wed Feb 22 15:11:33 2017 +0100
     1.2 +++ b/busybox/receipt	Wed Feb 22 15:31:50 2017 +0100
     1.3 @@ -139,6 +139,10 @@
     1.4  	readelf -h $src/_install/bin/busybox
     1.5  }
     1.6  
     1.7 +# Keep kmod & util-linux-mount files
     1.8 +REMOVED_SYMLINKS="/bin/mount /bin/mountpoint /bin/umount /sbin/depmod \
     1.9 +/sbin/insmod /sbin/modinfo /sbin/modprobe /sbin/rmmod"
    1.10 +
    1.11  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.12  genpkg_rules()
    1.13  {
    1.14 @@ -186,18 +190,9 @@
    1.15  		sed -i "s/copy; [0-9]*/copy; $(date +%Y)/"
    1.16  
    1.17  	# Remove kmod & util-linux-mount links
    1.18 -	while read link; do
    1.19 +	for link in $REMOVED_SYMLINKS; do
    1.20  		rm -f $fs$link
    1.21  	done <<EOT
    1.22 -/bin/mount
    1.23 -/bin/mountpoint
    1.24 -/bin/umount
    1.25 -/sbin/depmod
    1.26 -/sbin/insmod
    1.27 -/sbin/modinfo
    1.28 -/sbin/modprobe
    1.29 -/sbin/rmmod
    1.30 -EOT
    1.31  }
    1.32  
    1.33  # GNU utils stuff.
    1.34 @@ -250,6 +245,9 @@
    1.35  		echo '' >> $1/etc/daemons.conf
    1.36  	fi
    1.37  	sed -i "s/copy; 20../copy; $(date +%Y)/" $1/var/www/httpd/404.html
    1.38 +	for link in $REMOVED_SYMLINKS; do
    1.39 +		[ -e $1$link ] || ln -s /bin/busybox $1$link
    1.40 +	done
    1.41  }
    1.42  
    1.43  pre_remove()