Skip to content
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

Anaconda WebUI toggle/setting somewhere? #722

Open
tulilirockz opened this issue Nov 22, 2024 · 9 comments
Open

Anaconda WebUI toggle/setting somewhere? #722

tulilirockz opened this issue Nov 22, 2024 · 9 comments

Comments

@tulilirockz
Copy link

Will this project support anaconda-webui at some point? Id love to test it out at some point

@ondrejbudai
Copy link
Member

It's not something on our short-term roadmap, because webui is targetting only workstation for Fedora 42, however when it's ready also for bootc, we will definitely switch to it.

You can start experimenting with it even today. You can just need to build a derived container image from bootc-image-builder, and override this file in it: https://github.com/osbuild/bootc-image-builder/blob/main/bib/data/defs/fedora-40.yaml.

Instead of anaconda, you want to include anaconda-webui. It might be possible that you will need to include a couple extra packages (e.g. @anaconda-tools, gnome-kiosk) to get a somewhat working ISO. Note that I'm not sure how well can webui handle bootc/ostree, so it might end up being completely broken.

The "defs" are not considered a public API, but we've never changed the schema since I introduce it, it's easy to extend, and there are no plans to remove it. So it's pretty safe to use. ;)

If you get around to play with it, please leave a message here, I'm eager to hear about any results.

@hanthor
Copy link

hanthor commented Jan 7, 2025

I have a rawhide based "live OS" here https://github.com/hanthor/fedora-bootc-workstation

Anaconda-webui doesn't initialise. But I used bootc install. I will try using bib to make an ISO

@hanthor
Copy link

hanthor commented Jan 9, 2025

image

        # FIXME: Support automated installations in Web UI.
        if flags.automatedInstall and flags.ksprompt:
            raise NotImplementedError("Automated installations are not supported by Web UI.")

        # FIXME: Support non-interactive installations in Web UI.
        if flags.automatedInstall and not flags.ksprompt:
            raise NotImplementedError("Non-interactive installations are not supported by Web UI.")

https://github.com/rhinstaller/anaconda/blob/91fe91ad6f03903114e6637d792b8d7caa679103/pyanaconda/ui/webui/__init__.py#L89C1-L95C100

        # FIXME: Support automated installations in Web UI.
        if flags.automatedInstall and flags.ksprompt:
            raise NotImplementedError("Automated installations are not supported by Web UI.")

        # FIXME: Support non-interactive installations in Web UI.
        if flags.automatedInstall and not flags.ksprompt:
            raise NotImplementedError("Non-interactive installations are not supported by Web UI.")

looks like if ks.cfg exists it won't work elif os.path.exists("/run/install/ks.cfg") and not options.liveinst: https://github.com/rhinstaller/anaconda/blob/91fe91ad6f03903114e6637d792b8d7caa679103/pyanaconda/startup_utils.py#L430

@hanthor
Copy link

hanthor commented Jan 9, 2025

@ondrejbudai
Copy link
Member

Thanks for trying it out! :) Seems like we would have to use interactive defaults instead of a kickstart to make this work.

@hanthor
Copy link

hanthor commented Jan 10, 2025

Yeah I can try to patch out the kickstart out of bib to try it. But the ks file is what specifies the ostreecontainer comman for the install in think?

@hanthor
Copy link

hanthor commented Jan 12, 2025

@ondrejbudai do you know how to remove that from bib? I think Its essential since the ostreecontainer command is what installs the image?

@ondrejbudai
Copy link
Member

Do I understand it correctly that you want to remove the kickstart file?

@hanthor
Copy link

hanthor commented Jan 13, 2025

Well there are 2 ways to get anaconda-webui to "work" with bib. Remove the kickstart restriction from webui or to build an image with no kickstart.

I think what we want to do it to remove the restriction from anaconda. But I'm pretty sure the restriction is there because something bad will happen/there is no support for kickstart in the current webui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants