ramfs.
The goal of this patch set is to enable root=PARTUUID=xxx support in
grub-mkconfig, so that users don't have to manually edit
/etc/default/grub or grub.cfg, or create an initramfs for the sole
purpose of having a robust bootloader configuration for Linux.
Thanks,
Nicholas Vinson
Nich
Define print_gpt_guid(), so there is a central function for printing
GUID strings. This change is a precursor for later patches which rely
on this logic.
Signed-off-by: Nicholas Vinson
Reviewed-by: Daniel Kiper
---
util/grub-probe.c | 30 +++---
1 file changed, 15
Linux partition GUID support.
Signed-off-by: Nicholas Vinson
---
grub-core/disk/ldm.c | 2 +-
grub-core/partmap/gpt.c | 4 ++--
include/grub/gpt_partition.h | 8
util/grub-install.c | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/grub-core
Falsefs UUID
True True True dev name
Signed-off-by: Nicholas Vinson
---
docs/grub.texi | 10 ++
util/grub-mkconfig.in | 3 +++
util/grub.d/10_linux.in | 18 +++---
3 files changed, 28 insertions(+), 3 dele
Add PARTUUID detection support grub-probe for MBR and GPT partition
schemes.
Signed-off-by: Nicholas Vinson
Reviewed-by: Daniel Kiper
---
util/grub-probe.c | 46 ++
1 file changed, 46 insertions(+)
diff --git a/util/grub-probe.c b/util/grub-probe.c
This patch updates grub.d/10_linux so that GRUB_DISABLE_LINUX_PARTUUID
is set to 'true' if the system has not specified otherwise.
Signed-off-by: Nicholas Vinson
---
docs/grub.texi | 5 +++--
util/grub.d/10_linux.in | 4
2 files changed, 7 insertions(+), 2 deletions(-
ig pass the filesystem
[GU]UID to the initramfs.
The goal of this patch set is to enable root=PARTUUID=xxx support in
grub-mkconfig, so that users don't have to manually edit
/etc/default/grub or grub.cfg, or create an initramfs for the sole
purpose of having a robust bootloader configuration
falsefs UUID
true true true dev name
Note: GRUB_DISABLE_LINUX_PARTUUID and GRUB_DISABLE_LINUX_UUID equate to
'false' when unset or set to any value other than 'true'.
GRUB_DISABLE_LINUX_PARTUUID defaults to '
Define print_gpt_guid(), so there is a central function for printing
GUID strings. This change is a precursor for later patches which rely
on this logic.
Signed-off-by: Nicholas Vinson
Reviewed-by: Daniel Kiper
---
util/grub-probe.c | 30 +++---
1 file changed, 15
Add PARTUUID detection support grub-probe for MBR and GPT partition
schemes.
Signed-off-by: Nicholas Vinson
Reviewed-by: Daniel Kiper
---
util/grub-probe.c | 46 ++
1 file changed, 46 insertions(+)
diff --git a/util/grub-probe.c b/util/grub-probe.c
Linux partition GUID support.
Signed-off-by: Nicholas Vinson
---
grub-core/disk/ldm.c | 2 +-
grub-core/partmap/gpt.c | 4 ++--
include/grub/gpt_partition.h | 8
util/grub-install.c | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/grub-core
nd the root Linux partitions from a rescue
media, even if the kernel has no associated initrd.
Maybe Jacob could propose a patch for that, as he did for gpt?
I have a patch for that. I just have not tested it yet.
Thanks,
Nicholas Vinson
for the first part, so we only need to add an option for
Extend partition UUID probing support in GRUB core to display pseudo partition
UUIDs for MBR (MSDOS) partitions.
Signed-off-by: Nicholas Vinson
---
grub-core/commands/probe.c | 43 +-
1 file changed, 29 insertions(+), 14 deletions(-)
diff --git a/grub-core
false. It also sets the default values for
GRUB_DISABLE_LINUX_PARTUUID in 10_linux.in and 20_linux_xen.in.
Both minor issues, but I do wonder if they should be addressed.
Thanks,
Nicholas Vinson
+
# XXX: should this be deprecated at some point?
if [ "x${G
a very short message instructing people to set the variable to
enable command paging. I believe this would handle both concerns.
Nicholas Vinson
Daniel
___
Grub-devel mailing list
Grub-devel@gnu.org
https://l
RB that would be perfect.
I don't see any issues. Looks good to me.
"Reviewed-by: Nicholas Vinson "
Thanks,
Nicholas Vinson
---
Changes in v3:
- Make the patch more consistent with the logic in commit 51be3372ec8
("templates: Update grub script template files"
GRUB to mount partition 2 as your initramfs
would be handling it.
Regards,
Nicholas Vinson
static inline int
grub_msdos_partition_is_empty (int type)
{
return (type == GRUB_PC_PARTITION_TYPE_NONE);
}
to allow booting from partitions of type 0 empty/none.
This should cause less
27;s a bug the
compiler maintainers should fix.
- Nicholas Vinson
the tree, people appear to have abandoned trying to figure out C's
syntax and instead of fixing it, chosen to cast a mutable pointer to an
immutable array (i.e. const char *) to (char **) in order to get *end
out corre
On 2/18/20 19:32, Peter Jones wrote:
On Tue, Feb 04, 2020 at 08:04:30PM -0500, Nicholas Vinson wrote:
On 2/4/20 16:02, Peter Jones wrote:
grub_strtoul() and grub_strtoull() don't make the /pointer/ to "end" be
const like normal implementations do, and as a result, at
On 12/6/21 17:25, Robbie Harwood wrote:
From: fluteze
In Fedora 35, and possibly earlier, grub would fail to configure with a
complaint about DejaVu being "not found" even though it was installed.
The DejaVu sans font search path is updated to reflect the
distribution's current install path.
S
On 12/7/21 15:04, Robbie Harwood wrote:
Nicholas Vinson writes:
Wouldn't it be better to modify configure.ac so the location could be
passed in instead of having one-off patches for alternate locations?
Something like --with-dejavu-font=/usr/share/fonts/dejavu-sans-fonts?
That would
On 12/8/21 12:58, Robbie Harwood wrote:
Nicholas Vinson writes:
On 12/7/21 15:04, Robbie Harwood wrote:
Nicholas Vinson writes:
Wouldn't it be better to modify configure.ac so the location could
be passed in instead of having one-off patches for alternate
locations? Something like
-
On 12/8/21 18:42, Robbie Harwood wrote:
Nicholas Vinson writes:
On 12/8/21 12:58, Robbie Harwood wrote:
Nicholas Vinson writes:
On 12/7/21 15:04, Robbie Harwood wrote:
Nicholas Vinson writes:
Wouldn't it be better to modify configure.ac so the location could
be passed in inste
sizeof(disk_sig), &disk_sig) == 0)
+ {
+ part_uuid = grub_xasprintf ("%08x-%02x",
+ grub_le_to_cpu32(disk_sig),
+ ptdisk->partition->ind
initramfs.
The goal of this patch set is to enable root=PARTUUID=xxx support in
grub-mkconfig, so that users don't have to manually edit
/etc/default/grub or grub.cfg, or create an initramfs for the sole
purpose of having a robust bootloader configuration for Linux.
Thanks,
Nicholas Vinson
Update grub-mkconfig.in and 10_linux.in to support grub-probe's new
partuuid target.
Signed-off-by: Nicholas Vinson
---
util/grub-mkconfig.in | 2 ++
util/grub.d/10_linux.in | 11 +--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/util/grub-mkconfig.in b/util
which would added to the runtime dependencies of grub-probe.
Signed-off-by: Nicholas Vinson
---
grub-core/partmap/gpt.c | 2 ++
grub-core/partmap/msdos.c | 12 --
include/grub/partition.h | 9 +++-
util/grub-probe.c | 58 +++
4
Thanks,
Nicholas Vinson
Signed-off-by: Nicholas Vinson
---
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
index 5a78513..dc9bab0 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -224,11 +224,11 @@ while [ "x$list" != "x" ] ; do
elif
which would added to the runtime dependencies of grub-probe.
Signed-off-by: Nicholas Vinson
---
util/grub-probe.c | 83 +--
1 file changed, 68 insertions(+), 15 deletions(-)
diff --git a/util/grub-probe.c b/util/grub-probe.c
index 8ac527d
ub.cfg, or create an initramfs for the sole
purpose of having a robust bootloader configuration for Linux.
Thanks,
Nicholas Vinson
Nicholas Vinson (2):
Add PARTUUID detection support to grub-probe
Update grub script template files
docs/grub.texi | 13
util/grub-mkconfig.in
Update grub-mkconfig.in and 10_linux.in to support grub-probe's new
partuuid target. Update grub.texi documenation.
Signed-off-by: Nicholas Vinson
---
docs/grub.texi | 13 +
util/grub-mkconfig.in | 3 +++
util/grub.d/10_linux.in | 13 +++--
3 files change
---
grub-core/script/yylex.l | 22 ++
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/grub-core/script/yylex.l b/grub-core/script/yylex.l
index 95b219170..3917904b4 100644
--- a/grub-core/script/yylex.l
+++ b/grub-core/script/yylex.l
@@ -31,10 +31,6 @@
#pragma G
From: Steve Kenton
---
grub-core/commands/probe.c | 59 ++
1 file changed, 59 insertions(+)
diff --git a/grub-core/commands/probe.c b/grub-core/commands/probe.c
index cf2793e1d..5dd1a6bc5 100644
--- a/grub-core/commands/probe.c
+++ b/grub-core/command
Update grub-mkconfig.in and 10_linux.in to support grub-probe's new
partuuid target. Update grub.texi documenation.
---
docs/grub.texi | 13 +
util/grub-mkconfig.in | 3 +++
util/grub.d/10_linux.in | 13 +++--
3 files changed, 27 insertions(+), 2 deletions(-)
diff
e initramfs.
The goal of this patch set is to enable root=PARTUUID=xxx support in
grub-mkconfig, so that users don't have to manually edit
/etc/default/grub or grub.cfg, or create an initramfs for the sole
purpose of having a robust bootloader configuration for Linux.
Thanks,
Nicholas Vinson
Ni
Add PARTUUID detection support grub-probe for MBR and GPT partition
schemes. The Linux kernel supports mounting the root filesystem by
Linux device name or by the Partition [GU]UID. GRUB's mkconfig,
however, currently only supports specifing the rootfs in the kernel
command-line by Linux device n
Optional patch. The goal is to make sure the probe command used in both
the grub core and the Linux userland use similar methods to read the
partition GUIDs. The patch also updates include/grub/gpt_partition.h so
the GUID type struct can be used for both the type GUID and the
partition GUID witho
To help clean the code and simplify the code in util/grub-probe.c, this
patch renames grub_gpt_part_type to grub_gpt_part_guid and updates
grub_gpt_partentry to use this type for both the partition type GUID
string and the partition GUID string entries.
This patch also moves the GUID printing logi
flex-2.6.4 has been released and is not affected by the same issues.
Thanks,
Nicholas Vinson
Changes from Patch v3:
- Removed flex-2.6.3 compatibility patch
- Removed Steve Kenton's patch
Changes from Patch v2:
- Added flex-2.6.3 compatibility patch
- Fixed a GPT parti
Add PARTUUID detection support grub-probe for MBR and GPT partition
schemes. The Linux kernel supports mounting the root filesystem by
Linux device name or by the Partition [GU]UID. GRUB's mkconfig,
however, currently only supports specifing the rootfs in the kernel
command-line by Linux device n
Update grub-mkconfig.in and 10_linux.in to support grub-probe's new
partuuid target. Update grub.texi documenation.
---
docs/grub.texi | 13 +
util/grub-mkconfig.in | 3 +++
util/grub.d/10_linux.in | 13 +++--
3 files changed, 27 insertions(+), 2 deletions(-)
diff
To help clean the code and simplify the code in util/grub-probe.c, this
patch renames grub_gpt_part_type to grub_gpt_part_guid and updates
grub_gpt_partentry to use this type for both the partition type GUID
string and the partition GUID string entries.
This patch also moves the GUID printing logi
. However, updating the microcode via initramfs allows the
microcode to be updated independently of kernel updates. However, there
doesn't seem to be any standard naming scheme for the microcode
initramfs, so I chose not to include that change in this patch set.
Thanks,
Nicholas Vinson
[1]
Update grub-mkconfig.in and 10_linux.in to support grub-probe's new
partuuid target. Update grub.texi documenation.
---
docs/grub.texi | 9 +
util/grub-mkconfig.in | 3 +++
util/grub.d/10_linux.in | 12 +---
3 files changed, 21 insertions(+), 3 deletions(-)
diff --gi
Add PARTUUID detection support grub-probe for MBR and GPT partition
schemes. The Linux kernel supports mounting the root filesystem by
Linux device name or by the Partition [GU]UID. GRUB's mkconfig,
however, currently only supports specifing the rootfs in the kernel
command-line by Linux device n
Define print_gpt_guid(), so there is a central function for printing
GUID strings. This change is a precursor for later patches which rely
on this logic.
Signed-off-by: Nicholas Vinson
---
util/grub-probe.c | 30 +++---
1 file changed, 15 insertions(+), 15 deletions
ve to manually edit
/etc/default/grub or grub.cfg, or create an initramfs for the sole
purpose of having a robust bootloader configuration for Linux.
Thanks,
Nicholas Vinson
Nicholas Vinson (4):
Centralize guid prints
Update grub_gpt_partentry
Add PARTUUID detection support to grub-probe
Update grub-mkconfig.in and 10_linux.in to support grub-probe's new
partuuid target. Update grub.texi documenation.
Signed-off-by: Nicholas Vinson
---
docs/grub.texi | 9 +
util/grub-mkconfig.in | 3 +++
util/grub.d/10_linux.in | 12 +---
3 files change
Linux partition GUID support.
Signed-off-by: Nicholas Vinson
---
grub-core/disk/ldm.c | 2 +-
grub-core/partmap/gpt.c | 4 ++--
include/grub/gpt_partition.h | 8
util/grub-install.c | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/grub-core
Add PARTUUID detection support grub-probe for MBR and GPT partition
schemes.
Signed-off-by: Nicholas Vinson
---
util/grub-probe.c | 51 +++
1 file changed, 51 insertions(+)
diff --git a/util/grub-probe.c b/util/grub-probe.c
index 21cb80fbe
Linux partition GUID support.
Signed-off-by: Nicholas Vinson
---
grub-core/disk/ldm.c | 2 +-
grub-core/partmap/gpt.c | 4 ++--
include/grub/gpt_partition.h | 8
util/grub-install.c | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/grub-core
dit
/etc/default/grub or grub.cfg, or create an initramfs for the sole
purpose of having a robust bootloader configuration for Linux.
Thanks,
Nicholas Vinson
Nicholas Vinson (4):
Centralize guid prints
Update grub_gpt_partentry
Add PARTUUID detection support to grub-probe
Update grub script tem
Define print_gpt_guid(), so there is a central function for printing
GUID strings. This change is a precursor for later patches which rely
on this logic.
Signed-off-by: Nicholas Vinson
---
util/grub-probe.c | 30 +++---
1 file changed, 15 insertions(+), 15 deletions
Update grub-mkconfig.in and 10_linux.in to support grub-probe's new
partuuid target. Update grub.texi documenation.
Signed-off-by: Nicholas Vinson
---
docs/grub.texi | 9 +
util/grub-mkconfig.in | 3 +++
util/grub.d/10_linux.in | 12 +---
3 files change
Add PARTUUID detection support grub-probe for MBR and GPT partition
schemes.
Signed-off-by: Nicholas Vinson
---
util/grub-probe.c | 48
1 file changed, 48 insertions(+)
diff --git a/util/grub-probe.c b/util/grub-probe.c
index 21cb80fbe
Add PARTUUID detection support grub-probe for MBR and GPT partition
schemes.
Signed-off-by: Nicholas Vinson
---
util/grub-probe.c | 46 ++
1 file changed, 46 insertions(+)
diff --git a/util/grub-probe.c b/util/grub-probe.c
index 21cb80fbe..8a013548a
Define print_gpt_guid(), so there is a central function for printing
GUID strings. This change is a precursor for later patches which rely
on this logic.
Signed-off-by: Nicholas Vinson
Reviewed-by: Daniel Kiper
---
util/grub-probe.c | 30 +++---
1 file changed, 15
g pass the filesystem
[GU]UID to the initramfs.
The goal of this patch set is to enable root=PARTUUID=xxx support in
grub-mkconfig, so that users don't have to manually edit
/etc/default/grub or grub.cfg, or create an initramfs for the sole
purpose of having a robust bootloader configuration
Update grub-mkconfig.in and 10_linux.in to support grub-probe's new
partuuid target. Update grub.texi documenation.
Signed-off-by: Nicholas Vinson
---
docs/grub.texi | 9 +
util/grub-mkconfig.in | 3 +++
util/grub.d/10_linux.in | 12 +---
3 files change
Linux partition GUID support.
Signed-off-by: Nicholas Vinson
Reviewed-by: Daniel Kiper
---
grub-core/disk/ldm.c | 2 +-
grub-core/partmap/gpt.c | 4 ++--
include/grub/gpt_partition.h | 8
util/grub-install.c | 2 +-
4 files changed, 8 insertions(+), 8 deletions
Add PARTUUID detection support grub-probe for MBR and GPT partition
schemes.
Signed-off-by: Nicholas Vinson
---
util/grub-probe.c | 46 ++
1 file changed, 46 insertions(+)
diff --git a/util/grub-probe.c b/util/grub-probe.c
index 21cb80fbe..8a013548a
Previous version of configure.ac would error out when
--enable-stack-protector was given and a selected GRUB platform did not
support the flag. The new behavior is to warn that the flag is not
supported and force disable it for that platform.
Signed-off-by: Nicholas Vinson
---
configure.ac | 3
On 6/24/22 12:28, Daniel Kiper wrote:
Adding Chris...
On Tue, Jun 14, 2022 at 06:19:00PM -0400, Nicholas Vinson wrote:
Previous version of configure.ac would error out when
--enable-stack-protector was given and a selected GRUB platform did not
support the flag. The new behavior is to warn
On 6/24/22 21:11, Glenn Washburn wrote:
On Fri, 24 Jun 2022 14:12:44 -0400
Nicholas Vinson wrote:
On 6/24/22 12:28, Daniel Kiper wrote:
Adding Chris...
On Tue, Jun 14, 2022 at 06:19:00PM -0400, Nicholas Vinson wrote:
Previous version of configure.ac would error out when
--enable-stack
e build
wrapper script. If the second list is not properly maintained it could
mistakenly disable SSP for a platform that later gained support for it.
Signed-off-by: Nicholas Vinson
---
configure.ac | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/configure.ac
On 7/7/22 09:17, Daniel Kiper wrote:
On Wed, Jul 06, 2022 at 03:25:58AM -0400, Nicholas Vinson wrote:
Introduce ERROR_PLATFORM_NOT_SUPPORT_SSP environment variable to treat
the '--enable-stack-protector is only supported on EFI platforms'
message as a warning instead of an
e build
wrapper script. If the second list is not properly maintained it could
mistakenly disable SSP for a platform that later gained support for it.
Signed-off-by: Nicholas Vinson
---
configure.ac | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure
result[resultpos++] = values[2] << 4 | values[3];
+
+ /* Offset the increment that's coming in via the loop
increment. */
+ inpos--;
+
+ break;
+ }
+
+ default:
+ ret = grub_error (GRU
each image due
to Clang creating a '.interp' section in the ELF reference image.
This patch corrects that issue by updating the objcopy calls so the '.interp'
section is not included when extracting the code from the ELF reference images.
Nicholas Vinson (1):
gentpl.py: Re
Whn building .img files, a .interp section from the .image files will
sometimes be copied into the .img file. This additional section pushes
the .img file beyond the 512-byte limit and causes grub-install to fail
to run for i386-pc platforms.
Signed-off-by: Nicholas Vinson
---
gentpl.py | 2
On 9/11/23 07:15, darkpenguin wrote:
Hmmm, this is actually a good idea. Grub does determine the boot device
by analyzing fstab, doesn't it? Why does it then use either UUIDs or
device paths, based on a configuration in a separate file, instead of
simply reusing exactly what it has found specifi
On 9/12/23 03:42, darkpenguin wrote:
On 12/09/23 06:54, Oskari Pirhonen wrote:
On Mon, Sep 11, 2023 at 06:48:58 +, darkpenguin wrote:
The decision to reuse GRUB_DISABLE_LINUX_UUID was because:
1) This is more of an addition on top of UUID rather than "disabling"
it, it still uses UUID inte
72 matches
Mail list logo