random-archer / mkinitcpio-systemd-tool

Provisioning tool for systemd in initramfs (systemd-tool)
https://www.archlinux.org/packages/community/any/mkinitcpio-systemd-tool/
Other
113 stars 27 forks source link

Where do I put my mount options? #14

Closed ShapeShifter499 closed 6 years ago

ShapeShifter499 commented 6 years ago

It's a bit hard for me to follow the whole thing going on here. Should I be editing '/etc/mkinitcpio.d/fstab' and '/etc/mkinitcpio.d/crypttab' or will it pickup on edits to the normal '/etc/fstab' and '/etc/crypttab' locations?

ShapeShifter499 commented 6 years ago

I'm guessing anything that I want to decrypt goes in '/etc/mkinitcpio.d/fstab' and '/etc/mkinitcpio.d/crypttab' otherwise I'd use the standard locations '/etc/fstab' and '/etc/crypttab' I'm not sure though.

Andrei-Pozolotin commented 6 years ago

these files https://github.com/random-archer/mkinitcpio-systemd-tool/blob/master/crypttab https://github.com/random-archer/mkinitcpio-systemd-tool/blob/master/fstab

are embedded into initrd image via https://github.com/random-archer/mkinitcpio-systemd-tool/blob/master/initrd-cryptsetup.service#L33

perhaps more experimentation will help comprehension :-) https://harpers.org/blog/2007/12/blake-on-knowledge-through-experience/