This directory is used to build a USB key containing a Kubuntu 8.04 LiveCD
with persistent OS files and persistent /home files.
+
+Start by editing the "config" file. Be sure to get your USB_DEV
+definition correct. The scripts you need to partition the key and
+to write the boot image to it are all in this (usb) directory.
+
+After editing the config file, run:
+
+ ./partition_usb_key
+
+Note, this script assumes that you have a 3GB or bigger key. It
+may work for a 2GB key, but you might want to reduce the size of
+the second partition.
+
+This script creates three partitions:
+
+ 1. kubuntu8 -- USB boot partition containing the OS
+ 2. casper-rw -- A writable ext3 partition for saving OS changes
+ 3. home-rw -- A writable ext3 partition for saving /home
+
+When the key is booted, assuming you choose the first option
+(LiveCD), you will be running as user "ubuntu" the password is
+"bacula", and you will be in /home/ubuntu.
+
+
+
+====
+
+The directory "remaster" contains the scripts that allow picking
+apart a Kubuntu Hardy ISO and then updating and recombining the
+parts into a USB boot image. The information below is somewhat
+low level and should not be needed unless you want to do your
+own remastering either starting from the Kubuntu release or from
+the Bacula remastered release.
+
Note, the sqfs.tar.gz is the whole squashfs unsquashed.
The kernel image (vmlinuz) is a copy of the most recent kernel i.e.
casper-rw is used to store changed OS files, and home-rw is the
home directory.
-
Bugs with Kubuntu boot process:
1. The initrd.gz image must be opened, fixed and the repacked.
2. The fix involves removing the ,mode=755 from the mount line for
echo ""
exit 1
fi
+if [ ! -f ${BOOT_IMAGE} ] ; then
+ echo "Could not find boot image: ${BOOT_IMAGE}"
+ exit 1
+fi
umount ${USB_DEV}1 2>/dev/null 1>/dev/null
+
echo "Reformat USB boot partition"
mkfs.vfat -F 16 -n kubuntu8 ${USB_DEV}1
mount ${USB_DEV}1 ${MOUNT_POINT}/kubuntu8
echo "Could not cd to USB boot partition"
exit 1
fi
+
echo "Detaring boot image ..."
tar xfz ${BOOT_IMAGE}
cd ${CWD}
ls -l ${MOUNT_POINT}/kubuntu8
+
echo "syncing ..."
sync
umount ${MOUNT_POINT}/kubuntu8