summaryrefslogtreecommitdiffstats
path: root/install-usb
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-04-21 15:36:16 +0200
committerSebastian Schmelzer2011-04-21 15:36:16 +0200
commitc61ac386c2dbf70c629d8e5364c5872563510aed (patch)
tree5f5dd1451866093afeab1edd72a1029d292fd7d0 /install-usb
parentfbgui update (shutdowm button fix...) (diff)
downloadusb-boot-stick-c61ac386c2dbf70c629d8e5364c5872563510aed.tar.gz
usb-boot-stick-c61ac386c2dbf70c629d8e5364c5872563510aed.tar.xz
usb-boot-stick-c61ac386c2dbf70c629d8e5364c5872563510aed.zip
script tuning :) + vesamenu
Diffstat (limited to 'install-usb')
-rwxr-xr-xinstall-usb40
1 files changed, 7 insertions, 33 deletions
diff --git a/install-usb b/install-usb
index 5b63c67..f6f2246 100755
--- a/install-usb
+++ b/install-usb
@@ -10,7 +10,9 @@ fi
OUT_DEV=$1
SYSLINUX=$ROOT_DIR/contrib/syslinux/latest
-[ ! -f $SYSLINUX/Makefile ] && $ROOT_DIR/contrib/syslinux/fetch.sh
+PATH="$PATH:$ROOT_DIR/bin/"
+
+[ ! -f $SYSLINUX/Makefile ] && env.setup-syslinux.sh
if [ -z $OUT_DEV ]; then
echo "no dev"
@@ -31,45 +33,17 @@ mkdir -p /media/openslx-stick/boot
$SYSLINUX/extlinux/extlinux -i /media/openslx-stick/boot
-bash $ROOT_DIR/bin/build-preboot-kernel
+[ ! -f $ROOT_DIR/build/kernel-preboot-latest ] && build.kernel.sh
cp -v $ROOT_DIR/build/kernel-preboot-latest /media/openslx-stick/boot/kernel
-bash $ROOT_DIR/bin/initramfs.update
+#[ ! -f $ROOT_DIR/build/initramfs-default ] && build.initramfs.sh
+build.initramfs.sh
cp -v $ROOT_DIR/build/initramfs-default /media/openslx-stick/boot/init
cp -v $SYSLINUX/com32/menu/menu.c32 /media/openslx-stick/boot/
cp -v $SYSLINUX/com32/menu/vesamenu.c32 /media/openslx-stick/boot/
-cat > /media/openslx-stick/boot/extlinux.conf << EOF
-TIMEOUT 100
-PROMPT 0
-DEFAULT menu.c32
-
-MENU TITLE Welcome to OpenSLX PreBoot USB Ext2/3 (Mini Linux/Kexec)
-LABEL SLXSTDBOOT
- MENU LABEL OpenSLX PreBoot - Stateless Netboot Linux ...
- KERNEL kernel
- APPEND initrd=init vga=0x317
- TEXT HELP
- Use this (default) entry if you have configured your client.
- You have chance to edit the kernel commandline by hitting the
- TAB key (e.g. for adding debug=3 to it for bug hunting) ...
- ENDTEXT
-LABEL DEBUGBOOT
- MENU LABEL OpenSLX PreBoot - Debug Mode
- KERNEL kernel
- APPEND initrd=init vga=0x317 debug=3
- TEXT HELP
- Use this to start the preboot environment with debug shells.
- ENDTEXT
-LABEL LOCALBOOT
- MENU LABEL LOCALBOOT
- LOCALBOOT -1
- TEXT HELP
- Gets you out of here by booting from next device in BIOS boot
- order.
- ENDTEXT
-EOF
+cp -v $ROOT_DIR/config/extlinux/* /media/openslx-stick/boot
sync
umount /media/openslx-stick