From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1C3371381F3 for ; Mon, 23 Sep 2013 14:31:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A76EE0AE9; Mon, 23 Sep 2013 14:30:52 +0000 (UTC) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 41514E0ACC for ; Mon, 23 Sep 2013 14:30:50 +0000 (UTC) Received: by mail-la0-f42.google.com with SMTP id ep20so2655020lab.1 for ; Mon, 23 Sep 2013 07:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=a28lPWz4MqCfap9RacK68f0KmxyNussCaqF6IDc0e8E=; b=EVTCg9RY430Y4iZF2lHdVA6M9gbGC85iIUq0pdMvOTjffUNJWRmtqwb5grz+zoncjp NXzjkWEktSGgAJhauHZC1EWf4Ubr6IvFiN8Uu/eXrx8eOtaRdtOg2DHKj8Jj2xkzDm5W dJ5nvBS8zVDFUiU7TQG4NAK6pwDt1CRBz40DF0KXL/AZoN5imQsLLn4ukphNS6W6JjOC F4P/8JkKOE5BOyZUjvuK6pxj8O1xYTJ3kSdHzgQIA3YX+u4O93ETIQq0bhv1VRw34V2p UUG9wO0HEATtNGwG/w/8dTv3B9ILAdWwZFPZYp6pHFdkF6pQSwpUp93Mhn4LEvLJo+hI nqPA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.152.203.233 with SMTP id kt9mr2119285lac.29.1379946649154; Mon, 23 Sep 2013 07:30:49 -0700 (PDT) Received: by 10.114.96.2 with HTTP; Mon, 23 Sep 2013 07:30:48 -0700 (PDT) Received: by 10.114.96.2 with HTTP; Mon, 23 Sep 2013 07:30:48 -0700 (PDT) In-Reply-To: <523FFA12.9050906@xunil.at> References: <523FE910.6090202@xunil.at> <523FF530.2000905@xunil.at> <523FFA12.9050906@xunil.at> Date: Mon, 23 Sep 2013 09:30:48 -0500 Message-ID: Subject: Re: [gentoo-user] LVM2+mdraid5+LUKS+systemd (was Re: LVM2+mdraid+systemd) From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=001a11345984d4f99e04e70dddf2 X-Archives-Salt: 7ee4b56a-843a-4203-a2a9-ebf0bcdae698 X-Archives-Hash: e411dc7136612771db35e64fcdbda21c --001a11345984d4f99e04e70dddf2 Content-Type: text/plain; charset=UTF-8 On Sep 23, 2013 3:22 AM, "Stefan G. Weichinger" wrote: > > Am 23.09.2013 10:00, schrieb Stefan G. Weichinger: > > > Getting that unit-name right is quite annoying ... fiddling with > > understanding that strange escaping etc ... :-( > > I have now: > > # cat /etc/systemd/system/dev-disk-by\\x2did-dm\\x2dname\\x2dswap.swap > [Unit] > #After=systemd-cryptsetup.service > After=systemd-cryptsetup@swap.service > > [Swap] > What=/dev/disk/by-id/dm-name-swap > > see the comment, I tried both because the swap was not activated after > boot but it is when I manually start it. > > I only have: > > # systemctl | grep cry > cryptsetup.target loaded active active Encrypted Volumes > > so I edited the dependency. This gave me encrypted swap once already > after manually starting the swap-unit. > > > But after booting it still generates another swap.service which makes > the new unit fail or run into a timeout. > > # systemctl | grep swap > dev-mapper-swap.device loaded inactive dead start > dev-mapper-swap.device > systemd-...p@swap.service loaded active exited Cryptography > Setup for swap > swap.target loaded active active Swap > > oh my ... Glad to have enough RAM for now ;-) > > for the records: no swap-stuff in fstab ... Did you read my next email? There is no need for the extra swap unit. I was missing a couple of kernel options and to compile LVM2 and cryptsetup with some USE flags. Everything works as expected; but you need to put the swap in fstab. Regards. --001a11345984d4f99e04e70dddf2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Sep 23, 2013 3:22 AM, "Stefan G. Weichinger" <lists@xunil.at> wrote:
>
> Am 23.09.2013 10:00, schrieb Stefan G. Weichinger:
>
> > Getting that unit-name right is quite annoying ... fiddling with<= br> > > understanding that strange escaping etc ... :-(
>
> I have now:
>
> # cat /etc/systemd/system/dev-disk-by\\x2did-dm\\x2dname\\x2dswap.swap=
> [Unit]
> #After=3Dsystemd-cryptsetup.service
> After=3Dsystemd-cryptsetup@swap.service
>
> [Swap]
> What=3D/dev/disk/by-id/dm-name-swap
>
> see the comment, I tried both because the swap was not activated after=
> boot but it is when I manually start it.
>
> I only have:
>
> # systemctl | grep cry
> cryptsetup.target =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 loaded active act= ive =C2=A0 =C2=A0Encrypted Volumes
>
> so I edited the dependency. This gave me encrypted swap once already > after manually starting the swap-unit.
>
>
> But after booting it still generates another swap.service which makes<= br> > the new unit fail or run into a timeout.
>
> # systemctl | grep swap
> dev-mapper-swap.device =C2=A0 =C2=A0loaded inactive =C2=A0 dead =C2=A0= =C2=A0 =C2=A0start
> dev-mapper-swap.device
> systemd-...p@swap.service loaded active =C2=A0 =C2=A0 exited =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0Cryptography
> Setup for swap
> swap.target =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 loaded ac= tive =C2=A0 =C2=A0 active =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Swap
>
> oh my ... Glad to have enough RAM for now ;-)
>
> for the records: no swap-stuff in fstab ...

Did you read my next email? There is no need for the extra s= wap unit. I was missing a couple of kernel options and to compile LVM2 and = cryptsetup with some USE flags. Everything works as expected; but you need = to put the swap in fstab.

Regards.

--001a11345984d4f99e04e70dddf2--