seb rev 10

Some tiny fixes + add ncdu package
author Christophe Lincoln <pankso@slitaz.org>
date Mon Mar 06 18:37:02 2017 +0100 (2017-03-06)
parents d22172a67015
children d28b86ae0e45
files README initfs/etc/init.d/rcS packages/clex packages/ncdu seb
line diff
     1.1 --- a/README	Mon Mar 06 16:43:31 2017 +0100
     1.2 +++ b/README	Mon Mar 06 18:37:02 2017 +0100
     1.3 @@ -47,12 +47,12 @@
     1.4  
     1.5  Build process & environment
     1.6  --------------------------------------------------------------------------------
     1.7 -Seb is not compliling any tools, it will use Slitaz standard executable and
     1.8 -libraries - Seb-os is created on top of SliTaz. Packages installed in seb must
     1.9 +Seb is not compliling any tools, it will use SliTaz standard executable and
    1.10 +libraries - Seb OS is created on top of SliTaz. Packages installed in seb must
    1.11  be on the build host, this is the case for the full basic sysem.
    1.12  
    1.13  Seb will build the custom operating system into the current directory or it
    1.14 -will read a seb.conf file to know the path to the work/build folder. Seb will
    1.15 +will read a build.conf file to know the path to the work/build folder. Seb will
    1.16  use these directories to work:
    1.17  
    1.18    * rootfs/     The root filsysytem of the compressed operationg system
    1.19 @@ -69,7 +69,15 @@
    1.20  provide a nifty little tools for frugal install:
    1.21  
    1.22    # frugal path/to/image.iso
    1.23 -  
    1.24 +
    1.25 +Grub entry will need a rdinit=/sbin/init on the kernel line. Here is an example:
    1.26 +
    1.27 +# Seb OS Frugal on sdb1
    1.28 +title SliTaz Embedded OS (frugal)
    1.29 +root (hd0,0)
    1.30 +kernel /boot/frugal/bzImage root=/dev/null rdinit=/sbin/init
    1.31 +initrd /boot/frugal/rootfs.gz
    1.32 +
    1.33  
    1.34  Virtual disk
    1.35  --------------------------------------------------------------------------------
    1.36 @@ -93,6 +101,9 @@
    1.37    * seb             SliTaz Embedded operation system builder
    1.38    * tools/          Various tools included or used to build an OS
    1.39    * packages/       SliTaz Embedded packages
    1.40 +
    1.41 +We dont want to much automation, let people create ther own OS in there
    1.42 +own way but provide some usefull function to help :-)
    1.43    
    1.44  
    1.45  Gettext i18n
     2.1 --- a/initfs/etc/init.d/rcS	Mon Mar 06 16:43:31 2017 +0100
     2.2 +++ b/initfs/etc/init.d/rcS	Mon Mar 06 18:37:02 2017 +0100
     2.3 @@ -9,15 +9,15 @@
     2.4  
     2.5  # Mount filesystems
     2.6  echo "Mounting filesystems..."
     2.7 -/bin/mount proc
     2.8  /bin/mount -a
     2.9 +/bin/mount --bind /run /var/run
    2.10  
    2.11  # Populate /dev + config hotplug
    2.12  echo "Population /dev and config hotplug helper..."
    2.13  /bin/touch /dev/mdev.log; /sbin/mdev -s
    2.14  echo "/sbin/mdev" >/proc/sys/kernel/hotplug
    2.15  
    2.16 -# Mount vdisk in Qemu or vdisk=/dev/sdb1:/path/to/seb-home.img
    2.17 +# Mount vdisk in Qemu or vdisk=/dev/sdb1:/path/to/sebhome.img
    2.18  if blkid | fgrep -q "SebOShome"; then
    2.19  	colorize 036 "Mounting seb OS virtual disk on: /home"
    2.20  	mount /dev/sda /home
     3.1 --- a/packages/clex	Mon Mar 06 16:43:31 2017 +0100
     3.2 +++ b/packages/clex	Mon Mar 06 18:37:02 2017 +0100
     3.3 @@ -4,5 +4,5 @@
     3.4  deps=""
     3.5  
     3.6  seb_install() {
     3.7 -	install_files "/usr/bin/clex" "/usr/bin/cfg-clex" "/lib/libtinfo*"
     3.8 +	install_files "/usr/bin/clex" "/usr/bin/cfg-clex"
     3.9  }
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/packages/ncdu	Mon Mar 06 18:37:02 2017 +0100
     4.3 @@ -0,0 +1,8 @@
     4.4 +# SliTaz Embedded package
     4.5 +
     4.6 +desc="NCurses Disk Usage"
     4.7 +deps=""
     4.8 +
     4.9 +seb_install() {
    4.10 +	install_files "/usr/bin/ncdu"
    4.11 +}
     5.1 --- a/seb	Mon Mar 06 16:43:31 2017 +0100
     5.2 +++ b/seb	Mon Mar 06 18:37:02 2017 +0100
     5.3 @@ -177,7 +177,7 @@
     5.4  	# FSH Tree
     5.5  	echo -n "Populating: filesystem"
     5.6  	for d in bin dev etc lib root run home proc media sbin sys \
     5.7 -		usr/bin usr/sbin usr/share var/log var/cache var/lib
     5.8 +		usr/bin usr/sbin usr/share var/log var/cache var/lib var/run
     5.9  	do
    5.10  		mkdir -p ${rootfs}/${d}
    5.11  	done
    5.12 @@ -219,10 +219,10 @@
    5.13  	cp -a ${tools}/kilo ${rootfs}/usr/bin; check
    5.14  	
    5.15  	# Ncursesw && dialog for sebos and additional tools
    5.16 -	install_files "/lib/libncursesw.so*" "/usr/bin/dialog"
    5.17 +	install_files "/lib/libncursesw.so*" "/lib/libtinfo.so*"
    5.18  	mkdir -p ${rootfs}/usr/share/terminfo/l
    5.19  	cp /usr/share/terminfo/l/linux ${rootfs}/usr/share/terminfo/l
    5.20 -	cp /etc/dialogrc ${rootfs}/etc
    5.21 +	install_files "/usr/bin/dialog" "/etc/dialogrc" 
    5.22  	
    5.23  	# /lib/libseb.sh & sebos config tool
    5.24  	echo -n "Installing: /lib/libseb.sh"
    5.25 @@ -238,7 +238,7 @@
    5.26  	touch ${rootfs}/var/lib/packages
    5.27  	for pkg in $(ls $sebpkgs); do
    5.28  		echo -n $(colorize 035 "Installing package:"); info 036 "$pkg"
    5.29 -		. ${packages}/${pkg}
    5.30 +		. ${sebpkgs}/${pkg}
    5.31  		seb_install; echo "$pkg|$desc" >> ${rootfs}/var/lib/packages
    5.32  	done
    5.33