wok-current rev 13896

busybox-boot: clean /dev (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 18 18:46:22 2013 +0100 (2013-01-18)
parents a0759293a0ca
children dc70e6e00be6
files busybox-boot/receipt
line diff
     1.1 --- a/busybox-boot/receipt	Fri Jan 18 18:38:13 2013 +0100
     1.2 +++ b/busybox-boot/receipt	Fri Jan 18 18:46:22 2013 +0100
     1.3 @@ -14,7 +14,7 @@
     1.4  genpkg_rules()
     1.5  {
     1.6  	jslinux=false
     1.7 -	mkdir $fs/bin $fs/sbin $fs/dev $fs/proc
     1.8 +	mkdir $fs/bin $fs/dev
     1.9  	cp -a $src/busybox-static $fs/bin/busybox
    1.10  	mknod -m 660 $fs/dev/console c 5 1
    1.11  	mknod -m 771 $fs/dev/null c 1 3
    1.12 @@ -33,8 +33,8 @@
    1.13  export HOME=/
    1.14  export TERM=vt100
    1.15  
    1.16 +mkdir /tmp /mnt /proc
    1.17  mount -t proc none /proc
    1.18 -mkdir /tmp /mnt
    1.19  while read name major minor ; do
    1.20  	for i in '' 1 2 3 4 5 6 7 8 9 ; do
    1.21  		mknod -m 644 /dev/\$name\$i b \$major \$((\$i + \$minor))
    1.22 @@ -83,12 +83,11 @@
    1.23  done
    1.24  EOT
    1.25  	chmod +x $fs/init
    1.26 -	ln $fs/init $fs/sbin/init
    1.27  }
    1.28  
    1.29  pre_install()
    1.30  {
    1.31 -	rm -rf $1/bin $1/sbin
    1.32 +	rm -rf $1/bin $1/dev
    1.33  }
    1.34  
    1.35  post_install()