[PATCH 02/17] cryptodisk: Fix cipher IV mode 'plain64' always being set as 'plain'.

2020-07-29 Thread development
From: Glenn Washburn Signed-off-by: Glenn Washburn --- grub-core/disk/cryptodisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c index 1897acc4b..d8f66e9ef 100644 --- a/grub-core/disk/cryptodisk.c +++ b/grub-cor

[PATCH 01/17] configure: Add Ubuntu dejavu font path.

2020-07-29 Thread development
From: Glenn Washburn Signed-off-by: Glenn Washburn --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7c10a4db7..c6b0ef499 100644 --- a/configure.ac +++ b/configure.ac @@ -1678,7 +1678,7 @@ fi if test x"$starfield_excuse" =

[PATCH 03/17] cryptodisk: Incorrect calculation of start sector for grub_disk_read in grub_cryptodisk_read.

2020-07-29 Thread development
From: Glenn Washburn Here dev is a grub_cryptodisk_t and dev->offset is offset in sectors of size native to the cryptodisk device. The sector is correctly transformed into native grub sector size, but then added to dev->offset which is not transformed. It would be nice if the type system would he

[PATCH 00/17] Fixes and improvements for cryptodisks+luks2 and a few other things.

2020-07-29 Thread development
From: Glenn Washburn Hi All, Here's a list of patches that mostly have to do with cryptodisk and luks2 fixes or improvements. The odd balls out are the patches adding the ubuntu font path, a fix an an improvement to blocklists, and adding a procfs entry for loopbacks. I'm hoping that at least th

[PATCH 11/17] cryptodisk: Rename total_length field in grub_cryptodisk_t to total_sectors.

2020-07-29 Thread development
From: Glenn Washburn This makes the creates an alignment with grub_disk_t naming of the same field and is more intuitive as to how it should be used. Signed-off-by: Glenn Washburn --- grub-core/disk/cryptodisk.c | 2 +- grub-core/disk/geli.c | 2 +- grub-core/disk/luks.c | 2 +- gr

[PATCH 04/17] cryptodisk: Add more verbosity when reading/writing cryptodisks.

2020-07-29 Thread development
From: Glenn Washburn Signed-off-by: Glenn Washburn --- grub-core/disk/cryptodisk.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c index 2791a4870..c21be7d52 100644 --- a/grub-core/disk/cryptodisk.c +++ b

[PATCH 05/17] luks: Add support for LUKS2 in (proc)/luks_script

2020-07-29 Thread development
From: Glenn Washburn Signed-off-by: Glenn Washburn --- grub-core/disk/cryptodisk.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c index c21be7d52..f6b6302e1 100644 --- a/grub-core/disk/cryptodisk.

[PATCH 06/17] luks2: grub_cryptodisk_t->total_length is the max number of device native sectors.

2020-07-29 Thread development
From: Glenn Washburn The total_length field is named confusingly because length usually refers to bytes, whereas in this case its really the total number of sectors on the device. Also counter-intuitively, grub_disk_get_size returns the total number of device native sectors sectors. We need to co

[PATCH 14/17] cryptodisk: Add header line to procfs entry and crypto and source device names.

2020-07-29 Thread development
From: Glenn Washburn Signed-off-by: Glenn Washburn --- grub-core/disk/cryptodisk.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c index fc53ab491..acf87b6c8 100644 --- a/grub-core/disk/cry

[PATCH 08/17] cryptodisk: Unregister cryptomount command when removing module.

2020-07-29 Thread development
From: Glenn Washburn Signed-off-by: Glenn Washburn --- grub-core/disk/cryptodisk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c index f460ab838..bc38687e4 100644 --- a/grub-core/disk/cryptodisk.c +++ b/grub-core/disk/cryptodisk.c

[PATCH 15/17] cryptodisk: Add a couple comments noting the usage of a couple fields in grub_cryptodisk_t as is done for grub_disk_t.

2020-07-29 Thread development
From: Glenn Washburn Signed-off-by: Glenn Washburn --- include/grub/cryptodisk.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/grub/cryptodisk.h b/include/grub/cryptodisk.h index f9e42796e..8d3284aad 100644 --- a/include/grub/cryptodisk.h +++ b/include/grub/cryptodisk.h @@ -

[PATCH 07/17] cryptodisk, luks: Allow special processing for comparing UUIDs.

2020-07-29 Thread development
From: Glenn Washburn Create grub_uuidcasecmp to compare UUIDs in a case-insensitive manner and that ignores '-' characters. This is backwards compatible with the old LUKS1 code that stored and compared against UUIDs without dashes. However, the new LUKS2 code stores and compares UUIDs that contai

[PATCH 10/17] cryptodisk: Properly handle non-512 byte sized sectors.

2020-07-29 Thread development
From: Glenn Washburn By default, dm-crypt internally uses an IV that corresponds to 512-byte sectors, even when a larger sector size is specified. What this means is that when using a larger sector size, the IV is incremented every sector. However, the amount the IV is incremented is the number o

[PATCH 12/17] fs: Allow number of blocks in block list to be optional, where length will be defaulted to the length of the device.

2020-07-29 Thread development
From: Glenn Washburn This is primarily useful to do something like "loopback newdev (dev)8+" to create a device that skips the first 4K, which may contain a non-standard RAID1 header that grub does not recognize. This would allow that initial data to be accessed and potentially mounted by grub up

[PATCH 17/17] luks2: Fix use of incorrect index and some error messages.

2020-07-29 Thread development
From: Glenn Washburn Signed-off-by: Glenn Washburn --- grub-core/disk/luks2.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/grub-core/disk/luks2.c b/grub-core/disk/luks2.c index 44a73d2b8..48600db68 100644 --- a/grub-core/disk/luks2.c +++ b/grub-core/disk/lu

[PATCH 13/17] loopback: Add procfs entry 'loopbacks' to output configured loopback devices.

2020-07-29 Thread development
From: Glenn Washburn Signed-off-by: Glenn Washburn --- grub-core/disk/loopback.c | 56 +++ 1 file changed, 56 insertions(+) diff --git a/grub-core/disk/loopback.c b/grub-core/disk/loopback.c index cdf9123fa..6a2be257b 100644 --- a/grub-core/disk/loopback.c +

[PATCH 09/17] fs: When checking if a block list goes past the end of the disk, make sure the total size of the disk is in grub native sector sizes, otherwise there will be blocks at the end of the dis

2020-07-29 Thread development
From: Glenn Washburn Signed-off-by: Glenn Washburn --- grub-core/kern/fs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/grub-core/kern/fs.c b/grub-core/kern/fs.c index fb30da9f4..14c17df74 100644 --- a/grub-core/kern/fs.c +++ b/grub-core/kern/fs.c @@ -139,6 +139,7 @@ g

[PATCH 16/17] luks2: Ensure that bit fields of grub_luks2_digest_t in luks2_parse_digest are initialized before returning.

2020-07-29 Thread development
From: Glenn Washburn Signed-off-by: Glenn Washburn --- grub-core/disk/luks2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grub-core/disk/luks2.c b/grub-core/disk/luks2.c index 0089d169c..44a73d2b8 100644 --- a/grub-core/disk/luks2.c +++ b/grub-core/disk/luks2.c @@ -230,6 +230,7 @@ luk

Re: Grub saved my Laptop, and made it usable. so i wanted to say thanks to everybody that worked on it.

2022-11-25 Thread Project Development
On Mon, Nov 7, 2022 at 9:50 AM James Wabi wrote: > > Thanks vladimir, sadly it did not work. What i did was to include the memmap > line like this on boot/grub/grub.cfg > > > # This Menu entry brought to you courtesy of > https://www.pendrivelinux.com/install-grub2-on-usb-from-ubuntu-linux/ > se