1 # hdw-linux bootdisk package
3 # author: hackbard@hackdaworld.dyndns.org
6 # [D] busybox-1.00-pre9.tar.bz2 http://www.busybox.net/downloads/
10 s_reason="bootdisks are deluxe ... (scheduled for 1.0 release ;)"
15 mkdir -p ../bootdisk && cd ../bootdisk
16 dd if=/dev/zero of=./bootdisk.img bs=1k count=4096
17 yes "y" | mke2fs -m 0 ./bootdisk.img
18 mkdir mnt && mount -t ext2 -o loop ./bootdisk.img mnt
20 mkdir -p mnt/{boot,dev,proc,etc/init.d}
21 mkdir -p mnt/{sbin,bin,lib,mnt,usr,var/log,pkgs}
27 cp $hdw_home_dir/misc/arch/${hdw_arch}/busybox.config .config
29 make PREFIX=$root/src.bootdisk/bootdisk/mnt install
35 cp $root/lib/{ld-*.so,libc-*.so} mnt/lib/
37 i=ld-*.so ; ln -sf $i ld-linux.so.2
38 i=libc-*.so ; ln -sf $i libc.so.6
40 # some more binaries / configs
41 cp $root/sbin/btee mnt/sbin/
42 ln -sf getty mnt/sbin/agetty
43 ln -sf ash mnt/bin/bash
45 cp $root/usr/bin/hdw-get mnt/bin/
46 cp $root/etc/hdw-get.conf mnt/etc/
48 for i in inittab init.d HOSTNAME passwd group fstab conf; do
49 cp -r $hdw_home_dir/misc/sysfiles/etc/$i mnt/etc/
51 cp $confdir/issue mnt/etc/
53 cp $root/boot/vmlinuz_hdw mnt/boot
55 offset="`ls -s $root/boot/vmlinuz_hdw | awk '{ print $1 }'`"
57 cat > mnt/etc/lilo.conf <<-EOF
61 image=/boot/vmlinuz_hdw
63 append="root=/dev/floppy/0"
65 # /dev -- use obsolete devfs!!
66 mount -tdevfs devfs mnt/dev
67 mount -tproc proc mnt/proc
73 mkdir -p $prefix/share/bootdisk
74 cp bootdisk.img $prefix/share/bootdisk