second note I have is that this is too much lines added to log. Maybe use separate file in /var/log/Yast2 for hook result? we already do it for other cases and I personally like more if logs are more structured, because if I debug installation and see thousands lines from storage, from bootloader and from users together it is hard to read it and if you add another possible thousands lines from hooks, that it is problem.