Skip to content

File operations before package installation #422

@martin-29

Description

@martin-29

I have a question regarding the capabilities of ELBE related to a specific problem we currently try to solve.

The specific scenario is the following:

We would like to fix the UIDs and GIDs of users and groups created by packages in their postinst.
Which is often required in an A/B update scenario for embedded devices where flipped IDs can cause problems when having update persistent files.

The workaround of fixing the ownership of files during some update hook is not a solution we want to go with, especially because it should be fairly easy to fix IDs by already existing mechanisms during the build.

The idea is to create conf files in /etc/adduser-pool.d for such packages or in case of packages which rely on systemd-sysuser a file in /etc/sysuser.d/ which masks the file from the package.

In addition, we need to adapt the default config of adduser (/etc/adduser.conf) to enable the lookup inside /etc/adduser-pool.d/.

Normally we can do such things quite simply using the archivedir or the finetuning.

But in this case the files would be required before the installation of packages and not afterwards.

Is there any already existing mechanism in ELBE we can rely on to achieve our goal?
And if not, is that something you think would be worth to implement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions