Skip to content

Support for nested fs #74

Open
Open

Description

@DeX77

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.

Activity

  1. troglobit commented on May 5, 2017

    @troglobit
    Collaborator

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

  2. DeX77 commented on May 5, 2017

    @DeX77
    Author

    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.

  3. troglobit commented on May 8, 2017

    @troglobit
    Collaborator

    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
  4. DeX77 commented on May 9, 2017

    @DeX77
    Author

    Had the same idea already. 😄

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

  5. troglobit commented on May 9, 2017

    @troglobit
    Collaborator
  6. troglobit commented on Jul 3, 2017

    @troglobit
    Collaborator

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

  7. DeX77 commented on Jul 4, 2017

    @DeX77
    Author

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

  8. troglobit commented on Jul 4, 2017

    @troglobit
    Collaborator

    @DeX77 Sure thing! 👍

  9. added this to the v3.1 milestone on Jul 4, 2017
  10. modified the milestones: v3.1, on Dec 13, 2017
  11. markand commented on Mar 20, 2019

    @markand
    Contributor

    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?

  12. troglobit commented on Mar 20, 2019

    @troglobit
    Collaborator

    @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.

  13. removed this from the milestone on Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions