Permalink
Browse files

configurable kernel file and trunc_xino aufs option

  • Loading branch information...
1 parent 058f384 commit 90dc20906f4900134549dd4d35d658082af29865 @Tomas-M committed Nov 9, 2012
Showing with 8 additions and 3 deletions.
  1. +3 −0 .config
  2. +3 −1 README
  3. +1 −1 build
  4. +1 −1 livekitlib
View
@@ -9,6 +9,9 @@
# in order to update isolinux.bin for CD booting.
LIVEKITNAME="mylinux"
+# Kernel file, will be copied to your Live Kit
+VMLINUZ=/boot/vmlinuz
+
# Kernel version. Change it to "3.2.28" for example, if you are building
# Live Kit with a different kernel than the one you are actually running
KERNEL=$(uname -r)
View
4 README
@@ -7,6 +7,8 @@ distribution into a Live Kit (formely known as Live CD).
* Before you start building your Kit, edit the file ./.config
Most importantly change the LIVEKITNAME variable.
+* Make sure your kernel is in /boot/vmlinuz
+
* You may also wish to replace boot graphics in ./bootfiles/bootlogo.png
and reorganize isolinux.cfg to fit your needs (when editing the file,
keep all paths in /boot/, it will be rellocated during LiveKit creation)
@@ -17,7 +19,7 @@ distribution into a Live Kit (formely known as Live CD).
of that. Simply go to directory ./tools/ and run isolinux.bin.update ...
it will update ./bootfiles/isolinux.bin automatically by downloading
isolinux sources, patching them using your actual LIVEKITNAME and
- recompiling.
+ recompiling. This step is not needed if you plan to boot from USB only.
* When done, run the ./build script to create your Live Kit
- it will create ISO and TAR files for you in /tmp
View
2 build
@@ -34,7 +34,7 @@ mv "$INITRAMFS" $BOOT/initrfs.img
cp bootfiles/* $BOOT
cat bootfiles/syslinux.cfg | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" > $BOOT/syslinux.cfg
cat bootfiles/bootinst.bat | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" | sed -r "s:\\\\boot\\\\:\\\\$LIVEKITNAME\\\\boot\\\\:" > $BOOT/bootinst.bat
-cp /boot/vmlinuz $BOOT/
+cp $VMLINUZ $BOOT/
if [ -d sb ]; then
cp sb/* $LIVEKITDATA/$LIVEKITNAME/
View
@@ -196,7 +196,7 @@ init_union()
echo "Setting up union using AUFS 3"
mkdir -p "$1"
mkdir -p "$2"
- mount -t aufs -o xino="/.xino",br="$1" aufs "$2"
+ mount -t aufs -o xino="/.xino",trunc_xino,br="$1" aufs "$2"
}
# Return device mounted for given directory

0 comments on commit 90dc209

Please sign in to comment.