~xnox/grub:focal-fix-postinst-empty-device

Last commit made on 2020-09-28
Get this branch:
git clone -b focal-fix-postinst-empty-device https://git.launchpad.net/~xnox/grub
Only Dimitri John Ledkov can upload to this branch. If you are Dimitri John Ledkov please log in for upload directions.

Branch merges

Branch information

Name:
focal-fix-postinst-empty-device
Repository:
lp:~xnox/grub

Recent commits

d57b91b... by Dimitri John Ledkov

postinst.in, grub-multi-install: fix logic of skipping installing onto any device, if one chose to not install bootloader on any device. LP: #1896608

(cherry picked from commit e07b23ad87b50924af36ac86d1dddc3671b4155b)

dfa7f27... by Julian Andres Klode

releasing package grub2 version 2.04-1ubuntu26.5

e07a43a... by Julian Andres Klode

change version to 2.04-1ubuntu26.5 (UNRELEASED)
ubuntu-linuxefi-arm64.patch: Fix build on armhf (LP: #1862279)

277b712... by Julian Andres Klode

Cherry-pick back parts of "Load arm with SB enabled."

These parts got lost in our 2.04 rebase, let's add them back.

Pick (grub_efi_physical_address_t)(grub_efi_uintn_t) cast from
fedora-34 instead, it seems to cause compilation error on armhf
to not do the (grub_efi_uintn_t) cast first.

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1862279
Origin: vendor, https://github.com/rhboot/grub2/commit/2786ab864cf00c15123320671f653e9a36ba12b4
Patch-Name: ubuntu-linuxefi-arm64.patch

2bbb537... by Dimitri John Ledkov

releasing package grub2 version 2.04-1ubuntu26.4

f84bccb... by Dimitri John Ledkov

grub-install: cherry-pick patch from grub-devel to make grub-install fault tolerant. Create backup of files in /boot/grub, and restore them on failure to complete grub-install. LP: #1891680

0e0bdce... by Dimitri John Ledkov

cherry-picked '0843387b grub-install: Add backup and restore' into 'patched-focal'

229c7f8... by Dimitri John Ledkov

grub-install: Add backup and restore

Refactor clean_grub_dir to create a backup of all the files, instead
of just irrevocably removing them as the first action. If available,
register on_exit handle to restore the backup if any errors occur, or
remove the backup if everything was successful. If on_exit is not
available, the backup remains on disk for manual recovery.

This allows safer upgrades of MBR & modules, such that
modules/images/fonts/translations are consistent with MBR in case of
errors. For example accidental grub-install /dev/non-existent-disk
currently clobbers and upgrades modules in /boot/grub, despite not
actually updating any MBR. This increases peak disk-usage slightly, by
requiring temporarily twice the disk space to complete grub-install.

Also add modinfo.sh to the cleanup/backup/restore codepath, to ensure
it is also cleaned / backed up / restored.

Signed-off-by: Dimitri John Ledkov <email address hidden>

Patch-Name: grub-install-backup-and-restore.patch

6f69199... by Dimitri John Ledkov

grub-multi-install: fix non-interactive failures for grub-efi like it was fixed in postinst for grub-pc.

eb660e6... by Dimitri John Ledkov

postinst.in: do not attempt to call grub-install upon fresh install of grub-pc because it it a job of installers to do that after fresh install.