Skip to content

Comments

feat(live): add a kiwi variant which includes only the minimal software to run Agama#2256

Merged
imobachgs merged 12 commits intomasterfrom
mini-pxe
Apr 11, 2025
Merged

feat(live): add a kiwi variant which includes only the minimal software to run Agama#2256
imobachgs merged 12 commits intomasterfrom
mini-pxe

Conversation

@imobachgs
Copy link
Contributor

@imobachgs imobachgs commented Apr 10, 2025

Problem

The PXE image is too big and it is not possible to use it on a system with 2GiB of RAM. It must include a minimal desktop and a browser, which takes quite some space.

However, in many situations the system can be installed remotely or using the CLI. For those scenario, we should offer an smaller PXE image that does not include the desktop stack.

Solution

Split the main list of packages in two:

  • Mandatory packages (basic system, kernel, Agama, etc.).
  • Graphical stack (X.org, IceWM, etc.).

Additionally, the MINI image does not contain:

  • GPU kernel drivers.
  • Wi-Fi and Bluetooth drivers.

Warning

This PR conflicts with the switch to Wayland (#1868), but it can be adapted later. The same approach still applies.

@lslezak
Copy link
Contributor

lslezak commented Apr 10, 2025

My changes reduced the mini PXE image from 419MB to 343MB (x86_64), mostly by dropping GPU, Wifi and Bluetooth drivers.

@imobachgs imobachgs marked this pull request as ready for review April 11, 2025 09:38
systemctl enable setup-systemd-proxy-env.path
systemctl enable x11-autologin.service
systemctl enable spice-vdagentd.service
test -f /usr/lib/systemd/system/spice-vdagentd.service && systemctl enable spice-vdagentd.service
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kind of expect that identical thing should happen to qemu-guest-agent..and also x11-autologin

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because the files are still there. We drop the spice-vdagentd because it introduced some dependencies, even on gtk.

@imobachgs imobachgs merged commit 7436876 into master Apr 11, 2025
7 checks passed
@imobachgs imobachgs deleted the mini-pxe branch April 11, 2025 09:46
@imobachgs imobachgs mentioned this pull request Apr 22, 2025
imobachgs added a commit that referenced this pull request Apr 22, 2025
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

Successfully merging this pull request may close these issues.

3 participants