![](https://seccdn.libravatar.org/avatar/2703a7a191401e2e7d0926e255583714.jpg?s=120&d=mm&r=g)
Moin, I've been working on a task to make Linuxrc: DUD=http://path.to/yast2.rpm possible. Problem description ------------------- Right now, /sbin/yast2 script (#1) on a running system either starts the Yast Control Center or a Yast module given as parameter. In inst-sys (installation), this script is replaced by a symlink to YaST2.First-Stage #2 script and additionally /sbin/yast2.ssh also links to YaST2.First-Stage. This is done in installation-images #3. Because of this solution, when yast2.rpm via normal DUD replaces this symlink with script, the Yast Control Center is started instead. Expected Behavior ----------------- When DUD=yast2.rpm is used, Installer should start, not YCC. Proposed Solution ----------------- There are obviously several possibilities how to fix it. Solution 1: - Just ignore it and do not use DUD=*.rpm and build "real" DUD. - IMO not an option 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 Solution 3: - Do not create symlinks in inst-sys - Move /sbin/yast2 functionality to some other library/script - Create new /sbin/yast2 that would either call the new script or YaST2.First-Stage, depending on where we are (including all parameters) - This is my favorite Solution 4: - Let Linuxrc start YaST2.First-Stage directly - This has a big disadvantage as users are used to run Linuxrc with startshell=1 and then start yast manually (anyway, it's IMO too big change in "API") Additional Issues ----------------- We don't have a stable mechanism to tell whether we are actually in inst-sys. Steffen suggests to either check that "/usr/src/packages does not exist" or that "/.packages.root is present". We can also check whether /.instsys.config or /linuxrc.config exists. Side note: Yast itself finds out whether we are in installation when WFM.Args contain that info, so we can't use that approach. #1 https://github.com/yast/yast-yast2/blob/master/scripts/yast2 #2 https://github.com/yast/yast-installation/blob/master/startup/YaST2.First-St... #3 https://github.com/openSUSE/installation-images/blob/master/data/root/root.f... Please comment, maybe you have a better idea? Thanks Lukas -- 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