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

Replace FAI with our own implementation #281

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

zeha
Copy link
Member

@zeha zeha commented Jan 6, 2025

Replace FAI with our own implementation

Just short of 700 new lines of Python, but covers running
mmdebstrap and lots of workarounds go away. I've titled it
"minifai".

grml-policyrcd gets removed, as minifai handles installing its own policy-rc.d.
This is necessary regardless if we want grml-policyrcd or not, and then grml-policyrcd provides no value anymore.

The variables FAI_ARGS, FAI_DEBOOTSTRAP_OPTS and ZERO_FAI_LOGFILE are no longer supported.
The grml-live parameter -V is now always enabled and the option is deprecated.

minifai logs to stdout/stderr, and aborts on the first error it encounters. All log messages now end up in grml-live.log.

These log/data files are no longer written:

  • debconf.data,
  • fai-monitor.log
  • fai.conf
  • fcopy.log
  • nfsroot.conf
  • scripts.log
  • software.log
  • status.log
  • task_error
  • task_local_error
  • variables.log

Notably missing: packages can only be "install"-ed, which works like "install-norec" in FAI. "hold", etc are not implemented at all.

Followup work: move script execution into the chroot where possible.

@zeha zeha force-pushed the zeha/minifai branch 7 times, most recently from 8baf0be to 6998ae4 Compare January 6, 2025 18:26
@zeha zeha changed the title WIP: replace FAI with minimal reimplementation of requires FAI API surface WIP: Replace FAI with our own implementation Jan 6, 2025
@zeha zeha force-pushed the zeha/minifai branch 4 times, most recently from 49db4b1 to 2e9860d Compare January 6, 2025 18:42
@zeha zeha self-assigned this Jan 7, 2025
@zeha zeha force-pushed the zeha/minifai branch 2 times, most recently from 937fbdc to cbdbcb1 Compare January 7, 2025 11:30
@zeha zeha requested a review from mika January 7, 2025 18:19
@zeha zeha marked this pull request as ready for review January 7, 2025 18:19
@zeha zeha changed the title WIP: Replace FAI with our own implementation Replace FAI with our own implementation Jan 7, 2025
zeha added 5 commits January 7, 2025 19:24
Just short of 700 new lines of Python, but covers running mmdebstrap and lots
of workarounds go away. I've titled it "minifai".

grml-policyrcd gets removed, as minifai handles installing its own policy-rc.d.
This is necessary regardless if we want grml-policyrcd or not, and then
grml-policyrcd provides no value anymore.

The variables FAI_ARGS, FAI_DEBOOTSTRAP_OPTS and ZERO_FAI_LOGFILE are no longer
supported. The grml-live parameter -V is now always enabled and the option is
deprecated.

minifai logs to stdout/stderr, and aborts on the first error it encounters. All
log messages now end up in grml-live.log.  These log/data files are no longer
written: debconf.data, fai-monitor.log, fai.conf, fcopy.log, nfsroot.conf,
scripts.log, software.log, status.log, task_error, task_local_error,
variables.log.

Notably missing: packages can only be "install"-ed, which works like
"install-norec" in FAI.  "hold", etc are not implemented at all.
Somewhat easier to deal with, as grml-live ensures this will not
exist in the packed chroot.
minifai should never write logs as another user.
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.

1 participant