Comments (4)
you could remount /sysroot to /run/sysroot in the dracut mount hook and mount your stuff to /sysroot
mkdir /run/sysroot; mount --move /sysroot /run/sysroot ... do stuff for /sysroot
from dracut.
Thanks @haraldh,
Just for the sake of clarity, I have added some other comments from our conversation on IRC.
Live system is mounted under /sysroot which can be moved to /run/sysroot
Live device is located at /run/initramfs/livedev and mounted at /run/initramfs/live
https://github.com/haraldh/dracut/blob/master/modules.d/90dmsquash-live/dmsquash-live-root.sh#L56
https://github.com/haraldh/dracut/blob/master/modules.d/90dmsquash-live/dmsquash-live-root.sh#L80
Then just run
mount -t overlayfs -o lowerdir=/run/sysroot,upperdir=/run/initramfs/live/<overlay directory> /sysroot
from dracut.
mkdir /run/sysroot; mount --move /sysroot /run/sysroot
That does not work:
mount: bad option. Note that moving a mount residing under a shared
mount is unsupported.
In some cases useful info is found in syslog - try
dmesg | tail or so.
from dracut.
Maybe
mount --make-private /sysroot
or even
mount --make-rprivate /sysroot
before the mount --move
from dracut.
Related Issues (20)
- 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}
- Request to repair the error of qemu nbd in the switch_root process HOT 5
- RFC: review if '.early' postfix for ucode is still required
- dracut uses wrong version description for Unified Kernel Images HOT 5
- network-legacy module dropped from Fedora 40 package HOT 8
- systemd will dlopen libraries that used to be statically included
- RFE: new version?🤔 HOT 3
- rd.live.overlay.overlayfs=1 is broken on Fedora 39 LiveOS HOT 4
- Support bcachefs encrypted root unlocking
- [REPO DEAD] This repo is dead HOT 1
- Start job for disk device hangs, Linux Zen images and snapshots fail to boot, after update from 059-6 to 101-1 HOT 1
- Dracut generated initramfs fails to boot with recent kernels due to SELinux Permission Denied errors
- make parsing of `rd.luks.timeout` singular instead of plural to avoid Mal-formed `cryptsetup` command line
- `dracut-initramfs-restore.sh` fails on ostree-based systems HOT 1
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.