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
[email protected]
www.suse.com

Reply via email to