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

proper handling of twin units: path + service #35

Closed Andrei-Pozolotin closed 4 years ago

Andrei-Pozolotin commented 4 years ago

regarding: https://github.com/random-archer/mkinitcpio-systemd-tool/pull/31#issuecomment-601414916 https://github.com/random-archer/mkinitcpio-systemd-tool/blob/master/initrd-cryptsetup.path#L13

# require explicitly to include in initramfs image
Requires=initrd-cryptsetup.service

possible solutions:

  1. explicit resource dependency, i.e.

    # include peer service
    InitrdPath=/usr/lib/systemd/system/initrd-cryptsetup.service
  2. use special processing of *.path units in mkinitcpio-install.sh

  3. do nothing till people start complaining