|
|||||||||||
|
Re: [RFC] Allow block device providers to veto file systems
From: Max Vozeler <xam(at)debian.org>
Date: Fri Nov 30 2007 - 11:57:06 EST
On Fri, Nov 30, 2007 at 05:01:35PM +0100, Frans Pop wrote:
The problem exists with any kind of file system on crypto with random keys (please see below). The "tmp" option is added only if the underlying crypto device uses random keys, but is is just one symptom. > Why is use of random keys so restricted? It is limited by the capabilities of the cryptdisks script in cryptsetup and the phash=random handling in loop-AES. Both just create an ext2 unconditionally. Hence, if you want to have file system on an encrypted device with random keys that is re-created each time automatically, your choice is limited to ext2. > Also, isn't swap also allowed with random keys? Yes, fortunately there is no choice of swap "type" to be made there. Both loop-AES and cryptdisks know that they need to run mkswap on the device and that this is enough to make the device usable as swap space. > > I've pondered different ways of implementing this, and That's what I tried first. I changed to piping because otherwise we'd have to do comparably complex list comparisons. E.g. either:
foreach filesystem
is vetoed
skip
else
offer in dialog
Which needs to run the veto script(s) many times and is slower, or
foreach veto script
foreach filesystem
where the "if thing in list" is a little cumbersome to do in shell. But I think it can be done if there is consensus that it is more robust. > > The second thing I don't like but couldn't come up with I like check_valid_filesystems, but it could be confused with "check filesystem" as in fsck. Perhaps test_ is better since it is unambiguous. > > + for fs in $(cat); do OK, that's fine. I personally prefer the style I originally used because it saves one level of (to me) not meaningful indentation, but that's a matter of taste. I'm happy to change it :-) Thanks for you feedback. Max -- To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Fri Nov 30 11:57:06 2007 This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 03:35:21 EDT |
||||||||||
|
|||||||||||