define Package/lilo
SECTION:=base
-CATEGORY:=X86 Boot Images
+CATEGORY:=Boot Loaders
TITLE:=lilo
DESCRIPTION:=lilo
URL:=ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/
$(CP) $(PKG_BUILD_DIR)/lilo.static $(1)/sbin/lilo
$(CP) lilo.conf $(1)/etc
$(CP) boot.msg $(1)/etc
- $(CP) S11Pivot $(1)/etc/init.d
+ #$(CP) S11Pivot $(1)/etc/init.d
endef
$(eval $(call BuildPackage,lilo))
+++ /dev/null
-#!/bin/sh
-# Copyright (C) 2006 OpenWrt.org
-
-#pivot function blatantly stolen from the firstboot stuff in the WRT54 arch files
-pivot() { # <new_root> <old_root>
- mount -o move /proc $1/proc && \
- pivot_root $1 $1$2 && {
- mount -o move $2/dev /dev
- mount -o move $2/tmp /tmp
- mount -o move $2/sys /sys
- return 0
- }
-}
-
-#just a little bit of time for the usb to settle down and get plugged in
-#technically it probably should be done in hotplug, but, we need to handle
-#the case of no key at all, and fall thru to ramdisk when it's selected
-sleep 5
-
-if [[ "$NOPIVOT" = "1" ]]; then
- echo starting from a ramdisk
-else
- mount /dev/discs/disc0/disc /mnt
- mkdir -p /mnt/old
- pivot /mnt /old
-fi
-
delay =1
timeout =100
message =mount/etc/boot.msg
-append =" root=/dev/ram0 console=ttyS0,115200n81 "
image =mount/vmlinuz
label =openwrt
- initrd =mount/initrd.gz
+ append =" rootfs=/dev/disc console=ttyS0,115200n81 "
image =mount/vmlinuz
label =ramdisk
- initrd =mount/initrd.gz
- append =" NOPIVOT=1 root=/dev/ram0 console=ttyS0,115200n81"
+ append =" console=ttyS0,115200n81"
+
+image =mount/vmlinuz
+ label =failsafe
+ append =" FAILSAFE=MenuRequest console=ttyS0,115200n81"
+
Boot Options:-
-openwrt - OpenWrt with usb stick root
-ramdisk - OpenWrt with ram root
+openwrt - OpenWrt with usb stick root
+ramdisk - OpenWrt with ramdisk root
+failsafe - OpenWrt failsafe
delay =1
timeout =100
message =/etc/boot.msg
-append =" root=/dev/ram0 console=ttyS0,115200n81 "
image =/vmlinuz
label =openwrt
- initrd =/initrd.gz
+ append =" rootfs=/dev/disc console=ttyS0,115200n81 "
image =/vmlinuz
label =ramdisk
- initrd =/initrd.gz
- append =" NOPIVOT=1 root=/dev/ram0 console=ttyS0,115200n81"
+ append =" console=ttyS0,115200n81"
+
+image =/vmlinuz
+ label =failsafe
+ append =" FAILSAFE=MenuRequest console=ttyS0,115200n81"
LOOPDEV="/dev/loop1"
mkdir mount
-cp bin/openwrt-x86-2.4-ext2.img bin/boot.img
-gzip -9 < bin/openwrt-x86-2.4-ext2.img > initrd.gz
+cp bin/openwrt-x86-2.6-ext2.img bin/boot.img
sudo losetup $LOOPDEV bin/boot.img
sudo mount $LOOPDEV mount
sudo cp build_i386/linux/arch/i386/boot/bzImage mount/vmlinuz
-sudo cp initrd.gz mount/initrd.gz
sudo mkdir mount/boot
sudo build_i386/lilo-22.7.2/lilo -C package/lilo/bdlilo.conf
sudo umount mount