Gentoo Archives: gentoo-user

From: "Stefan G. Weichinger" <lists@×××××.at>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] LVM2+mdraid5+LUKS+systemd (was Re: LVM2+mdraid+systemd)
Date: Mon, 23 Sep 2013 08:21:54
Message-Id: 523FFA12.9050906@xunil.at
In Reply to: Re: [gentoo-user] LVM2+mdraid5+LUKS+systemd (was Re: LVM2+mdraid+systemd) by "Stefan G. Weichinger"
1 Am 23.09.2013 10:00, schrieb Stefan G. Weichinger:
2
3 > Getting that unit-name right is quite annoying ... fiddling with
4 > understanding that strange escaping etc ... :-(
5
6 I have now:
7
8 # cat /etc/systemd/system/dev-disk-by\\x2did-dm\\x2dname\\x2dswap.swap
9 [Unit]
10 #After=systemd-cryptsetup.service
11 After=systemd-cryptsetup@××××.service
12
13 [Swap]
14 What=/dev/disk/by-id/dm-name-swap
15
16 see the comment, I tried both because the swap was not activated after
17 boot but it is when I manually start it.
18
19 I only have:
20
21 # systemctl | grep cry
22 cryptsetup.target loaded active active Encrypted Volumes
23
24 so I edited the dependency. This gave me encrypted swap once already
25 after manually starting the swap-unit.
26
27
28 But after booting it still generates another swap.service which makes
29 the new unit fail or run into a timeout.
30
31 # systemctl | grep swap
32 dev-mapper-swap.device loaded inactive dead start
33 dev-mapper-swap.device
34 systemd-...p@××××.service loaded active exited Cryptography
35 Setup for swap
36 swap.target loaded active active Swap
37
38 oh my ... Glad to have enough RAM for now ;-)
39
40 for the records: no swap-stuff in fstab ...
41
42 Stefan

Replies

Subject Author
Re: [gentoo-user] LVM2+mdraid5+LUKS+systemd (was Re: LVM2+mdraid+systemd) Tanstaafl <tanstaafl@×××××××××××.org>
Re: [gentoo-user] LVM2+mdraid5+LUKS+systemd (was Re: LVM2+mdraid+systemd) "Canek Peláez Valdés" <caneko@×××××.com>