From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-150378-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B297C1381F3 for <garchives@archives.gentoo.org>; Wed, 4 Sep 2013 14:17:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 269ECE141A; Wed, 4 Sep 2013 14:16:59 +0000 (UTC) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 56AC8E0F4F for <gentoo-user@lists.gentoo.org>; Wed, 4 Sep 2013 14:16:57 +0000 (UTC) Received: by mail-la0-f47.google.com with SMTP id eo20so351819lab.34 for <gentoo-user@lists.gentoo.org>; Wed, 04 Sep 2013 07:16:55 -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:content-transfer-encoding; bh=hORX+NRYSYygzwMEdRMT/CJh3z1cVbdkofqQQ5JawK8=; b=CT7GyCIUe+93h0XWNF5ty4E1+avNFk9/Jh8wXCUzGBEfOfkiTkXYia+/dex24odf9J Ojv0OKUgX10Scup9vrt6O3/Lapa7H96UF1owxNDZFyRpEV90fqvbB6Tu2092230OSocH k8ZgUVMqNJENaS/uv5l0OKTzafGds8VNrFyChnf2tau3Pc6v3eTnPlm4L0gJJiJaWhVj Jbj2OK00W9MWuDHq8ObH0/P4/a6prh2hML/gEmiA+mpmJNUDcYzEi8hp1TLpeGnS02kK WRV5pjAnhG5yLoxJRgM/RWaW2RBlXjvWXqi2Kn+GBXU4MTfhwI5DOgcdn8f9bN62MYyV mntQ== Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.152.116.7 with SMTP id js7mr2812437lab.11.1378304215638; Wed, 04 Sep 2013 07:16:55 -0700 (PDT) Received: by 10.114.96.2 with HTTP; Wed, 4 Sep 2013 07:16:55 -0700 (PDT) In-Reply-To: <20130904102034.GB4058@nukleus.lan> References: <20130903114634.GA1707@nukleus.lan> <CADPrc82h12FsUQhat2+5_jsKWxOCry1L_r26tOCpkFBwJkGeUg@mail.gmail.com> <20130903213114.GA5341@methusalix.lan> <5226DFBD.2000906@xunil.at> <20130904102034.GB4058@nukleus.lan> Date: Wed, 4 Sep 2013 09:16:55 -0500 Message-ID: <CADPrc80N8cA97HW6WM4K--4z41F931PDKUhfAbT-Qh4-Td6RGw@mail.gmail.com> Subject: Re: [gentoo-user] systemd and LUKS From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= <caneko@gmail.com> To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: eab6e66c-4e63-4447-a438-13c6f9de3e8e X-Archives-Hash: b9769c1a0a6cf3e11bb4e0deace327e3 On Wed, Sep 4, 2013 at 5:20 AM, Frank Steinmetzger <Warp_7@gmx.de> wrote: > On Wed, Sep 04, 2013 at 09:22:37AM +0200, Stefan G. Weichinger wrote: >> Am 03.09.2013 23:31, schrieb Frank Steinmetzger: >> >> > This link gave me the deciding hint -- I didn't have >> > cryptsetup-generator in my system, because I didn=E2=80=99t have the >> > cryptsetup useflags enabled. I rebuilt systemd and udisks and now >> > I=E2=80=99m prompted for the LUKS password during boot. \o/ >> >> Congratulations! >> >> sidenote: The mentioned pam_mount way of doing things lets you boot >> through to a login. No waiting for the passphrase ... when I login the >> LUKS-device is opened and mounted ... only one time user/pw ... >> personally I like it that way. > > Finding stuff on pam_mount doesn=E2=80=99t seem to be too hard. But how d= o I > prevent systemd from trying it first? Just by disabling the service? > >> > Now I need to find out whether it=E2=80=99s feasible for me to use it.= I=E2=80=99ll >> > definitely have to procure some custom unit files, e.g. for >> > monitorix. >> [=E2=80=A6] >> pls share your unit as well (or even file it as a bug on >> bugs.gentoo.org) to help the gentoo devs (and users) here. > > Well, it=E2=80=99s an experiment, but I=E2=80=99m still quite hesitant to= switch. It > really shuts down fast (1 to 2 seconds or so), but I don=E2=80=99t see mu= ch > improvement in booting time (still around 40 seconds until KDM is > finished). I like the small stuff around it though, for instance > timedatectl is neat and that there is no consolekit thread spam in htop. Even considering that you need to input the LUKS password, 40 seconds is too much. You can use systemd-analyze and systemd-analyze blame after a fresh boot to see what is taking most of the boot time. > I also see now why some people rant about it, e.g. that it has an own > logging daemon (=E2=80=9Cone big block of everything=E2=80=9D) which uses= a binary data > format. OTOH, logging becomes very handy with it in that you can see all > messages associated with a particular service. Systemdadm is a start, > but impractical on a netbook screen. Don't forget journalctl -b -p err and journalctl -b -p warning. Hugh time savings. > I was hoping I could have openrc and systemd in parallel on the system > (so I don=E2=80=99t have to maintain two systems, especially on a slow ne= tbook), > but b/c I removed consolekit altogether, a lot of stuff doesn=E2=80=99t w= ork > anymore if I try booting with openrc. > > Perhaps someone can give me a hint about the following: > - I=E2=80=99m missing openrc=E2=80=99s feature of using the menu key to s= witch between > the last two TTYs, that=E2=80=99s very useful. I didn't realized it was gone. However, I don't think is a feature of OpenRC, it's just that OpenRC calls agetty differently from systemd, I suppose. > - No login prompt on TTY1. Sure it is. Perhaps is just garbled? Try to log in and do a reset. > - A resource link on how to set up networking without network manager. I > always did it the conf.d/net way. You can set up the network without networkmanager just fine. If you want to use DHCP: dhcpcd@.service ---------------------------------------------------- [Unit] Description=3DDHCP on %I After=3Dbasic.target Documentation=3Dman:dhcpcd(8) [Service] ExecStartPre=3D/bin/ifconfig %I up ExecStart=3D/sbin/dhcpcd -B %I [Install] WantedBy=3Dmulti-user.target ---------------------------------------------------- If you want to use static network: ---------------------------------------------------- [Unit] Description=3DStatic network service After=3Dlocal-fs.target Documentation=3Dman:ifconfig(8) Documentation=3Dman:route(8) [Service] Type=3Doneshot RemainAfterExit=3Dyes ExecStart=3D/bin/ifconfig <interface> <ip> broadcast <broadcast> netmask <netmask> up ExecStart=3D/bin/route add default gw <gateway> <interface> ---------------------------------------------------- (You can use the new ip command, but ifconfig is still the one installed by default in Gentoo). Or if you need something more complicated, you can put it in several ExecStart lines, or put it in a script and call that. Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico