rename .config to config
This commit is contained in:
@@ -13,10 +13,10 @@ Note:
|
|||||||
make a directory such as /a and put these scripts there.
|
make a directory such as /a and put these scripts there.
|
||||||
Be warned, if you put it to /tmp, some distros may erase it on reboot.
|
Be warned, if you put it to /tmp, some distros may erase it on reboot.
|
||||||
|
|
||||||
* Before you start building your Kit, edit the file ./.config
|
* Before you start building your Kit, edit the file ./config
|
||||||
Most importantly change the LIVEKITNAME variable.
|
Most importantly change the LIVEKITNAME variable.
|
||||||
|
|
||||||
* Make sure your kernel is in /boot/vmlinuz or change the path in ./.config
|
* Make sure your kernel is in /boot/vmlinuz or change the path in ./config
|
||||||
Your kernel must support squashfs and aufs. Debian Jessie's kernel does.
|
Your kernel must support squashfs and aufs. Debian Jessie's kernel does.
|
||||||
|
|
||||||
* You may also wish to replace boot graphics in ./bootfiles/bootlogo.png
|
* You may also wish to replace boot graphics in ./bootfiles/bootlogo.png
|
||||||
|
|||||||
+1
-1
@@ -18,5 +18,5 @@ apt-get install aufs-dkms
|
|||||||
cd initramfs
|
cd initramfs
|
||||||
. ./initramfs_create
|
. ./initramfs_create
|
||||||
|
|
||||||
cp -f $INITRAMFS.img $LIVEKITDATA/$LIVEKITNAME/boot/initrfs.img
|
mv -f $INITRAMFS.img $LIVEKITDATA/$LIVEKITNAME/boot/initrfs.img
|
||||||
cp -f $CWD/bootfiles/* $LIVEKITDATA/$LIVEKITNAME/boot/
|
cp -f $CWD/bootfiles/* $LIVEKITDATA/$LIVEKITNAME/boot/
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ echo "Changing current directory to $CHANGEDIR"
|
|||||||
CWD="$(pwd)"
|
CWD="$(pwd)"
|
||||||
cd $CHANGEDIR
|
cd $CHANGEDIR
|
||||||
|
|
||||||
. ./.config || exit 1
|
. ./config || exit 1
|
||||||
. ./livekitlib || exit 1
|
. ./livekitlib || exit 1
|
||||||
|
|
||||||
# only root can continue, because only root can read all files from your system
|
# only root can continue, because only root can read all files from your system
|
||||||
@@ -79,7 +79,7 @@ echo cd ../../ '&&' $MKISOFS -o "$TARGET/$LIVEKITNAME-$ARCH.iso" -v -J -R -D -A
|
|||||||
-no-emul-boot -boot-info-table -boot-load-size 4 \
|
-no-emul-boot -boot-info-table -boot-load-size 4 \
|
||||||
-b "$LIVEKITNAME"/boot/isolinux.bin -c "$LIVEKITNAME"/boot/isolinux.boot . \
|
-b "$LIVEKITNAME"/boot/isolinux.bin -c "$LIVEKITNAME"/boot/isolinux.boot . \
|
||||||
> "$LIVEKITNAME"/boot/make_iso
|
> "$LIVEKITNAME"/boot/make_iso
|
||||||
|
|
||||||
echo cd ../../ '&&' zip -0 -r "$TARGET/$LIVEKITNAME-$ARCH.zip" '*' \
|
echo cd ../../ '&&' zip -0 -r "$TARGET/$LIVEKITNAME-$ARCH.zip" '*' \
|
||||||
> "$LIVEKITNAME"/boot/make_zip
|
> "$LIVEKITNAME"/boot/make_zip
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
export PATH=.:/:/usr/sbin:/usr/bin:/sbin:/bin
|
export PATH=.:/:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
|
||||||
. /lib/.config
|
. /lib/config
|
||||||
. /lib/livekitlib
|
. /lib/livekitlib
|
||||||
|
|
||||||
transfer_initramfs
|
transfer_initramfs
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Author: Tomas M <http://www.linux-live.org/>
|
# Author: Tomas M <http://www.linux-live.org/>
|
||||||
#
|
#
|
||||||
|
|
||||||
. ../.config
|
. ../config
|
||||||
|
|
||||||
INITRAMFS=/tmp/$LIVEKITNAME-initramfs-$$
|
INITRAMFS=/tmp/$LIVEKITNAME-initramfs-$$
|
||||||
|
|
||||||
@@ -119,7 +119,7 @@ cp cleanup $INITRAMFS/lib
|
|||||||
chmod a+x $INITRAMFS/lib/cleanup
|
chmod a+x $INITRAMFS/lib/cleanup
|
||||||
ln -s ../init $INITRAMFS/bin/init
|
ln -s ../init $INITRAMFS/bin/init
|
||||||
cp ../livekitlib $INITRAMFS/lib/
|
cp ../livekitlib $INITRAMFS/lib/
|
||||||
cp ../.config $INITRAMFS/lib/
|
cp ../config $INITRAMFS/lib/
|
||||||
|
|
||||||
cd $INITRAMFS
|
cd $INITRAMFS
|
||||||
find . -print | cpio -o -H newc 2>/dev/null | xz -f --extreme --check=crc32 >$INITRAMFS.img
|
find . -print | cpio -o -H newc 2>/dev/null | xz -f --extreme --check=crc32 >$INITRAMFS.img
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# This script will update the file ../bootfiles/isolinux.bin to match
|
# This script will update the file ../bootfiles/isolinux.bin to match
|
||||||
# your LiveKit name used in ../.config
|
# your LiveKit name used in ../config
|
||||||
#
|
#
|
||||||
# Requires: wget, tar, gzip, make, gcc, nasm, perl, glibc-devel, libuuid-devel (e2fsprogs)
|
# Requires: wget, tar, gzip, make, gcc, nasm, perl, glibc-devel, libuuid-devel (e2fsprogs)
|
||||||
#
|
#
|
||||||
@@ -15,7 +15,7 @@ PKG=syslinux-4.06
|
|||||||
PKGTGZ=$PKG.tar.gz
|
PKGTGZ=$PKG.tar.gz
|
||||||
DL="http://www.kernel.org/pub/linux/utils/boot/syslinux/$PKGTGZ"
|
DL="http://www.kernel.org/pub/linux/utils/boot/syslinux/$PKGTGZ"
|
||||||
|
|
||||||
. ../.config
|
. ../config
|
||||||
|
|
||||||
# download, unpack, and patch syslinux
|
# download, unpack, and patch syslinux
|
||||||
if [ ! -d $PKG ]; then
|
if [ ! -d $PKG ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user