wok-next diff syslinux/stuff/iso2exe/README.custom @ rev 19450

syslinux: typo in iso2exe
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 17 15:31:24 2016 +0200 (2016-10-17)
parents
children 2547fda51451
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/syslinux/stuff/iso2exe/README.custom	Mon Oct 17 15:31:24 2016 +0200
     1.3 @@ -0,0 +1,64 @@
     1.4 +iso2exe can insert your custom settings in the SliTaz live iso image:
     1.5 +
     1.6 +For example let's say you live in Paris and you want to add your wifi settings
     1.7 +and your SSH keys into the live CD.
     1.8 +
     1.9 +Create a directory tree like
    1.10 +
    1.11 +extra
    1.12 +extra/init.d
    1.13 +extra/etc
    1.14 +extra/etc/dropbear
    1.15 +
    1.16 +copy /usr/share/boot/init.custom in the root (where is extra/)
    1.17 +copy /etc/dropbear/dropbear_*_host_key files in extra/etc/dropbear
    1.18 +
    1.19 +either:
    1.20 +	copy your network.conf in extra/etc/
    1.21 +or (better, compatible with any SliTaz version):
    1.22 +	add a shell script in extra/init.d/
    1.23 +cat > extra/init.d/wifi <<EOT
    1.24 +sed -i 's/^WIFI="no"/WIFI="yes"/' /etc/network.conf
    1.25 +sed -i 's/^WIFI_ESSID=".*/WIFI_ESSID="TheCustomESSID"/' /etc/network.conf
    1.26 +sed -i 's/^WIFI_KEY=".*/WIFI_KEY="TheWifiKey"/' /etc/network.conf
    1.27 +EOT
    1.28 +
    1.29 +Create the initranfs:
    1.30 +# find init.custom extra | cpio -o -H newc | gzip -9 > ../initrd.custom
    1.31 +# cd ..
    1.32 +
    1.33 +And update the ISO image:
    1.34 +# iso2exe -a "rdinit=/init.custom lang=fr_FR kmap=fr-latin1 tz=Europe/Paris" \
    1.35 +	-i initrd.custom slitaz.iso -f
    1.36 +
    1.37 +That's it!
    1.38 +
    1.39 +Note you can check whether an ISO image is customized:
    1.40 +$ iso2exe -l slitaz.iso
    1.41 +win32.exe at 0000 (6144 bytes).
    1.42 +syslinux.mbr at 1800 (512 bytes).
    1.43 +flavor.info at 1A00 (664 bytes).
    1.44 +6841 free bytes in 1C98..3751
    1.45 +tazboot.com at 3751 (6994 bytes).
    1.46 +rootfs.gz at 52A3 (11429 bytes).
    1.47 +dosstub at 7F48 (184 bytes).
    1.48 +boot.md5 at 7FF0 (16 bytes).
    1.49 +fs.iso at 8000 (47065088 bytes).
    1.50 +custom.magic at 2CEA800 (39 bytes).
    1.51 +custom.append at 2CEA82F (59 bytes).
    1.52 +custom.initrd at 2CEA878 (46749 bytes).
    1.53 +41195 free bytes in 2CF5F15..2D00000
    1.54 +MBR partitions :
    1.55 + 1:00000000  00016800  17
    1.56 +
    1.57 +And extract the initramfs:
    1.58 +$ iso2exe -r slitaz.iso custom.initrd
    1.59 +
    1.60 +The taziso tool is custom live cd aware:
    1.61 +# taziso slitaz.iso isomd5
    1.62 +SliTaz core-4in1  2016-10-16  slitaz.iso
    1.63 +Check the ISO image
    1.64 +----
    1.65 +Checking iso image...OK
    1.66 +Checking iso hybrid boot....OK
    1.67 +Checking iso custom config...OK