Update lilo to 22.8 (#3685)
[openwrt/svn-archive/archive.git] / utils / lilo / files / mkbootable
1 #!/bin/sh
2 # Copyright (C) 2006 OpenWrt.org
3 LOOPDEV="/dev/loop1"
4
5 mkdir mount
6 cp bin/openwrt-x86-ext2.img bin/boot.img
7 sudo losetup $LOOPDEV bin/boot.img
8 sudo mount $LOOPDEV mount
9 sudo cp build_i386/linux/arch/i386/boot/bzImage mount/vmlinuz
10 sudo mkdir mount/boot
11 sudo build_i386/lilo-22.8/lilo -C package/lilo/bdlilo.conf
12 sudo umount mount
13 echo releasing $LOOPDEV
14 sudo losetup -d $LOOPDEV
15 rm -r -f mount