Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overlayfs LiveOS question #686

Closed
udeved opened this issue Nov 16, 2019 · 4 comments
Closed

overlayfs LiveOS question #686

udeved opened this issue Nov 16, 2019 · 4 comments

Comments

@udeved
Copy link

udeved commented Nov 16, 2019

I am working on replacing our live mkinitcpio with live dracut.

Our iso has two layers, a rootfs and a overlay "livefs" to throw away when the installer extracts rootfs.

Now the question, is it possible to mount the livefs overlay with dracut on livecd?

All I get is an overlayfs mounted root, but dracut always mounts an empty overlay tmpfs. I can't seem to find documentation if and how and where to put the overlay livefs.img in the iso layout.

I am pretty flexible as to how to deploy img files, no matter it is a squash embedded ext img, a flat squash or a direct ext4 img.

Currently, the squashfs.img is a flat squash rootfs.
But what do I chose for the overlay?

Any help would be appreciated.

@udeved
Copy link
Author

udeved commented Nov 16, 2019

Atm, I am trying with these args

rdargs: root=live:LABEL=ARTIX_201911 rd.live.overlay=LABEL=ARTIX_201911:/livefs.img rd.live.overlay.overlayfs=1 rd.live.image ro rd.debug

@udeved
Copy link
Author

udeved commented Nov 18, 2019

After looking a bit at the dmsquashlive code, it looks like what I want is not supported by dracut.

I basically want a lower join of the root, like lower=livefs:rootfs.

This would also make it possible to run a console only rootfs joined with a desktop layer, ie bootloader could have multiple entries with different desktops to start.

@udeved
Copy link
Author

udeved commented Nov 19, 2019

Ok, I have made a hacky patch to support a union join on the rootfs.

I added rd.live.join, but I am entirely unsure about any side effects with other setups.

I can send a PR, but this would have to be properly tested, however, for my purposes, it works.

@haraldh
Copy link
Collaborator

haraldh commented Mar 6, 2020

seems like #687 is your PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants