SliTaz SliTaz Forum

You are not logged in.

#1 2014-06-29 00:29:36

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

solution for making Livecd menuitem 'boot directly to installer without password

Done for personal use, no script yet, just couple of sh-commands and description. but i'd like to share info, with some not-evident details, of how to do this.

    Tested with slitaz-rolling-core.iso and  tazlito writefs-gen iso  only.  NOT for slitaz-rolling.iso or RC2 because of [c]tazlito[/c] error while unpacking iso with multiple rootfs. but you can try extract iso without tazlito by using  cdrkit-isoinfo and mc packages. Tazlito required for packing - rootfs  added by isomaster is invisible in livecd  bootloader, same as without following file copy in 'addfiles' dir:

    Attached:

  [c]i.gz[/c] like any slitaz rootfs.gz - can be unpacked by [c]lzma d i.gz i.cpio[/c] and explored in midnightcommander, created with [c]echo /etc/xdg/autostart/tazinst-nopasswd.desktop | cpio -H newc -o | lzma e -si -so > ./irootfs.cpio.lzma[/c]

  [c]isolinux.cfg[/c] - sample for edited menufile, warning - new item contains resolution changer usable to prevent 256-color mode.

    Executed by root, current dir is non-root user's home dir ~/ where iso, menufile, and i.gz located:

[c]tazlito extract-distro slitaz-rolling-core.iso[/c]

[c]# no reason to have extracted rootfs and using tazlito now[/c]

[c]#  overwriting menu[/c]

[c]cp isolinux.cfg /home/slitaz/5.0/distro/rootcd/boot/isolinux.cfg[/c]

[c]mkdir -p /home/slitaz/5.0/distro/addfiles/rootcd/boot[/c]

[c]# seems duplicate of new rootfs(initrd) needed for isolinux loader[/c]

[c]cp i.gz /home/slitaz/5.0/distro/rootcd/boot/i.gz[/c]

[c]cp i.gz /home/slitaz/5.0/distro/addfiles/rootcd/boot/i.gz[/c]

[c]tazlito gen-iso[/c]

also i found, that in-browser navigation while tazpanel package installation gives errors, don't know if this affects install, but exactly because of this me added notoolbar for tazweb.

i.gz and menu located here:

http://people.slitaz.org/~az_ua/

Offline

#2 2014-06-29 01:33:04

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: solution for making Livecd menuitem 'boot directly to installer without password

Mistake in copting command above

[c]tazlito extract-distro slitaz-rolling-core.iso[/c]

#------------------------------WRONG overwriting menu line in first post! typo?

[c]cp isolinux.cfg /home/slitaz/5.0/distro/rootcd/boot/isolinux/isolinux.cfg[/c]

[c]mkdir -p /home/slitaz/5.0/distro/addfiles/rootcd/boot[/c]

[c]# seems duplicating of new rootfs(initrd) needed for CD bootloader[/c]

[c]cp i.gz /home/slitaz/5.0/distro/rootcd/boot/i.gz[/c]

[c]cp i.gz /home/slitaz/5.0/distro/addfiles/rootcd/boot/i.gz[/c]

[c]tazlito gen-iso[/c]

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]