Closed Chief-Detektor closed 4 years ago
tl;dr:
/etc/mkinitcpio-systemd-tool/
systemctl enable initrd-cryptsetup.path initrd-network.service initrd-shell.service initrd-tinysshd.service
I guess the AUR package went away too quickly alongside it's comments:
watch for v22
It might also be worthwhile creating a short FAQ or extending the wiki for setup explanations.
Those can then be linked to from the Documentation
directive in the units.
I'm also getting this error every time I run mkinitcpio -P
I'm also getting this error every time I run mkinitcpio -P
It works since 22-1
:
Thanks for the fast replies! Can confirm that it works on 22-1 with the steps described by @ml- above.
I did all execpt
Create dropin systemctl edit initrd-tinyssh.service
What is the purpose of this step?
It is not required if you want to keep the default setup. It's just in case you want to adjust systemd units without creating a full copy.
meanwhile, will use a "scary warning": https://github.com/random-archer/mkinitcpio-systemd-tool/commit/903e5485172176428cfaa2ed7bf3e823083a35c2
There's now a warning message in the package upon upgrade from <=22.
@ml- Thanks for the explanation! The warning sure will help others to cope with the migration from aur to community version! That's cool!
Ok new issue. I booted into a arch iso to try to recover the system and I get this error running mkinitcpio.
@ShapeShifter499 I can't reproduce that.
@dvzrv
@ShapeShifter499 I can't reproduce that.
Before I do, did you try this from inside of a chroot (arch-chroot) from a running arch linux iso?
Yes, same issue here if I build initrd from chroot.
Ah... I see.
Potentially relevant systemd issues and commits:
I guess we either distinguish between the use-cases
@ShapeShifter499 That all being said, I just found something probably of value.
@dvzrv it's no good I get the following errors.
@ShapeShifter499 hang in there. I'm working on a fix.
@ShapeShifter499 please try again with #34 applied.
@dvzrv manually applied your workaround and now 'mkinitcpio -P' completes as normal in chroot. System boots as expected, prompting for encryption key via tinyssh ssh server again.
Thank you
@ml- Thank you for your help too, I forgot about needing to add a empty variable before replacing it in 'systemctl edit' or in the override.conf file
@ShapeShifter499 I'm very sorry that I didn't consider this case. Should've taken into account that running mkinitcpio inside a chroot is a common thing to do.
additional workarounds for "chroot issue" could be:
@dvzrv no dice with systemctl cat
, must roll our own as you did
I'm going to play around with systemd
and chroot
later.
Meanwhile I think we should release a new version
yes, I was praying to you whole day https://github.com/random-archer/mkinitcpio-systemd-tool/pull/34#issuecomment-602049901 since only you are the master of the community :-)
Followed this notes, seems all works. System boot, cryptsetup successfully opened container... But dropbear doesnt work (sure i'm fixed /xxx/initrd-release and enable state)
I guess the /xxx
can now be removed in general.
My system has a completely fresh Arch installation. I'm not sure what I'm doing wrong.
@vlna Vladimír:
I guess the
/xxx
can now be removed in general.
Sure I did. Or you mean need to remove full block ConditionPathExists= ?
@vvl-rulez Vladislav:
But dropbear doesnt work
please report specifically:
Hi, Thank you for this tool. :) Unfortunately I have some issues after last update I have failed to fix.
@Anty0 apparently your have "sysroot-on-lvm"? in this case follow @fredleb on #36
But dropbear doesnt work
> **tl;dr:** > ``` > * edit configuration in `/etc/mkinitcpio-systemd-tool/` > > * `systemctl enable initrd-cryptsetup.path initrd-network.service initrd-shell.service initrd-tinysshd.service` > ``` Followed this notes, seems all works. System boot, cryptsetup successfully opened container... But dropbear doesnt work (sure i'm fixed /xxx/initrd-release and enable state)
I was having the same issue.
@chocobytes @vvl-rulez
in addition to running "systemctl enable initrd-dropbear.service"
remember that dropbear
and tinysshd
are mutually exclusive,
unless ran on separate ports, so it is needed to enable one / disable another
@kolcon @ShapeShifter499 please confirm "chroot issue" is resolved after https://github.com/random-archer/mkinitcpio-systemd-tool/releases/tag/v23
@Andrei-Pozolotin
Do I understand it correctly?
@Anty0
Do I understand it correctly?
No. You just wait for @fredleb to test multiple setups in his vm and then give you a proper solution :-)
If you can build virtualbox vm yourself and verify proper solution please do so. Meanwhile continue to use your manual boot workaround, and continue lvm-related conversation in issue #36 .
Oh, got it, sorry. Thanks. :)
@Andrei-Pozolotin I solved the problem.
@vvl-rulez
I solved the problem
ok, great.
@Andrei-Pozolotin
* disable both by default, and always require user config action?
I think that will be best variant. Already user need to do"systemctl enable initrd-***", that's enough.
* enable both on different ports?
More services, MORE!!! :))) Let's add openssh, and mkinitcpio-systemd-tool's self realization :) Dropbear covers most cases of technical limits for crypto, tinyssh for other cases (more tiny, faster, easy to config, etc).
ok, after #33 all services will be disabled by default after install of systemd-tool
to all: you are invited to code review #38 for #33
Hi! Thanks for this cool project! It worked really great until last update.
Regards!