X-Original-To: alpine-user@lists.alpinelinux.org Received: from smtprelay07.ispgateway.de (smtprelay07.ispgateway.de [134.119.228.102]) by lists.alpinelinux.org (Postfix) with ESMTP id 29B6D5C5544 for ; Mon, 13 Aug 2018 11:19:25 +0000 (GMT) Received: from [95.91.239.65] (helo=[192.168.0.7]) by smtprelay07.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1fpAsd-000164-WE for alpine-user@lists.alpinelinux.org; Mon, 13 Aug 2018 13:19:24 +0200 From: Tristan Kohl Subject: [alpine-user] How to setup BTRFS and LUKS To: alpine-user@lists.alpinelinux.org Message-ID: <885afe4f-3231-468d-7928-7e41bf4cffd4@icetown.de> Date: Mon, 13 Aug 2018 13:19:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Df-Sender: dHJpc3RhbkBmYW1pbGllLWtvaGwuYXQ= Hey guys, I stumbled upon Alpine a while back when building new docker images for my home server currently running Debian stable. Since I was quite intrigued by its minimalism, I gave it a shot in a VM to play around. I must admit, I fell in love and made an USB drive to use on my home server. Most things work flawelessly (samba, docker, etc.) but I do not get how one would get a BTRFS pool on LUKS drives working. I think I have to dig into OpenRC and drop some service in "sysinit" to decrypt my drives before fstab kicks in (which as far as I can tell happens in devfs). I have my crypttab setup to work with a keyfile which resides in /root. What I need: 1. Mapping all LUKS drives to /dev/mapper/poolX (setup in /etc/crypttab) 2. Run btrfs device scan to detect my pool 3. Mount pool according to fstab I am a Linux desktop user for 7 years and I do prefer command line for many tasks but when it comes to server setups that are just a tad more advanced I feel like an absolute beginner. When I build my server some 5 years ago I did just some copypasta from a vast number of sites without documenting anything. Plus Debian did a lot of magic out of the box I did not even knew of. However this "featurefullness" also always bugged me since I had no idea what was actually going on behind the scenes. Hope someone can help me out here, any help is greatly appreciated. Cheers, Tristan --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---