# HG changeset patch # User Christophe Lincoln # Date 1488821822 -3600 # Node ID a4fa34b33e9e5b9fe2c0853b10f3987e73cc88f9 # Parent d22172a670152d66e3baefb2070a5f687f6e8dc1 Some tiny fixes + add ncdu package diff -r d22172a67015 -r a4fa34b33e9e README --- a/README Mon Mar 06 16:43:31 2017 +0100 +++ b/README Mon Mar 06 18:37:02 2017 +0100 @@ -47,12 +47,12 @@ Build process & environment -------------------------------------------------------------------------------- -Seb is not compliling any tools, it will use Slitaz standard executable and -libraries - Seb-os is created on top of SliTaz. Packages installed in seb must +Seb is not compliling any tools, it will use SliTaz standard executable and +libraries - Seb OS is created on top of SliTaz. Packages installed in seb must be on the build host, this is the case for the full basic sysem. Seb will build the custom operating system into the current directory or it -will read a seb.conf file to know the path to the work/build folder. Seb will +will read a build.conf file to know the path to the work/build folder. Seb will use these directories to work: * rootfs/ The root filsysytem of the compressed operationg system @@ -69,7 +69,15 @@ provide a nifty little tools for frugal install: # frugal path/to/image.iso - + +Grub entry will need a rdinit=/sbin/init on the kernel line. Here is an example: + +# Seb OS Frugal on sdb1 +title SliTaz Embedded OS (frugal) +root (hd0,0) +kernel /boot/frugal/bzImage root=/dev/null rdinit=/sbin/init +initrd /boot/frugal/rootfs.gz + Virtual disk -------------------------------------------------------------------------------- @@ -93,6 +101,9 @@ * seb SliTaz Embedded operation system builder * tools/ Various tools included or used to build an OS * packages/ SliTaz Embedded packages + +We dont want to much automation, let people create ther own OS in there +own way but provide some usefull function to help :-) Gettext i18n diff -r d22172a67015 -r a4fa34b33e9e initfs/etc/init.d/rcS --- a/initfs/etc/init.d/rcS Mon Mar 06 16:43:31 2017 +0100 +++ b/initfs/etc/init.d/rcS Mon Mar 06 18:37:02 2017 +0100 @@ -9,15 +9,15 @@ # Mount filesystems echo "Mounting filesystems..." -/bin/mount proc /bin/mount -a +/bin/mount --bind /run /var/run # Populate /dev + config hotplug echo "Population /dev and config hotplug helper..." /bin/touch /dev/mdev.log; /sbin/mdev -s echo "/sbin/mdev" >/proc/sys/kernel/hotplug -# Mount vdisk in Qemu or vdisk=/dev/sdb1:/path/to/seb-home.img +# Mount vdisk in Qemu or vdisk=/dev/sdb1:/path/to/sebhome.img if blkid | fgrep -q "SebOShome"; then colorize 036 "Mounting seb OS virtual disk on: /home" mount /dev/sda /home diff -r d22172a67015 -r a4fa34b33e9e packages/clex --- a/packages/clex Mon Mar 06 16:43:31 2017 +0100 +++ b/packages/clex Mon Mar 06 18:37:02 2017 +0100 @@ -4,5 +4,5 @@ deps="" seb_install() { - install_files "/usr/bin/clex" "/usr/bin/cfg-clex" "/lib/libtinfo*" + install_files "/usr/bin/clex" "/usr/bin/cfg-clex" } diff -r d22172a67015 -r a4fa34b33e9e packages/ncdu --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ncdu Mon Mar 06 18:37:02 2017 +0100 @@ -0,0 +1,8 @@ +# SliTaz Embedded package + +desc="NCurses Disk Usage" +deps="" + +seb_install() { + install_files "/usr/bin/ncdu" +} diff -r d22172a67015 -r a4fa34b33e9e seb --- a/seb Mon Mar 06 16:43:31 2017 +0100 +++ b/seb Mon Mar 06 18:37:02 2017 +0100 @@ -177,7 +177,7 @@ # FSH Tree echo -n "Populating: filesystem" for d in bin dev etc lib root run home proc media sbin sys \ - usr/bin usr/sbin usr/share var/log var/cache var/lib + usr/bin usr/sbin usr/share var/log var/cache var/lib var/run do mkdir -p ${rootfs}/${d} done @@ -219,10 +219,10 @@ cp -a ${tools}/kilo ${rootfs}/usr/bin; check # Ncursesw && dialog for sebos and additional tools - install_files "/lib/libncursesw.so*" "/usr/bin/dialog" + install_files "/lib/libncursesw.so*" "/lib/libtinfo.so*" mkdir -p ${rootfs}/usr/share/terminfo/l cp /usr/share/terminfo/l/linux ${rootfs}/usr/share/terminfo/l - cp /etc/dialogrc ${rootfs}/etc + install_files "/usr/bin/dialog" "/etc/dialogrc" # /lib/libseb.sh & sebos config tool echo -n "Installing: /lib/libseb.sh" @@ -238,7 +238,7 @@ touch ${rootfs}/var/lib/packages for pkg in $(ls $sebpkgs); do echo -n $(colorize 035 "Installing package:"); info 036 "$pkg" - . ${packages}/${pkg} + . ${sebpkgs}/${pkg} seb_install; echo "$pkg|$desc" >> ${rootfs}/var/lib/packages done