bluerider / liveroot

Initcpio hooks for overlayfs ontop of root
BSD 3-Clause "New" or "Revised" License
80 stars 13 forks source link

systemd hook Arch linux #28

Open MrSandMN opened 2 years ago

MrSandMN commented 2 years ago

Hi, firstly I would like to say that I enjoy this liveroot very much, i tend to use it on my day to day laptop as i tend to explore and break linux pretty quickly.

However I'm looking into TPM 2.0 and have read on the Arch wiki that the systemd hook for encryption supports use of TMP 2.0, however I'm unable to use liveroot when trying to use the systemd initcpio hook, I have tried a few modifications in the oroot file under hooks however I'm running blind as I have yet to figure out how to debug script in initramfs unless I'm missing something, I was hoping that maybe you would be able to assist in pointing me in the right direction as well as help systemd hook. Id like to learn how this script was tested and debugged as well as made.

I noticed with udev the variables used are cryptdevice and cryptkey but with systemd its rd.luks.name and rd.luks.key, the structure of these 2 are also slightly different as udev uses ':' to separate UUID and naming where as systemd uses '=' i made these changes in oroot however i am still having issues as i cant seem to find where this issue could be, could it be handling rootfs differently?

Please reach out to me if possible