# HG changeset patch # User Christophe Lincoln # Date 1488927278 -3600 # Node ID 313cfea052a5251e66efed503509b930672d5a12 # Parent cc1f3876e6732b5457b20a6be2968a25e395b149 Include more libc, compress intramfs with xz and add rootfs section in README diff -r cc1f3876e673 -r 313cfea052a5 README --- a/README Tue Mar 07 20:24:00 2017 +0000 +++ b/README Tue Mar 07 23:54:38 2017 +0100 @@ -70,6 +70,15 @@ * sebpkgs/ The packages to install into the distro +Rootfs & rootfs.xz +-------------------------------------------------------------------------------- +The rootfs/ folder congtain the full system tree and the rootfs.xz in a cpio +archive compressed with xz. In the build process, the files and the packages +are installed in the rootfs first, then the customizalble files in the sebfs/ +folder are copied in the system tree, so any file can be overwrited and you +have full control on all files :-) + + Linux kernel and modules ------------------------------------------------------------------------------- By default seb will use the running kernel and a custom one can be used with diff -r cc1f3876e673 -r 313cfea052a5 packages/sqlite --- a/packages/sqlite Tue Mar 07 20:24:00 2017 +0000 +++ b/packages/sqlite Tue Mar 07 23:54:38 2017 +0100 @@ -4,5 +4,5 @@ deps="" seb_install() { - install_files "/usr/bin/sqlite3" "/usr/lib/libsqlite3*" "/lib/libdl*" + install_files "/usr/bin/sqlite3" "/usr/lib/libsqlite3*" } diff -r cc1f3876e673 -r 313cfea052a5 seb --- a/seb Tue Mar 07 20:24:00 2017 +0000 +++ b/seb Tue Mar 07 23:54:38 2017 +0100 @@ -196,11 +196,12 @@ [ ! -d "$sebfs" ] && init # GNU libc before chroot /bin/busybox --install + name resolution - for lib in /lib/libm[-.]* /lib/libc[-.]* /lib/ld-* /lib/libpthread*; do + for lib in /lib/libm[-.]* /lib/libc[-.]*; do echo -n "Installing: $lib" cp -a ${lib} ${rootfs}/lib && check done - install_files "/lib/libnss_dns*" "/lib/libnss_file*" "/lib/libresolv*" + install_files "/lib/ld-*" "/lib/libnss_dns*" "/lib/libnss_file*" \ + "/lib/libresolv*" "/lib/libpthread*" "/lib/libdl*" # Busybox applets action "Installing: busybox" @@ -284,11 +285,11 @@ chown -R 0.0 ${rootfs} chmod 0600 ${rootfs}/etc/busybox.conf - # Rootfs archive + # Rootfs archive: lzma e -si -so action "Creating the initramfs..." cd ${rootfs} - find . -print | cpio -o -H newc | lzma e -si -so \ - > ${rootiso}/boot/rootfs.gz 2>/dev/null + find . -print | cpio -o -H newc | xz -9 --format=lzma \ + > ${rootiso}/boot/rootfs.xz 2>/dev/null check # Linux Kernel @@ -305,7 +306,7 @@ default seb label seb kernel /boot/bzImage - append initrd=/boot/rootfs.gz rw root=/dev/null rdinit=/sbin/init loglevel=5 + append initrd=/boot/rootfs.xz rw root=/dev/null rdinit=/sbin/init implicit 0 prompt 1 timeout 40