+Packages needed:
+apt-get install syslinux mbr
Kubuntu boot tricks:
--- /dev/null
+#!/bin/sh
+#
+mksquashfs sqfs filesystem.squashfs
dev=$USB_DEVICE
fi
echo "This script will distroy everything on $dev"
+fdisk -l $dev
+echo " "
echo "Answer yes to continue "
read a
if [ "$a" != "yes" ] ; then
mkfs.ext2 -j -b 4096 -L casper-rw ${dev}2
umount ${dev}3
mkfs.ext2 -j -b 4096 -L home-rw ${dev}3
+syslinux -sf ${dev}1
+install-mbr -p1 ${dev}
sync
DEFAULT persistent
GFXBOOT bootlogo
-APPEND file=/preseed/kubuntu.seed boot=casper initrd=/casper/initrd.gz --
+APPEND file=/preseed/kubuntu.seed noprompt boot=casper initrd=/casper/initrd.gz --
LABEL persistent
menu label ^Start Kubuntu saving changes to USB
kernel /casper/vmlinuz
- append file=/preseed/kubuntu.seed boot=casper persistent initrd=/casper/initrd.gz --
-LABEL live
- menu label ^Run Kubuntu without saving changes
- kernel /casper/vmlinuz
- append file=/preseed/kubuntu.seed boot=casper initrd=/casper/initrd.gz --
-LABEL live-install
- menu label ^Install Kubuntu
- kernel /casper/vmlinuz
- append file=/preseed/kubuntu.seed boot=casper only-ubiquity initrd=/casper/initrd.gz --
-LABEL rescue
- menu label ^Rescue a broken system
+ append file=/preseed/kubuntu.seed noprompt boot=casper persistent initrd=/casper/initrd.gz --
+LABEL shell
+ menu label ^Boot into a shell
kernel /casper/vmlinuz
- append file=/preseed/cli.seed boot=casper persistent rescue/enable=true initrd=/casper/initrd.gz --
+ append boot=casper textonly persistent noprompt rescue/enable=true initrd=/casper/initrd.gz --
LABEL memtest
menu label Test ^memory
kernel mt86plus
menu label ^Boot from first hard disk
localboot 0x80
append -
+LABEL live
+ menu label ^Run Kubuntu without saving changes
+ kernel /casper/vmlinuz
+ append file=/preseed/kubuntu.seed noprompt boot=casper initrd=/casper/initrd.gz --
+LABEL live-install
+ menu label ^Install Kubuntu
+ kernel /casper/vmlinuz
+ append file=/preseed/kubuntu.seed boot=casper only-ubiquity initrd=/casper/initrd.gz --
DISPLAY isolinux.txt
TIMEOUT 300
PROMPT 1
+++ /dev/null
-#!/bin/sh
-#
-# Update squashfs
-#
-
-chroot sqfs /bin/sh
-mount -t proc none /proc/
-mount -t sysfs non /sys/
-export HOME=/root
-apt-get remove --purge `dpkg-query -W --showformat '${Package}\n' | grep language-pack | egrep -v '\-en'`
-apt-get remove --purge `dpkg-query -W --showformat '${Package}\n' | grep openoffice\.org-`
-
-cat >/etc/apt/sources.list <<EOF
-deb http://archive.ubuntu.com/ubuntu/ hardy main restricted
-deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted
-deb http://archive.ubuntu.com/ubuntu/ hardy universe
-deb http://archive.ubuntu.com/ubuntu/ hardy-updates universe
-deb http://archive.ubuntu.com/ubuntu/ hardy multiverse
-deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted
-deb http://archive.ubuntu.com/ubuntu/ hardy-security universe
-deb http://archive.ubuntu.com/ubuntu/ hardy-security multiverse
-deb http://archive.ubuntu.com/ubuntu/ hardy-updates multiverse
-EOF
-apt-get update
-apt-get upgrade
-
-# Add new packages
-apt-get install openssh-server subversion kdetoys kicker-applets kgpg gftp \
- firefox sg3-utils
-
-cd /
-dpkg-query -W --showformat='${Package} ${Version}\n' >filesystem.manifest
-
-apt-get clean
-rm -rf /tmp/*
-rm -f /etc/hosts /etc/resolv.conf
-umount /proc/
-umount /sys/
-exit
-cp sqfs/filesystem.manifest .
-rm -f sqfs/filsystem.manifest
--- /dev/null
+#!/bin/sh
+#
+# Update squashfs
+#
+
+chroot sqfs /bin/sh
+mount -t proc none /proc/
+mount -t sysfs non /sys/
+export HOME=/root
+apt-get remove --purge `dpkg-query -W --showformat '${Package}\n' | grep language-pack | egrep -v '\-en'`
+apt-get remove --purge `dpkg-query -W --showformat '${Package}\n' | grep openoffice\.org-`
+
+cat >/etc/apt/sources.list <<EOF
+deb http://archive.ubuntu.com/ubuntu/ hardy main restricted
+deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted
+deb http://archive.ubuntu.com/ubuntu/ hardy universe
+deb http://archive.ubuntu.com/ubuntu/ hardy-updates universe
+deb http://archive.ubuntu.com/ubuntu/ hardy multiverse
+deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted
+deb http://archive.ubuntu.com/ubuntu/ hardy-security universe
+deb http://archive.ubuntu.com/ubuntu/ hardy-security multiverse
+deb http://archive.ubuntu.com/ubuntu/ hardy-updates multiverse
+EOF
+apt-get update
+apt-get upgrade
+
+# Add new packages
+apt-get install openssh-server subversion kdetoys kicker-applets kgpg gftp \
+ firefox sg3-utils
+
+cd /
+dpkg-query -W --showformat='${Package} ${Version}\n' >filesystem.manifest
+
+apt-get clean
+rm -rf /tmp/*
+rm -f /etc/hosts /etc/resolv.conf
+umount /proc/
+umount /sys/
+exit
+cp sqfs/filesystem.manifest .
+rm -f sqfs/filsystem.manifest