--- toast-linux 2004/04/13 21:25:28 1.15 +++ toast-linux 2004/04/14 00:30:35 1.16 @@ -1000,23 +1000,37 @@ exit 1 fi -(cd / && tar c dev etc bin/busybox lib) | (cd "$target" && tar x) +copy="dev etc lib" +for i in /bin/* /sbin/*; do + ls -l "$i" | grep -q 'busybox$' && copy="$copy $i" +done +(cd / && tar c $copy) | (cd "$target" && tar x) +relrootdir="/toast/pkg/busybox/vunknown/1/root" +rootdir="$target/$relrootdir" +mkdir -p "$rootdir" +for i in bin sbin lib; do + mv "$target/$i" "$rootdir/$i" + mkdir -p "$target/usr/$i" + ln -s "usr/$i" "$target/$i" +done +touch "$rootdir/../build.log" +for i in `cd "$rootdir" && find *`; do + ln -s "$relrootdir$i" "$target/$i" +done + for i in mnt/floppy proc sys usr/man var/empty var/lock var/run var/log; do mkdir -p "$target/$i" done -for i in `cd "$target/etc" && echo *.hd`; do - mv "$target/etc/$i" "$target/etc/`basename $i .hd`" -done - ln -s "../usr/share/zoneinfo/`cat /etc/TZ`" "$target/etc/localtime" ln -s vim "$target/bin/vi" ln -s gcc "$target/bin/cc" -ln -s bash "$garget/bin/sh.off.off" +ln -s bash "$target/bin/sh.off.off" -chroot "$target" /bin/busybox --install -# TODO: toastify busybox (bin, sbin, lib) +for i in `cd "$target/etc" && echo *.hd`; do + mv "$target/etc/$i" "$target/etc/`basename $i .hd`" +done # TODO: adjust permissions @@ -2575,7 +2589,7 @@ CONFIG_FEATURE_BUFFERS_GO_ON_STACK=y # CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set # CONFIG_FEATURE_VERBOSE_USAGE is not set -CONFIG_FEATURE_INSTALLER=y +# CONFIG_FEATURE_INSTALLER is not set # CONFIG_LOCALE_SUPPORT is not set # CONFIG_FEATURE_DEVFS is not set CONFIG_FEATURE_DEVPTS=y