Revision 1 of 2026-11-25 15:15 UTC by bellard, not the current one. Current version - History

boot-process SliTaz 5.0

From BIOS to /etc/init.d/rcS

                      CPU
                       |
                       V
   +------------------BIOS----------------+
   |             |            |           |
   V             V            V           V
 Floppy      Hard Disk    Versatile      PXE (4)
 set (3)    DVD/CD-ROM <- Floppy (2) -->  or
   |          USB key                  WEB boot
   V             V                        |
   +-------------+         +--------------+
          |                V              |
          V         PXE forwarder (5)     V
     Boot Sector           |              |
          |                V              |
          +-------------------------------+
                                |
Already running Kernel          V
          V                     |
          +------KEXEC (8)  Boot loader 
                   |            |
             +-----+------------+---------+
             |                            |
             V                            V
     Frugal/Uncommon(1):              Installed:
    load Kernel+initramfs          load Kernel only
             |                            |
             V                            V
+--------Run /init -------------+         |
|            |                  |     Mount root
|            V                  |     filesystem  
|      Create tmpfs             |         |
|     |            |            |         |
|     V            V            V         V
|  Loram(7):     Frugal:    Uncommon(1):  | 
| Mount aufs    populate    run script    |
| & squashfs     tmpfs    load modules(s) |
|     |            |        mount root    |
|     |            |            |         |
V     +------------+------------+         |
|                        |                |
+------+                 V                V
       |         Switch to new root       |
       |                 |                |
       |                 +----------------+
 Tiny SliTaz(6):              |
       |                      V
       |               Run /sbin/init
       |                      |
       +----------------------+
                   |
                   V
          Run /etc/init.d/rcS       
           from /etc/inittab
  1. Uncommon is LVM, RAID, crypto, loop or subdir mount with preinit rootfs.
  2. Versatile boot floppy
  3. Boot floppy set.
  4. LAN PXE or WEB boot.
  5. gpxe.pxe.
  6. Tiny slitaz, see http://tiny.slitaz.org/
  7. Lowram CD.
  8. kexec command from the kexec-tools package.

SliTaz ISO image boot tricks

The cdrom image has a hybrid format from version 5.0.

C:\> ren slitaz.iso slitaz.exe
C:\> slitaz.exe

The files bzImage, memtest and ipxe can boot with DOS too:

C:\> ren bzimage bzimage.exe
C:\> bzimage.exe root=/dev/hda3 autologin

C:> memtest.exe</code><code> C:> ren ipxe ipxe.exe C:> ipxe.exe http://myserver.org/boot.php</code>

iso2exe -a "lang=fr_FR kmap=fr-latin1 tz=Europe/Paris" -i myconfig.gz slitaz.iso
iso2exe -l slitaz.iso
iso2exe -r slitaz.iso custom.append custom.initrd
taziso slitaz.iso getcustomconf
taziso slitaz.iso isomd5

You can tune the boot process with your own /init script:

#!/bin/sh

sed -i 's,^RUN_DAEMONS=",RUN_DAEMONS="dropbear ,' /etc/rcS.conf
cat >> /etc/init.d/local.sh <<EOM
/my/special/inits.sh
EOM
exec /init "$@"

Update the kernel command line:

iso2exe -a "rdinit=/myinit lang=fr_FR kmap=fr-latin1 tz=Europe/Paris" -i myconfig slitaz.iso -f