From nobody Fri Mar 29 14:55:46 2024 X-Original-To: alpine-aports@lists.alpinelinux.org Received: from magnesium.8pit.net (magnesium.8pit.net [45.76.88.171]) by lists.alpinelinux.org (Postfix) with ESMTP id 442565C54BC for ; Mon, 12 Jun 2017 10:55:07 +0000 (GMT) Received: from localhost (dslb-092-077-022-117.092.077.pools.vodafone-ip.de [92.77.22.117]) by magnesium.8pit.net (OpenSMTPD) with ESMTPSA id 65d7dc7a (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 12 Jun 2017 12:55:05 +0200 (CEST) Date: Mon, 12 Jun 2017 12:55:04 +0200 From: =?iso-8859-1?Q?S=F6ren?= Tempel To: Natanael Copa Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/mkinitfs: backport cryptdiscards patch Message-ID: <20170612105504.GA22141@francium> References: <20170610100553.3112-1-soeren+git@soeren-tempel.net> <20170612113737.0d96dd0a@ncopa-desktop.copa.dup.pw> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20170612113737.0d96dd0a@ncopa-desktop.copa.dup.pw> On 12.06.17, Natanael Copa wrote: > Does other distros have similar options? If so do they use > "cryptdiscards" as bootoption too, or something else? Yes, other distros have similar options. According to the Arch Linux wiki[1] all systemd based initrds use `rd.luks.options=3Ddiscard` for enabling this. Cheers, S=F6ren [1]: https://wiki.archlinux.org/index.php/Dm-crypt/Specialties#Discard.2FTR= IM_support_for_solid_state_drives_.28SSD.29 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org --- From nobody Fri Mar 29 14:55:46 2024 X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx1.tetrasec.net (mx1.tetrasec.net [74.117.190.25]) by lists.alpinelinux.org (Postfix) with ESMTP id 3C43A5C4BBF for ; Wed, 14 Jun 2017 13:27:17 +0000 (GMT) Received: from mx1.tetrasec.net (mail.local [127.0.0.1]) by mx1.tetrasec.net (Postfix) with ESMTP id AFE629E2016; Wed, 14 Jun 2017 13:27:16 +0000 (GMT) Received: from ncopa-desktop.copa.dup.pw (15.63.200.37.customer.cdi.no [37.200.63.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mx1.tetrasec.net (Postfix) with ESMTPSA id CE5599E034C; Wed, 14 Jun 2017 13:27:15 +0000 (GMT) Date: Wed, 14 Jun 2017 15:27:10 +0200 From: Natanael Copa To: =?ISO-8859-1?B?U/ZyZW4=?= Tempel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] main/mkinitfs: backport cryptdiscards patch Message-ID: <20170614152710.4f52282a@ncopa-desktop.copa.dup.pw> In-Reply-To: <20170612105504.GA22141@francium> References: <20170610100553.3112-1-soeren+git@soeren-tempel.net> <20170612113737.0d96dd0a@ncopa-desktop.copa.dup.pw> <20170612105504.GA22141@francium> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, 12 Jun 2017 12:55:04 +0200 S=F6ren Tempel wrote: > On 12.06.17, Natanael Copa wrote: > > Does other distros have similar options? If so do they use > > "cryptdiscards" as bootoption too, or something else? =20 >=20 > Yes, other distros have similar options. According to the Arch Linux > wiki[1] all systemd based initrds use `rd.luks.options=3Ddiscard` for > enabling this. >=20 > Cheers, > S=F6ren >=20 > [1]: https://wiki.archlinux.org/index.php/Dm-crypt/Specialties#Discard.2F= TRIM_support_for_solid_state_drives_.28SSD.29 Arch also has: cryptdevice=3D/dev/sdaX:root:allow-discards and apparently they also have cryptkey=3D... for detached header. Gentoo[1] does: root_trim=3Dyes Debian/ubuntu stores that option in /etc/crypttab which needs to be include= d in initramfs. We currently have: cryptroot cryptdm cryptheader cryptoffset and now we add cryptdiscard I kind of like the old Arch Linux way better: cryptdevice=3D$cryptroot:$cryptdm:$cryptdiscard and for detached header: cryptkey=3D$cryptheader:$cryptoffset:$size What do you think? Should we go for: cryptroot=3D$device cryptdm=3D$dmname cyptdiscards=3Dyes cryptheader=3D$h= eader cryptoffset=3D$offset or should we do: cryptdevice=3D$device:$dmname:allow-discards cryptkey=3D$header:$offset -nc [1]: https://wiki.gentoo.org/wiki/Dm-crypt_full_disk_encryption#Genkernel.2= FGenkernel-next >=20 >=20 > --- > Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org > Help: alpine-aports+help@lists.alpinelinux.org > --- >=20 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org --- From nobody Fri Mar 29 14:55:46 2024 X-Original-To: alpine-aports@lists.alpinelinux.org Received: from magnesium.8pit.net (magnesium.8pit.net [45.76.88.171]) by lists.alpinelinux.org (Postfix) with ESMTP id B2A8C5C4BBF for ; Wed, 14 Jun 2017 21:44:36 +0000 (GMT) Received: from localhost (dslb-092-077-029-120.092.077.pools.vodafone-ip.de [92.77.29.120]) by magnesium.8pit.net (OpenSMTPD) with ESMTPSA id 3f83e504 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 14 Jun 2017 23:44:35 +0200 (CEST) Date: Wed, 14 Jun 2017 23:44:34 +0200 From: =?iso-8859-1?Q?S=F6ren?= Tempel To: alpine-aports@lists.alpinelinux.org Cc: OtherthanthatIdon'treallycare@francium, what's@francium Subject: Re: [alpine-aports] [PATCH] main/mkinitfs: backport cryptdiscards patch Message-ID: <20170614214434.GA17311@francium> References: <20170610100553.3112-1-soeren+git@soeren-tempel.net> <20170612113737.0d96dd0a@ncopa-desktop.copa.dup.pw> <20170612105504.GA22141@francium> <20170614152710.4f52282a@ncopa-desktop.copa.dup.pw> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20170614152710.4f52282a@ncopa-desktop.copa.dup.pw> On 14.06.17, Natanael Copa wrote: > What do you think? Should we go for: >=20 > cryptroot=3D$device cryptdm=3D$dmname cyptdiscards=3Dyes cryptheader=3D= $header cryptoffset=3D$offset >=20 > or should we do: >=20 > cryptdevice=3D$device:$dmname:allow-discards cryptkey=3D$header:$offset Honestly I don't have a strong opinion on this. I believe the latter is harder to read and besides we would break backwards compatibility if we would switch to this scheme. Do you have an opinion on this? Would you like to switch to the latter? S=F6ren. --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---