configurable kernel file and trunc_xino aufs option
parent
058f384a4e
commit
90dc20906f
3
.config
3
.config
|
|
@ -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)
|
||||
|
|
|
|||
4
README
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
|
||||
|
|
|
|||
2
build
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/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue