Help output inconsistency: -v vs. -V

2015-06-29 Thread Andrei Borzenkov
We currently have situation that C converted tools use -V for --version and -v for --verbose while shell based tools (quite a lot left) use -v for --version and most do not have --verbose at all. -V is quite deep in argp, but of course it is possible to get rid of it by basically replicating argp

Re: macosx (darwin) fail to boot from Grub2

2015-06-29 Thread Andrei Borzenkov
В Mon, 29 Jun 2015 12:02:04 +0200 dan...@msw.it пишет: > I've made as suggested, but obtain: > > > "invalid signature" Could you post "efibootmgr -v" output from Linux? > "press enter to go back" > > > > (...) > > > > This does not work on native EFI grub (i.e. when grub platform is > > x86

Re: [PATCH 3/5] cryptomount luks allow multiple passphrase attempts

2015-06-29 Thread John Lane
When opening a LUKS volume the user has 2 chances to supply a correct passphrase. if the first attempt fails then the passphrase prompt appears again. if keyfile given then the first attempt is the uses that instead of prompting; failure will then prompt the user for a passphrase. This does not a

Re: [PATCH 5/5] Cryptomount support for hyphens in UUID

2015-06-29 Thread John Lane
This revised patch uses a compare function. It doesn't modify the input supplied by the user. There are 3 places where UUIDs are compared: 1. when a crypto disk is referenced as a (cryptouuid/...) #cryotodisk.c grub_cryptodisk_open 2. when the -u argument is given to cryptomount it checks by the u

[PATCH 5/5] Cryptomount support for hyphens in UUID

2015-06-29 Thread John Lane
From: John Lane --- grub-core/disk/cryptodisk.c | 20 +--- grub-core/disk/luks.c | 26 -- include/grub/cryptodisk.h | 2 ++ 3 files changed, 27 insertions(+), 21 deletions(-) diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c

[PATCH 3/5] cryptomount luks allow multiple passphrase attempts

2015-06-29 Thread John Lane
From: John Lane --- grub-core/disk/luks.c | 278 ++ 1 file changed, 143 insertions(+), 135 deletions(-) diff --git a/grub-core/disk/luks.c b/grub-core/disk/luks.c index 5882368..11e437e 100644 --- a/grub-core/disk/luks.c +++ b/grub-core/disk/luks.

[PATCH 4/5] Cryptomount support plain dm-crypt

2015-06-29 Thread John Lane
From: John Lane --- grub-core/disk/cryptodisk.c | 298 +++- grub-core/disk/luks.c | 195 + include/grub/cryptodisk.h | 8 ++ 3 files changed, 310 insertions(+), 191 deletions(-) diff --git a/grub-core/disk/cryptodisk.

[PATCH 2/5] Cryptomount support key files

2015-06-29 Thread John Lane
From: John Lane --- grub-core/disk/cryptodisk.c | 46 - grub-core/disk/geli.c | 4 +++- grub-core/disk/luks.c | 44 +-- include/grub/cryptodisk.h | 5 - 4 files changed, 82 insertions(+), 17 d

[PATCH 1/5] Cryptomount support LUKS detached header

2015-06-29 Thread John Lane
From: John Lane --- grub-core/disk/cryptodisk.c | 22 ++ grub-core/disk/geli.c | 7 +-- grub-core/disk/luks.c | 45 + include/grub/cryptodisk.h | 5 +++-- 4 files changed, 63 insertions(+), 16 deletions(-) diff

Cryptomount enhancements - revised

2015-06-29 Thread John Lane
These patches provide extensions to the "cryptomount" command. There are five patches [PATCH 1/5] Cryptomount support LUKS detached header Support LUKS detached headers so that the header can be separated from the data payload, e.g. by storing on external removable media such as a USB key.

Re: macosx (darwin) fail to boot from Grub2

2015-06-29 Thread danjde
I've made as suggested, but obtain: "invalid signature" "press enter to go back" (...) This does not work on native EFI grub (i.e. when grub platform is x86_64-efi or i386-efi). You can use EFI chainloading to start Mac OS X bootloader instead of trying to load kernel directly. Somehing l