Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:guides:bootguide [2011/05/19 10:01] bellard |
en:guides:bootguide [2016/05/21 15:49] bellard [SliTaz ISO image boot tricks] |
||
---|---|---|---|
Line 17: | Line 17: | ||
| V | | | V | | ||
+-------------------------------+ | +-------------------------------+ | ||
- | | | + | | |
- | V | + | Already running Kernel V |
- | +------- Boot loader --------+ | + | V | |
+ | +------KEXEC (8) Boot loader | ||
+ | | | | ||
+ | +-----+------------+---------+ | ||
| | | | | | ||
V V | V V | ||
Line 26: | Line 29: | ||
| | | | | | ||
V V | V V | ||
- | Run /init -----------+ | | + | +--------Run /init -------------+ | |
- | | | Mount root | + | | | | Mount root |
- | V | filesystem | + | | V | filesystem |
- | Create tmpfs | | | + | | Create tmpfs | | |
- | | | | | | + | | | | | | |
- | V V V V | + | | V V V V |
- | Loram: Frugal: Uncommon(1): | | + | | Loram(7): Frugal: Uncommon(1): | |
- | Mount aufs populate run script | | + | | Mount aufs populate run script | |
- | & squashfs tmpfs load modules(s) | | + | | & squashfs tmpfs load modules(s) | |
- | | | mount root | | + | | | | mount root | |
- | | | | | | + | | | | | | |
- | +------------+------------+ | | + | V +------------+------------+ | |
- | | | | + | | | | |
- | V V | + | +------+ V V |
- | Switch to new root | | + | | Switch to new root | |
- | | | | + | | | | |
- | +------------------------+ | + | | +----------------+ |
- | | | + | Tiny SliTaz(6): | |
- | V | + | | V |
- | Run /sbin/init | + | | Run /sbin/init |
- | | | + | | | |
- | V | + | +----------------------+ |
- | Run /etc/init.d/rcS | + | | |
- | from /etc/inittab | + | V |
+ | Run /etc/init.d/rcS | ||
+ | from /etc/inittab | ||
</code> | </code> | ||
- | - Uncommon is LVM, RAID, crypto, loop or subdir mount with preinit rootfs, see http://doc.slitaz.org/en:guides:uncommoninst | + | - [[uncommoninst|Uncommon]] is LVM, RAID, crypto, loop or subdir mount with preinit rootfs. |
- | - Versatile boot floppy - http://mirror.slitaz.org/boot/floppy-grub4dos | + | - [[http://mirror.slitaz.org/boot/floppy-grub4dos|Versatile boot floppy]] |
- | - Boot floppy set - http://mirror.slitaz.org/floppies/ | + | - [[http://mirror.slitaz.org/floppies/|Boot floppy set]]. |
- | - LAN PXE or WEB boot, see http://doc.slitaz.org/en:guides:pxe | + | - LAN [[pxe|PXE]] or [[http://boot.slitaz.org/|WEB boot]]. |
- | - gpxe.pxe, see http://doc.slitaz.org/en:guides:pxe#advanced-web-booting-configuration | + | - [[pxe#advanced-web-booting-configuration|gpxe.pxe]]. |
+ | - Tiny slitaz, see http://tiny.slitaz.org/ | ||
+ | - [[lowramcd|Lowram CD]]. | ||
+ | - kexec command from the [[http://pkgs.slitaz.org/search.sh?package=kexec-tools|kexec-tools]] package. | ||
+ | |||
+ | ==== SliTaz ISO image boot tricks ==== | ||
+ | |||
+ | The cdrom image has a hybrid format from version 5.0. | ||
+ | |||
+ | * It boots from a cdrom drive according to the el-torito specification as usual | ||
+ | * It boots from a memory card / USB key using the syslinux hybrid format | ||
+ | * It launches a USB boot key creation utility from Windows (32 bits) | ||
+ | * It can boot from DOS (in real mode only) directly: | ||
+ | |||
+ | <code>C:\> ren slitaz.iso slitaz.exe | ||
+ | C:\> slitaz.exe</code> | ||
+ | <note tip> | ||
+ | The files bzImage, memtest and ipxe can boot with DOS too: | ||
+ | <code>C:\> ren bzimage bzimage.exe | ||
+ | C:\> bzimage.exe root=/dev/hda3 autologin</code><code>C:\> ren memtest memtest.exe | ||
+ | C:\> memtest.exe</code><code> | ||
+ | C:\> ren ipxe ipxe.exe | ||
+ | C:\> ipxe.exe http://myserver.org/boot.php</code></note> | ||
+ | |||
+ | * It is easily customizable with the iso2exe (compatible with taziso or tazpanel/boot/ISO mine) tool: | ||
+ | |||
+ | <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</code> | ||
+ | <note tip>You can tune the boot process the your own /init script: | ||
+ | <code>#!/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 "$@" | ||
+ | </code> | ||
+ | Update the kernel command line: | ||
+ | <code>iso2exe -a " rdinit=/myinit lang=fr_FR kmap=fr-latin1 tz=Europe/Paris" -i myconfig slitaz.org -f</code></note> |