-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Available Firstboot clients #116
Comments
I think I would just have dedicated Firstboot clients (either all living under Being honest, there are very few clients that are really well thought and designed to be executed both in Firstboot and during installation/standalone without any change. They are either Firstboot-specific or they work by pure luck. So I would make all that more explicit really having dedicated Firstboot clients. Even in cases in which is really expected that a client can be run both during installation and Firstboot without a single change, having it duplicated would still be reasonable. After all, a sane client should contain only two or three lines of code. Isn't it? require "y2this_module/clients/whatever"
Y2ThisModule::Clients::Whatever.new.run |
One idea came to my mind (dream). What about having a firstboot configuration UI? Now, the admin has to do some manual work to prepare a firstboot:
Even though these steps are documented, the customization of the default firstboot.xml is not that easy. As @dgdavid commented, which clients are available? What packages do I need to install in order to have some clients? Maybe YaST might do it easier. Imagine that yast2-firstboot can be executed in a running system in order to configure a firstboot, and it would allow to:
|
I think currently it is clients in example is adapted for firstboot and openqa really validate it as it is. So it goes thrue example and configure first boot as test. |
@joseivanlopez problem with having runtime client is that usually that is not use case for first boot. Use case is having autoyast profile that deploy machine in lab env and then user of given machine do customization in place like root user account or network. So it is often about adapting autoyast profile to run firstboot during first boot. |
That would assume that we know... Judging from the few firstboot modules I've see in detail I would say there's not much reason to have separate firstboot and regular versions. The differences that exist could be handled with Ivans idea would be a way, particularly as currently people naive enough to run But we might do even simpler things, like:
Why are we making it so hard for admins used to Unix-like systems to find their way? |
Context
Going through the example included in SLES (see #115).
According to the documentation [1], YaST Firstboot allows determining the workflow for the final personalization steps that involve end-user interaction in a customized preinstallation. To achieve it, it is possible to
Problem
However, it is only mentioned that those components must be placed in
/usr/share/YaST/clients
, but there is no reference about what are the requirements that must be accomplished to be able to run as a Firstboot client.Is out there any list of valid Firsboot clients? Are all (/usr/share/YaST/)clients valid? Only those that are prefixed with
firstboot_
orinst_
?Looks like the answer to all these questions is No.
Let's see some examples.
Using the
dns.rb
client: it works!Using the
firewall.rb
client: it crashUsing the
firewall_proposal.rb
client: it complains & crashUsing the
inst_product_selector.rb
client: it does not crash but it does not make sense at all (likeinst_bootloader
,inst_proposal
, etc)Using the
inst_complex_welcome.rb
client: it crashUsing the
inst_congratulate.rb
client: it worksSuggested solutions / Ideas
To provide a list of available Firstboot clients (problem: difficult to maintain up-to-date)
To have a tool to validate the workflow/clients in the
firstboot.xml
control file (dream)I.e., something similar to the
check-profile
added to AutoYaST when modernizing it that could run a sandboxed firstboot with the given profile to check that everything works.To have a tool for asking if a client is a valid Firstboot client (dream)
After giving an answer to the above question, what are the requirements that must be accomplished to be able to run as a Firstboot client?
To ignore not valid Firstboot clients, instead of crashing (problem: they'll appear in the steps column anyway)
[1] Available documentation at the time of writing
.ycp
filesThe text was updated successfully, but these errors were encountered: