rename linuxkitlib to livekitlib
parent
091bdae49f
commit
ceb1a565aa
|
|
@ -16,8 +16,8 @@ How to create bundle:
|
||||||
or
|
or
|
||||||
# mksquashfs /usr /usr.sb --keep-as-directory -comp xz -bs 512k
|
# mksquashfs /usr /usr.sb --keep-as-directory -comp xz -bs 512k
|
||||||
|
|
||||||
or use function in linuxkitlib:
|
or use function in livekitlib:
|
||||||
# . toos/linuxkitlib; make_bundle bundle_rootfs wholefs.sb
|
# . toos/livekitlib; make_bundle bundle_rootfs wholefs.sb
|
||||||
|
|
||||||
|
|
||||||
Special files in bundle filesystem structure:
|
Special files in bundle filesystem structure:
|
||||||
|
|
|
||||||
2
build
2
build
|
|
@ -8,7 +8,7 @@ echo "Changing current directory to $CHANGEDIR"
|
||||||
cd $CHANGEDIR
|
cd $CHANGEDIR
|
||||||
|
|
||||||
. ./.config || exit 1
|
. ./.config || exit 1
|
||||||
. ./tools/linuxkitlib || exit 1
|
. ./tools/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
|
||||||
allow_only_root
|
allow_only_root
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ touch $INITRAMFS/etc/{m,fs}tab
|
||||||
|
|
||||||
cp init $INITRAMFS/
|
cp init $INITRAMFS/
|
||||||
chmod a+x $INITRAMFS/init
|
chmod a+x $INITRAMFS/init
|
||||||
cp ../tools/linuxkitlib $INITRAMFS/
|
cp ../tools/livekitlib $INITRAMFS/
|
||||||
|
|
||||||
cd $INITRAMFS
|
cd $INITRAMFS
|
||||||
find . -print | cpio -o -H newc 2>/dev/null | gzip -f --best >$INITRAMFS.img
|
find . -print | cpio -o -H newc 2>/dev/null | gzip -f --best >$INITRAMFS.img
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
# global variable
|
# global variable
|
||||||
DEBUG_IS_ENABLED=$(cat /proc/cmdline 2>/dev/null | grep debug)
|
DEBUG_IS_ENABLED=$(cat /proc/cmdline 2>/dev/null | grep debug)
|
||||||
|
LIVEKITNAME=mylinux
|
||||||
|
|
||||||
debug_log()
|
debug_log()
|
||||||
{
|
{
|
||||||
Loading…
Reference in New Issue