Comments (9)
Jira ticket: AR-2051
from build.
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.
rockchip64/rk3318-box
from build.
@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.
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.
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.
@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.
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.
Should be o.k., re-open if not.
from build.
Related Issues (20)
- OdroidM1 no Serial Console or SSH configured HOT 4
- Error compiling Standard console Bullseye for OrangePi 3 LTS HOT 5
- cannot fetch kernel - git- kernel git tarball has wrong ownership HOT 2
- OdroidXU4 fails during patching due to recent 6.1.75 kernel update HOT 2
- armbian-install should do rsync --one-file-system HOT 5
- Where to place kernel driver.patch?? HOT 2
- enable DRBD in the kernel config of mvebu HOT 2
- hard-coded u-boot load addresses fragile and breaking low-memory boards HOT 5
- APT: Use https instead of insecure http HOT 11
- Build broken with CRYPTROOT_ENABLE=yes HOT 4
- Error with partitions on /dev/loop device building image if builder is ubuntu-x64-jammy HOT 10
- jammy rootfs build failed HOT 3
- Build failed in github actions, error reported: rsync code 23 HOT 2
- Build failed during partprobing of /dev/loop device. HOT 2
- GH Actions: "Kernel hardening analysis (pull request)" kconfig-hardened-check: No such file or directory HOT 1
- config-default.conf no longer read by default? HOT 6
- Rockchip bootscripts: `Failed to load '...-fixup.scr'` and `Unknown command 'kaslrseed'` HOT 1
- SND_ALOOP module is not avaialble for rk35xx HOT 4
- latest rolling release missing Wdk2023 images HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build.