~akashraoind-deactivatedaccount/grub:ubuntu-backup-and-restore-v2

Last commit made on 2020-09-01
Get this branch:
git clone -b ubuntu-backup-and-restore-v2 https://git.launchpad.net/~akashraoind-deactivatedaccount/grub
Only akash rao can upload to this branch. If you are akash rao please log in for upload directions.

Branch merges

Branch information

Name:
ubuntu-backup-and-restore-v2
Repository:
lp:~akashraoind-deactivatedaccount/grub

Recent commits

5edc061... by Dimitri John Ledkov

update debian/patches directory

220fa5a... by Dimitri John Ledkov

postinst.in: do not exit successfully in non-interactive mode

Do not exit successfully when failing to show critical
grub-pc/install_devices_failed and grub-pc/install_devices_empty
prompts in non-interactive mode. This enables surfacing upgrade errors
to the users and/or automation.

LP: #1891680

c4da9f5... by Dimitri John Ledkov

cherry-picked '67b1735c grub-install: Add backup and restore' into 'patched-ubuntu-backup-and-restore'

0843387... 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

f783a1b... by Julian Andres Klode

releasing package grub2 version 2.04-1ubuntu28

fe91846... by Julian Andres Klode

Ensure that grub-multi-install can always find templates

We'll just install a templates file for grub-common, and then
use db_x_loadtemplatefile to load the templates if invoked from
another package.

LP: #1879948

aa97b48... by Julian Andres Klode

merge back real 26.2 changelog entries

Thanks to the apw for pointing out that the changelog differed,
I did not realize and thought the git branch was correct :/

d690acd... by Julian Andres Klode

releasing package grub2 version 2.04-1ubuntu27

4fc33cb... by Julian Andres Klode

change version to 2.04-1ubuntu27 (UNRELEASED)
debian/patches/ubuntu-flavour-order.patch:
- Add a (hidden) GRUB_FLAVOUR_ORDER setting that can mark certain kernel
flavours as preferred, and specify an order between those preferred
flavours (LP: #1882663)
debian/patches/ubuntu-zfs-enhance-support.patch:
- Use version_find_latest for ordering kernels, so it also supports
the GRUB_FLAVOUR_ORDER setting.
debian/patches/ubuntu-dont-verify-loopback-images.patch:
- disk/loopback: Don't verify loopback images (LP: #1878541),
Thanks to Chris Coulson for the patch
debian/patches/ubuntu-recovery-dis_ucode_ldr.patch
- Pass dis_ucode_ldr to kernel for recovery mode (LP: #1831789)
debian/patches/ubuntu-add-initrd-less-boot-fallback.patch:
- Merge changes from xnox to fix multiple initrds support (LP: #1878705)
debian/patches/ubuntu-clear-invalid-initrd-spacing.patch:
- Remove, no longer needed thanks to xnox's patch

398371c... by Julian Andres Klode

Pass dis_ucode_ldr to kernel for recovery mode

In case of a botched microcode update, this allows people to
easily roll back.

It will of course break in the more unlikely event that you are
missing a microcode update in your firmware that is needed to boot
the system, but editing the entry to remove an option is easier than
having to figure out the option and add it.

LP: #1831789
Patch-Name: ubuntu-recovery-dis_ucode_ldr.patch