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

Up openssh (8.3p1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 28 13:18:28 2020 +0000 (2020-05-28)
parents 2547fda51451
children
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 (10752 bytes).
39 syslinux.mbr at 2A00 (512 bytes).
40 flavor.info at 2C00 (664 bytes).
41 18035 free bytes in 2E98..750B
42 isoboot.com at 750B (1085 bytes).
43 rootfs.gz at 7948 (1704 bytes).
44 boot.md5 at 7FF0 (16 bytes).
45 fs.iso at 8000 (47065088 bytes).
46 custom.magic at 2CEA800 (39 bytes).
47 custom.append at 2CEA82F (59 bytes).
48 custom.initrd at 2CEA878 (46749 bytes).
49 41195 free bytes in 2CF5F15..2D00000
50 MBR partitions :
51 0:00000001 0001A7FF EE
52 EFI partitions :
53 0:000001A4 00031C04 EFI System Partition
55 And extract the initramfs:
56 $ iso2exe -r slitaz.iso custom.initrd
58 The taziso tool is custom live cd aware:
59 # taziso slitaz.iso isomd5
60 SliTaz core-4in1 2020-05-24 slitaz.iso
61 Check the ISO image
62 ----
63 Checking iso image...OK
64 Checking iso hybrid boot....OK
65 Checking iso custom config...OK