new files
parent
bfcf2bdef4
commit
2f9b6a4c8e
|
|
@ -0,0 +1,31 @@
|
||||||
|
Bundle
|
||||||
|
------
|
||||||
|
|
||||||
|
A bundle is compressed squashfs filesystem, consisting of up-to-the-root
|
||||||
|
directory structure. Old name for bundle is 'module'. Bundle format
|
||||||
|
brings some new enhancements over the old modules.
|
||||||
|
|
||||||
|
File extension for bundles may vary. Currently Slax uses .sb extension,
|
||||||
|
where 'sb' means 'slax bundle'.
|
||||||
|
|
||||||
|
|
||||||
|
How to create bundle:
|
||||||
|
|
||||||
|
# mksquashfs bundle_rootfs wholefs.sb -comp xz -bs 512k
|
||||||
|
|
||||||
|
or
|
||||||
|
# mksquashfs /usr /usr.sb --keep-as-directory -comp xz -bs 512k
|
||||||
|
|
||||||
|
or use function in linuxkitlib:
|
||||||
|
# . toos/linuxkitlib; make_bundle bundle_rootfs wholefs.sb
|
||||||
|
|
||||||
|
|
||||||
|
Special files in bundle filesystem structure:
|
||||||
|
|
||||||
|
|
||||||
|
/run/requires
|
||||||
|
/run/onmount.sh
|
||||||
|
/run/onumount.sh
|
||||||
|
/run/startcmd.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
Live Kit
|
||||||
|
--------
|
||||||
|
|
||||||
|
* also known as Linux Live Kit. Formely known as Linux Live CD. Nowadays,
|
||||||
|
people mostly use USB flash drives, cameras, and other devices to run
|
||||||
|
such 'Live' linuxes, thus Live CD is no longer ideal name for it.
|
||||||
|
|
||||||
|
Meaning of Kit is like a tool, toolkit, or such. Which (I believe) corresponds
|
||||||
|
with the usage of such Live Linux distribution much better.
|
||||||
|
|
||||||
|
|
||||||
|
Bundles
|
||||||
|
-------
|
||||||
|
|
||||||
|
* compressed squashfs images with some specialities
|
||||||
|
Read ./bundle.txt for more.
|
||||||
|
|
||||||
|
|
||||||
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,8 @@
|
||||||
|
PROMPT 0
|
||||||
|
TIMEOUT 40
|
||||||
|
DEFAULT /boot/vesamenu.c32
|
||||||
|
|
||||||
|
LABEL linux
|
||||||
|
MENU LABEL Run linux
|
||||||
|
KERNEL /boot/vmlinuz
|
||||||
|
APPEND vga=769 initrd=/boot/initfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Initial script for Linux Live Kit
|
||||||
|
# Author: Tomas M <http://www.linux-live.org/>
|
||||||
|
|
||||||
|
export PATH=.:/:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
|
||||||
|
mount -n -t proc proc /proc
|
||||||
|
mount -n -t sysfs sysfs /sys
|
||||||
|
mount -n -o remount,rw rootfs /
|
||||||
|
ln -sf /proc/mounts /etc/mtab # this allows us to use umount -a
|
||||||
|
|
||||||
|
# Don't print kernel messages to konsole any longer
|
||||||
|
echo "0" >/proc/sys/kernel/printk
|
||||||
|
|
||||||
|
# Activate zram (auto-compression of RAM)
|
||||||
|
modprobe zram
|
||||||
|
echo $(($(grep MemTotal /proc/meminfo | tr -s " " | cut -d " " -f 2)*2*1024)) > /sys/block/zram0/disksize
|
||||||
|
mkswap /dev/zram0
|
||||||
|
swapon /dev/zram0
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "Here is a shell for you:"
|
||||||
|
/bin/bash
|
||||||
Loading…
Reference in New Issue