[Git-commits] [grml/grml-debootstrap] aaaab8: Verify that GRUB configuration points to valid blo...

Michael Prokop noreply at github.com
Fri May 9 11:42:44 CEST 2025


  Branch: refs/heads/mika/valid-grub-target
  Home:   https://github.com/grml/grml-debootstrap
  Commit: aaaab84e8d1b813b9070944781a338c7b90df166
      https://github.com/grml/grml-debootstrap/commit/aaaab84e8d1b813b9070944781a338c7b90df166
  Author: Michael Prokop <mika at grml.org>
  Date:   2025-05-09 (Fri, 09 May 2025)

  Changed paths:
    M grml-debootstrap

  Log Message:
  -----------
  Verify that GRUB configuration points to valid block device

One can invoke grml-debootstrap with command line options like:

  --grub /dev/

or:

  --grub /dev/fail

... none of those will warn or abort, while it ends up within GRUB's
install_devices debconf configuration.

We also invoke `grub-install --no-floppy --target=i386-pc "${device}"`,
which fails hard with "${device}" being set to /dev  or /dev/fail
as mentioned above.

Avoid any such misusage, by validating that the GRUB device
at least points to a valid block device.

See https://github.com/grml/grml-debootstrap/issues/339



To unsubscribe from these emails, change your notification settings at https://github.com/grml/grml-debootstrap/settings/notifications


More information about the Git-commits mailing list