Change 'grub-mkrescue' to honor the 'GRUB_FAT_SERIAL_NUMBER' environment variable. That way, the caller can specify a fixed serial number (instead of the randomly chosen one) to create EFI images (the 'efi.img' file) that are reproducible bit-for-bit. Patch by Ludovic Courtès . Mangled (for GRUB 2.04) by Tobias Geerinckx-Rice . --- grub-2.04/util/grub-mkrescue.c 2019-05-20 13:01:11.000000000 +0200 +++ grub-2.04/util/grub-mkrescue.c 2019-07-08 23:57:36.912104652 +0200 @@ -809,8 +809,15 @@ free (efidir_efi_boot); efiimgfat = grub_util_path_concat (2, iso9660_dir, "efi.img"); - rv = grub_util_exec ((const char * []) { "mformat", "-C", "-f", "2880", "-L", "16", "-i", - efiimgfat, "::", NULL }); + + const char *fat_serial_number = getenv ("GRUB_FAT_SERIAL_NUMBER"); + const char *mformat_args[] = + { "mformat", "-C", "-f", "2880", "-L", "16", + fat_serial_number != NULL ? "-N" : "-C", + fat_serial_number != NULL ? fat_serial_number : "-C", + "-i", efiimgfat, "::", NULL }; + + rv = grub_util_exec (mformat_args); if (rv != 0) grub_util_error ("`%s` invocation failed\n", "mformat"); rv = grub_util_exec ((const char * []) { "mcopy", "-s", "-i", efiimgfat, efidir_efi, "::/", NULL }); f='/guix/commit/gnu/packages/kde.scm?id=dc01978288318a8155e2e2657be9b278a754ebac'>commitdiff
path: root/gnu/packages/2021-09-12Thank Christine under her updated name.Christine Lemmer-Webber owmsg=1'>Expand)Author 2019-04-04gnu: Add kdeconnect....Efraim Flashner 2019-02-14gnu: Restore copyright header....Marius Bakke 2019-02-12gnu: Move KDE Plasma components to separate module....Marius Bakke 2019-01-28gnu: Krita: Update to 4.1.7.101....Björn Höfling 2019-01-26gnu: libksysguard: Use INVOKE....Ricardo Wurmus