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

Support for nested fs #74

Open
DeX77 opened this issue May 5, 2017 · 10 comments
Open

Support for nested fs #74

DeX77 opened this issue May 5, 2017 · 10 comments

Comments

@DeX77
Copy link

DeX77 commented May 5, 2017

Currently its not possible for finit to mount nested FS, like a cryptsetup LUKS parition with a LVM PV.
Also I think the reverse is also possible.

Guess this needs a cryptsetup and a lvm plugin and some nesting logic.

@troglobit
Copy link
Owner

You're more than welcome to give it a try! 😃

@DeX77
Copy link
Author

DeX77 commented May 5, 2017

Used a VM with attached encrypted LVM PV and finit says (or to be precise: mount -na says) it could not find the special device.

Here is summary of what I did: https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#LVM_on_LUKS

I'll try to hack a plugin to autodetect crypted devices and another for LVM PVs.

Is there a cond I might use for "new device detected" so I could simply make both plugins try their luck?
Then order would not matter since both use a device but also create (at least one) new.

@troglobit
Copy link
Owner

Sorry for the late reply, but could mdev/udev be an alternative for this?

Currently implemented conditions are:

  • svc/<PATH>
  • net/route/default
  • net/<IFNAME>/exist
  • net/<IFNAME>/up

@DeX77
Copy link
Author

DeX77 commented May 9, 2017

Had the same idea already. 😄

Will try to find some sufficient udev rules. Maybe borrowed from dracut.

@troglobit
Copy link
Owner

troglobit commented May 9, 2017 via email

@troglobit
Copy link
Owner

@DeX77 did you ever resolve your issue? (Asking because bug triage prep for v3.0)

@DeX77
Copy link
Author

DeX77 commented Jul 4, 2017

@troglobit I actually didn't try further, sorry. Perhaps move it to a later milestone?

@troglobit
Copy link
Owner

@DeX77 Sure thing! 👍

@troglobit troglobit added this to the v3.1 milestone Jul 4, 2017
@troglobit troglobit modified the milestones: v3.1, v3.2 Dec 13, 2017
@markand
Copy link
Contributor

markand commented Mar 20, 2019

Hello,

I was interested as well in finit because of its simplicity. However, in my understanding it's a “blackbox” that performs many steps on your behalf at boot (which isn't necessary a bad thing) but makes complex cases much harder to implement. This includes RAID, ZFS, LVM, LUKS or other things to perform before mounting /.

Either the solution would be to provide a way to customize the pre-boot process or to implement those things directly in finit (which to me is more error-prone). Or perhaps a initramfs performing its own steps before running finit?

Do you have some recommendations for that or ideas?

@troglobit
Copy link
Owner

@markand For now I'd recommend a separate initramfs before running finit, definitely. That's how I set up my own RAID. There are some hand-over mechanisms defined by freedesktop/systemd (@ as first char in process name) that you can look into.

For a pure Finit approach, however, I'd very much like to see a native plugin for each separate task. The whole point of Finit is to be more integrated and use less scripts, otherwise you'd just end up with yet another SysV init or runit clone.

@troglobit troglobit removed this from the v3.3 milestone Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants