On 25.6.2015 14:06, Josef Reidinger wrote:
Solution 2: - Do not create symlinks in inst-sys - Adapt /sbin/yast2 to check that we are in inst-sys and either call YaST2.First-Stage or continue
This is my favority as I hope it is single trivial if statement, so for solution 3 it seems like overkill for me. Another option that get into my mind is to overuse PATH precedence...so having yast2 in /usr/bin and yast2 symlink in /sbin this way it is not overwritten and it will works without much tricks ( and as bonus allows common users to run yast2 with limited functionality ).
Good idea, but I've checked "The Internet" and seems that /sbin/yast2 is all over the place. We simply cannot change this place. So, /sbin/yast[2] is a must. And as inst-sys rewrites that, this idea doesn't seem to be an option. Moreover, adding this to SP1 would be a really big risk. We already have /usr/sbin/yast and /sbin/yast[2] is just a link. BTW, it's a change done by you :) https://github.com/yast/yast-yast2/commit/39cc36189b2768805064339ba054b7228c... So, next options on the list is adding one more `if` into already big /usr/sbin/yast script and actually at the very top of it. -- Lukas Ocilka, Systems Management (Yast) Team Leader SLE Department, SUSE Linux -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org