wok view syslinux/stuff/iso2exe/README.custom @ rev 21801

linld/iso2exe: remove non slitaz dos boot
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 18:47:30 2019 +0200 (2019-08-10)
parents 37bef16b6789
children 2c466aa0cddc
line source
1 iso2exe can insert your custom settings in the SliTaz live iso image:
3 For example let's say you live in Paris and you want to add your wifi settings
4 and your SSH keys into the live CD.
6 Create a directory tree like
8 extra
9 extra/init.d
10 extra/etc
11 extra/etc/dropbear
13 copy /usr/share/boot/init.custom in the root (where extra/ is)
14 copy /etc/dropbear/dropbear_*_host_key files in extra/etc/dropbear
16 either:
17 copy your network.conf in extra/etc/
18 or (better, compatible with any SliTaz version):
19 add a shell script in extra/init.d/
20 cat > extra/init.d/wifi <<EOT
21 sed -i 's/^WIFI="no"/WIFI="yes"/' /etc/network.conf
22 sed -i 's/^WIFI_ESSID=".*/WIFI_ESSID="TheCustomESSID"/' /etc/network.conf
23 sed -i 's/^WIFI_KEY=".*/WIFI_KEY="TheWifiKey"/' /etc/network.conf
24 EOT
26 Create the initranfs:
27 # find init.custom extra | cpio -o -H newc | gzip -9 > ../initrd.custom
28 # cd ..
30 And update the ISO image:
31 # iso2exe -a "rdinit=/init.custom lang=fr_FR kmap=fr-latin1 tz=Europe/Paris" \
32 -i initrd.custom slitaz.iso -f
34 That's it!
36 Note you can check whether an ISO image is customized:
37 $ iso2exe -l slitaz.iso
38 win32.exe at 0000 (6144 bytes).
39 syslinux.mbr at 1800 (512 bytes).
40 flavor.info at 1A00 (664 bytes).
41 6841 free bytes in 1C98..3751
42 tazboot.com at 3751 (6994 bytes).
43 rootfs.gz at 52A3 (11429 bytes).
44 dosstub at 7F48 (184 bytes).
45 boot.md5 at 7FF0 (16 bytes).
46 fs.iso at 8000 (47065088 bytes).
47 custom.magic at 2CEA800 (39 bytes).
48 custom.append at 2CEA82F (59 bytes).
49 custom.initrd at 2CEA878 (46749 bytes).
50 41195 free bytes in 2CF5F15..2D00000
51 MBR partitions :
52 1:00000000 00016800 17
54 And extract the initramfs:
55 $ iso2exe -r slitaz.iso custom.initrd
57 The taziso tool is custom live cd aware:
58 # taziso slitaz.iso isomd5
59 SliTaz core-4in1 2016-10-16 slitaz.iso
60 Check the ISO image
61 ----
62 Checking iso image...OK
63 Checking iso hybrid boot....OK
64 Checking iso custom config...OK