seb rev 21
Include more libc, compress intramfs with xz and add rootfs section in README
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 07 23:54:38 2017 +0100 (2017-03-07) |
parents | cc1f3876e673 |
children | e7d8e4a84d42 |
files | README packages/sqlite seb |
line diff
1.1 --- a/README Tue Mar 07 20:24:00 2017 +0000 1.2 +++ b/README Tue Mar 07 23:54:38 2017 +0100 1.3 @@ -70,6 +70,15 @@ 1.4 * sebpkgs/ The packages to install into the distro 1.5 1.6 1.7 +Rootfs & rootfs.xz 1.8 +-------------------------------------------------------------------------------- 1.9 +The rootfs/ folder congtain the full system tree and the rootfs.xz in a cpio 1.10 +archive compressed with xz. In the build process, the files and the packages 1.11 +are installed in the rootfs first, then the customizalble files in the sebfs/ 1.12 +folder are copied in the system tree, so any file can be overwrited and you 1.13 +have full control on all files :-) 1.14 + 1.15 + 1.16 Linux kernel and modules 1.17 ------------------------------------------------------------------------------- 1.18 By default seb will use the running kernel and a custom one can be used with
2.1 --- a/packages/sqlite Tue Mar 07 20:24:00 2017 +0000 2.2 +++ b/packages/sqlite Tue Mar 07 23:54:38 2017 +0100 2.3 @@ -4,5 +4,5 @@ 2.4 deps="" 2.5 2.6 seb_install() { 2.7 - install_files "/usr/bin/sqlite3" "/usr/lib/libsqlite3*" "/lib/libdl*" 2.8 + install_files "/usr/bin/sqlite3" "/usr/lib/libsqlite3*" 2.9 }
3.1 --- a/seb Tue Mar 07 20:24:00 2017 +0000 3.2 +++ b/seb Tue Mar 07 23:54:38 2017 +0100 3.3 @@ -196,11 +196,12 @@ 3.4 [ ! -d "$sebfs" ] && init 3.5 3.6 # GNU libc before chroot /bin/busybox --install + name resolution 3.7 - for lib in /lib/libm[-.]* /lib/libc[-.]* /lib/ld-* /lib/libpthread*; do 3.8 + for lib in /lib/libm[-.]* /lib/libc[-.]*; do 3.9 echo -n "Installing: $lib" 3.10 cp -a ${lib} ${rootfs}/lib && check 3.11 done 3.12 - install_files "/lib/libnss_dns*" "/lib/libnss_file*" "/lib/libresolv*" 3.13 + install_files "/lib/ld-*" "/lib/libnss_dns*" "/lib/libnss_file*" \ 3.14 + "/lib/libresolv*" "/lib/libpthread*" "/lib/libdl*" 3.15 3.16 # Busybox applets 3.17 action "Installing: busybox" 3.18 @@ -284,11 +285,11 @@ 3.19 chown -R 0.0 ${rootfs} 3.20 chmod 0600 ${rootfs}/etc/busybox.conf 3.21 3.22 - # Rootfs archive 3.23 + # Rootfs archive: lzma e -si -so 3.24 action "Creating the initramfs..." 3.25 cd ${rootfs} 3.26 - find . -print | cpio -o -H newc | lzma e -si -so \ 3.27 - > ${rootiso}/boot/rootfs.gz 2>/dev/null 3.28 + find . -print | cpio -o -H newc | xz -9 --format=lzma \ 3.29 + > ${rootiso}/boot/rootfs.xz 2>/dev/null 3.30 check 3.31 3.32 # Linux Kernel 3.33 @@ -305,7 +306,7 @@ 3.34 default seb 3.35 label seb 3.36 kernel /boot/bzImage 3.37 - append initrd=/boot/rootfs.gz rw root=/dev/null rdinit=/sbin/init loglevel=5 3.38 + append initrd=/boot/rootfs.xz rw root=/dev/null rdinit=/sbin/init 3.39 implicit 0 3.40 prompt 1 3.41 timeout 40