Comments (5)
@mid-kid How do you feel about using systemd-sysext or you prefer a solution not using systemd ?
from dracut.
First time hearing of it, but it doesn't seem to be what I want. Not only because the image I'm building doesn't have systemd, but also simply because I intend to add files to /var and /etc, and both of these directories should remain writable through a tmpfs at runtime, like dracut sets them up to be.
That said, you're right in that it doesn't need to be handled in the initrd stage, I could do it in an early stage of booting after the rootfs kicks in. The thing is that I'd have to undo the dracut mounts which might break whatever dracut's doing to mount a persistent overlay.
I wonder, is anyone using the systemd-sysext program in a livecd context? I wonder what that'd look like, honestly.
from dracut.
Somewhat related, dracut can generate initramfs that prepares an overlay and copies over files from /updates - see https://github.com/dracutdevs/dracut/blob/master/modules.d/90dmsquash-live/apply-live-updates.sh .
CC @FGrose
from dracut.
Oh! That looks like a possible solution. It'd require more ram, but that's acceptable for small customizations. I'm just unable to find any documentation about it.
from dracut.
Oh! That looks like a possible solution. It'd require more ram, but that's acceptable for small customizations. I'm just unable to find any documentation about it.
There is a bit of information in the original commit message (which is over 10 years old) - f116ca1
The /updates
directory needs to be in the root of the initramfs.
This can be used in combination of the idea is that some boot-loaders (e.g. grub) allows to specify more than one initramfs files - see https://www.gnu.org/software/grub/manual/grub/grub.html#index-initrd
So instead of several squashfs files, you would have several cpio files - maybe one or more with optional /updates/*
If this is working for you, than we would welcome contributions to improve the documentation (or perhaps even dracut tests) :-)
from dracut.
Related Issues (20)
- busybox modprobe incompatibility HOT 11
- With systemd 255, systemd-pcrphase is renamed to systemd-pcrextend HOT 3
- Dracut does not generate images that support hibernation HOT 8
- hookdir can't be in /usr if used for writing
- auto-detect, prompt for potential root devices in case the `root=` device is misconfigured or missing
- auto detect root device according to Discoverable Partitions Specification (DPS) (boot without `root=` and without `/etc/fstab`) HOT 6
- handle directories in /dev/disk/by-path
- mint
- Dracut wrong password even it's right + libgcc_s.so.1 must be installed HOT 3
- Discovery with authentication fails to boot
- Gpu passthrough hanging on pre-udev hook HOT 1
- NetworkManager applies DHCP address to dracut-initrd interface with a DHCP address HOT 1
- fw_cfg support for qemu module
- Specify UKI output path in dracut.conf
- network-legacy gen-rules.sh failes due to missing initqueue/finished directory HOT 1
- error: unable to write to pipe (Broken pipe) HOT 3
- dracut fails to work if installed in /usr/local
- "rd.*" Is Ignored When "debug" Or "SYSTEMD_LOG_LEVEL=debug" Is Used As Well HOT 2
- detect and generate initrd.img-${kernel}
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 dracut.