nestybox / nestybox/sysbox

unable to install dpkg in `kvm` environment

Open
#619 1 comment 0 reactions 1 assignee View on GitHub

@rodnymolina is already working on this.

Since Jan 18, 2023.

enhancement
Dominant language
Shell
Stars
3.9k
Forks
230
Avg merge
7h 48m
Merged PRs (30d)
3

Description

I am trying to include sysbox in an automated ISO build created with debspawn. This is currently not possible because of 2 limitations:

  • modprobe is run during postinst
  • sysctl -w is run during postinst

Neither of these are supported in the virtual environment, however it shouldn't be a problem since sysctl.d handles the sysctl on next boot, and the module configfs is available in the kernel on live boot. Currently, I am hacking past this by monkeypatching modprobe and sysctl in the install script.

It is considered best practice to not require a live system during a dpkg install. (this is why deb-systemd-helper exists, for example). Can we modify the postinst script to warn and move on instead of failing if these functions are not available?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.