Hi Thomas,
to remove the user, get inspired by the openSUSE live media.
The live installer is, so as regular installer, fully configurable. The
list of steps is described in /etc/YaST2/control.xml.
This file includes a step called "live_cleanup" (just grep for it),
which inserts /usr/share/YaST2/clients/inst_live_cleanup.ycp into the
workflow.
This YaST script calls /usr/bin/correct_live_install (which is, on
openSUSE, a regular shell script) and uninstalls the
yast2-live-installer package.
Therefore, all you should do is to review the control.xml file and add
the clean-up step and create the script which removes the user, or, if
needed, performs other actions. You might need to bring the
inst_live_cleanup.ycp file as well (take it from openSUSE and use
overlay) if it is not present.
I cannot provide more details (e.g. patch for control file), as I dont'
know which distro and version you are using.
Hope that helps,
Jiri
Dne 9.3.2012 01:43, heizi napsal(a):