GithubHelp home page GithubHelp logo

Comments (9)

github-actions avatar github-actions commented on May 27, 2024

Jira ticket: AR-2051

from build.

viraniac avatar viraniac commented on May 27, 2024

Thanks for reporting this. I also am seeing this behavior on vim4/vim1s and was trying to troubleshoot the same. At the same time, I was not able to reproduce this on Allwinner boards which was weird. Which board did you experienced this on?

from build.

alex3d avatar alex3d commented on May 27, 2024

rockchip64/rk3318-box

from build.

viraniac avatar viraniac commented on May 27, 2024

@alex3d I found this in the bookworms documentation

4.If /etc/machine-id exists and is empty, a boot is not considered the first boot. systemd will still bind-mount a file containing the actual machine-id over it and later try to commit it to disk (if /etc/ is writable).

I am currently creating an image for vim1s to test if an empty /etc/machine-id makes the systemd behave same as it does on jammy.

from build.

viraniac avatar viraniac commented on May 27, 2024

Also found

If no preset files exist, preset operations will enable all units that are installed by default. If this is not desired and all units shall rather be disabled, it is necessary to ship a preset file with a single, catchall "disable *" line.

Example 1. Default to off

# /lib/systemd/system-preset/99-default.preset
disable *

This disables all units. Due to the filename prefix "99-", it will be read last and hence can easily be overridden by spin or administrator preset policy.

from build.

viraniac avatar viraniac commented on May 27, 2024

Comparing between https://manpages.debian.org/bullseye/systemd/machine-id.5.en.html and https://manpages.debian.org/bookworm/systemd/machine-id.5.en.html

There is a added step of preseting the units on first-boot. So I guess the right solution here will be to add a default preset to disable all units like mentioned in the previous comment On second thought I guess that will disable new units on package installation as well so probably not so good idea then.

from build.

alex3d avatar alex3d commented on May 27, 2024

@viraniac I can confirm empty /etc/machine-id have fixed issue.

Btw, I've found "ignore" preset option, that could have been the best option (it opens possibility to use firstboot condition as unit start trigger, for partition resize, etc)

# /usr/lib/systemd/system-preset/99-default.preset
ignore *

But unfortunately this option is very very recent feature from systemd 254, so this is no go for a near future.
bookworm have systemd 252, latest ubuntu noble will have systemd 253.

from build.

viraniac avatar viraniac commented on May 27, 2024

Btw, I've found "ignore" preset option, that could have been the best option (it opens possibility to use firstboot condition as unit start trigger, for partition resize, etc)

# /usr/lib/systemd/system-preset/99-default.preset
ignore *

But unfortunately this option is very very recent feature from systemd 254, so this is no go for a near future. bookworm have systemd 252, latest ubuntu noble will have systemd 253.

I guess we have to wait to see if we can use that. When I tried "disable *" option I noticed that systemd didn't enabled all units which is what we expect. But at the same time installing packages like apache2 also didn't enabled its unit which user might expect as default behavior. I guess same also has to be tested for the ignore option. Systemd 255 is available on trixie and sid so its possible we can test it on them.

One option probably can also be to install presets with "disable *" or "ignore *" in them and remove the preset file on first boot

from build.

igorpecovnik avatar igorpecovnik commented on May 27, 2024

Should be o.k., re-open if not.

from build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.