From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: guix system init with mounted btrfs Date: Tue, 25 Jun 2019 09:27:21 +0300 Message-ID: <20190625062721.GB1163@macbook41> References: <87r27lginz.fsf@gmail.com> <87v9wwscbm.fsf@nckx> <87v9wwhusn.fsf@gmail.com> <20190624114924.GA1163@macbook41> <87d0j3uje3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Yylu36WmvOXNoKYn" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51303) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfevQ-0007tP-73 for help-guix@gnu.org; Tue, 25 Jun 2019 02:27:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfevO-000304-VZ for help-guix@gnu.org; Tue, 25 Jun 2019 02:27:28 -0400 Received: from flashner.co.il ([178.62.234.194]:38776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hfevO-0002w0-MP for help-guix@gnu.org; Tue, 25 Jun 2019 02:27:26 -0400 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Matt Huszagh Cc: help-guix@gnu.org --Yylu36WmvOXNoKYn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 24, 2019 at 10:54:37AM -0700, Matt Huszagh wrote: > Efraim Flashner writes: > > I spent some time yesterday with the arch wiki and I have an idea. > > assuming you're using %desktop-services, inside services: > > > > (modify-services %desktop-services > > (udev-service-type config =3D> > > (udev-configuration > > (inherit config) > > (rules (list lvm2 fuse alsa-utils crda btrfs))))) > > > > Perhaps adding the udev rules for btrfs will force it to run 'btrfs > > device scan' or whatever the magic is that it apparently isn't running > > now. >=20 > Efraim, is btrfs supposed to btrfs-progs here? I believe rules takes > package names right? In any event I tried this and it didn't work for me. > Did you have success with it? >=20 I haven't tried it yet, I'm somehow running low on physical machines and I haven't set up a VM to test it yet. The two places I remember seeing something about it was with Gentoo=C2=B9 and with Arch=C2=B2, which is wher= e I got the udev suggestion for btrfs, from the 64-btrfs.rule file. =C2=B9 https://forums.gentoo.org/viewtopic-t-1010878.html =C2=B2 https://bbs.archlinux.org/viewtopic.php?id=3D189845 > On Mon, Jun 24, 2019 at 7:51 AM Matt Huszagh wrot= e: >=20 > > Efraim Flashner writes: > > > I spent some time yesterday with the arch wiki and I have an idea. > > > assuming you're using %desktop-services, inside services: > > > > > > (modify-services %desktop-services > > > (udev-service-type config =3D> > > > (udev-configuration > > > (inherit config) > > > (rules (list lvm2 fuse alsa-utils crda btrfs))))) > > > > > > Perhaps adding the udev rules for btrfs will force it to run 'btrfs > > > device scan' or whatever the magic is that it apparently isn't running > > > now. > > > > Thanks for the suggestion Efraim. I don't currently use desktop > > services, just base-services at the moment. However, I'm concerned there > > may still be an issue with this modification. I'm currently only getting > > prompted for 1 of 2 LUKS device passphrases, which I believe is an issue > > with the grub bootloader (which in my case is an efi shell program). I'm > > getting stuck at the grub rescue prompt and so I don't even get to the > > initial ramdisk stage. Is that where these services kick in, or does > > that happen later when the full kernel is loaded? When I mount the btrfs > > root fs manually, I have to decrypt both devices before I can run btrfs > > device scan. > > > > To address the grub issue I've tried doing: > > grub rescue> insmod luks > > grub rescue> cryptomount -a > > > > However, that doesn't appear to have any effect. I've also tried > > modifying grub.cfg directly and reinstalling the bootloader by chrooting > > and running grub-install, but that doesn't work for reasons that seem to > > be related to the guix way of doing things. Since I'm still new to Guix, > > I don't know how one might make custom modifications to the cfg file. > > >=20 >=20 > --=20 >=20 > *Matt Huszagh* > Emerging Markets Trader | JP Morgan >=20 > o: (212) 834-4869 > c: (847) 313-5082 > LinkedIn --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --Yylu36WmvOXNoKYn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl0RvsUACgkQQarn3Mo9 g1GAqRAApvyNYWs/7AoXgQ2Z5KzKDGYwC2nKxw0t/+IhBQ0HGPHDnntXY0E9Ladp rr879gsAb9rDMi9jnHjQbwVAcWVykye47+jB1X1P5nKfIKiwlkafFElYdfNKlwtG YkksGqvTypFwC+wZKpA1PAYBqzoU1CyYvd+cubTG3XQohI27gpCNeyOpCUf9Y3/B yfa7/wjJoPflv2+I2nSF71vjGHknbdXNqCxZRTptP6oackpSIQtOTySovA2rNouu 3uCZOUqm7YPjvHKQbfhEJ2Ans65bEJDIx31sZrXfpAyCa3B1Pkk5mmHSI3NtV7Fy 83K8peI8y1WzsOHs5f9s+0Kj24BlrR+gLhjx4kBs6U2KzP6PyHYg6Al8Zg2xC6u3 X1QiFuaQ5+QRpHOEnadxT1bZtMiW190OfTpXqYj110bQc+Vfaa+Re/FENcdC+Q6j WqORiGuCmF1LiAIzUTgVKlcoFi2nLylsH/CgLzBaXtv9Lf2H7A4WBPXW5skcOIhz vI7+l3R85y1G5LtfU0Vq1xSOVih1i2YFBzaH95hcYYcWOOokb30zazG4HmeNxxsX gWZiIUmPXGlnup3t86hKDxscLXyEdeugaiU0Vz/sXP5v8bBryV3qazJUQSugE/Kb 6uVxLCCkHEtjzQEmLz2X45/dMG10lz6HSB++C4m8L/UuOdVnzXI= =TKRQ -----END PGP SIGNATURE----- --Yylu36WmvOXNoKYn--