[yast-devel] Using the YaST hook feature on SLE12SP1
Hello all, I’m trying to use the hook feature as described in /usr/share/doc/packages/yast2/general/Hooks.md to execute my Ruby script. I followed the steps to copy/mount bind it to the /var/lib/YaST2/hooks/installation directory via a pre-script. I tried naming it installation_start_00_myscript.rb, but it seems like it’s not being picked up at all according to y2log. I can see that the existing script (before_rpmcopy_00_migrate_desktop.sh) runs, but not mine. The documentation says that if using autoyast (which is the case), I should name it after one of the 4 available modules (autoinit, auto setup, initial_installation_proposal and autoimage). I also tried that, but it doesn’t seem to make sense, as y2log shows that it’s trying to run hook scripts for all the 13 or so checkpoints for manual installation. Am I missing something here? Is it caching scripts somewhere earlier than the pre-scripts phase and ignoring mine? Erico M. Mendonça Dedicated Support Engineer SUSE Rua Joaquim Floriano, 466 – Ed. Corporate 12º andar, Itaim Bibi – São Paulo – SP / Brasil Tel: +55 (11) 3345-3900 Cel: + 55 (61) 8594-9557 erico.mendonca@suse.com www.suse.com
Dne 4.2.2016 v 20:45 Erico Mendonca napsal(a): [...]
The documentation says that if using autoyast (which is the case), I should name it after one of the 4 available modules (autoinit, auto setup, initial_installation_proposal and autoimage). I also tried that, but it doesn’t seem to make sense, as y2log shows that it’s trying to run hook scripts for all the 13 or so checkpoints for manual installation.
Am I missing something here? Is it caching scripts somewhere earlier than the pre-scripts phase and ignoring mine?
I have checked the code, there is no caching, the hook scripts are always searched from scratch. In this case I'd suggest opening a bug report in Bugzilla. And please attach the YaST logs. -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (2)
-
Erico Mendonca
-
Ladislav Slezak