diff --git a/DOC/bundle.txt b/DOC/bundle.txt new file mode 100644 index 0000000..e5e119a --- /dev/null +++ b/DOC/bundle.txt @@ -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 + + diff --git a/DOC/terminology.txt b/DOC/terminology.txt new file mode 100644 index 0000000..93807f9 --- /dev/null +++ b/DOC/terminology.txt @@ -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. + + diff --git a/bootfiles/gfxboot.c32 b/bootfiles/gfxboot.c32 new file mode 100755 index 0000000..2116094 Binary files /dev/null and b/bootfiles/gfxboot.c32 differ diff --git a/bootfiles/isolinux.bin b/bootfiles/isolinux.bin new file mode 100644 index 0000000..1512264 Binary files /dev/null and b/bootfiles/isolinux.bin differ diff --git a/bootfiles/isolinux.cfg b/bootfiles/isolinux.cfg new file mode 100644 index 0000000..20cb672 --- /dev/null +++ b/bootfiles/isolinux.cfg @@ -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 diff --git a/bootfiles/vesamenu.c32 b/bootfiles/vesamenu.c32 new file mode 100755 index 0000000..b662aa8 Binary files /dev/null and b/bootfiles/vesamenu.c32 differ diff --git a/initramfs/init b/initramfs/init new file mode 100644 index 0000000..12f34fe --- /dev/null +++ b/initramfs/init @@ -0,0 +1,23 @@ +#!/bin/bash +# Initial script for Linux Live Kit +# Author: Tomas M + +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