Bug#983506: grub2-common: grub-install doesn't install files to /boot/grub/i386-pc

Vratislav Blazek vratislav.blazek at solarwinds.com
Thu Feb 25 09:58:57 GMT 2021


Package: grub2-common
Version: 2.02+dfsg1-20+deb10u3
Severity: important

Dear Maintainer,

   * We use grub-install while preparing a new system in chrooted environment.
   
   * After upgrade from 2.02+dfsg1-20+deb10u2 to 2.02+dfsg1-20+deb10u3, grub-install stopped to install files in /boot/grub/i386-pc dir.
   
   * Command we use:
   
       chroot "${INSTALL_DIR}" grub-install /tmp/dummy_nonexistent
   
   * Working workaround - copy files explicitly:
   
       chroot "${INSTALL_DIR}" "mkdir -p /boot/grub/i386-pc/" || die
       chroot "${INSTALL_DIR}" "cp /usr/lib/grub/i386-pc/*.mod /boot/grub/i386-pc/" || die
       chroot "${INSTALL_DIR}" "cp /usr/lib/grub/i386-pc/*.lst /boot/grub/i386-pc/" || die
       chroot "${INSTALL_DIR}" "cp /usr/lib/grub/i386-pc/efiemu*.o /boot/grub/i386-pc/" || die
       chroot "${INSTALL_DIR}" "cp /usr/lib/grub/i386-pc/modinfo.sh /boot/grub/i386-pc/" || die


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sda1 / ext4 rw,relatime,errors=remount-ro 0 0
/dev/sda4 /tmp ext4 rw,relatime 0 0
/dev/sdb1 /var ext4 rw,relatime 0 0
/dev/sda2 /usr/local ext4 rw,relatime 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/grub.cfg

set default=0
set timeout=0
set timeout_style=hidden

menuentry '<our-product-name> on Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os 'gnulinux-simple' {
        insmod gzio
        echo    'Loading Linux 4.19.0-14-amd64 ...'
        linux   /boot/vmlinuz-4.19.0-14-amd64 root=UUID=42424242-4242-4242-4242-000000000001 ro net.ifnames=0 ipv6.disable=1 apparmor=0 module_blacklist=floppy,i2c_piix4  console=tty9 nomodeset quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-4.19.0-14-amd64
}
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
ls: cannot access '/dev/disk/by-id': No such file or directory
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Feb 24 07:04 42424242-4242-4242-4242-000000000001 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 24 07:04 42424242-4242-4242-4242-000000000002 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 24 07:04 42424242-4242-4242-4242-000000000003 -> ../../sda3
lrwxrwxrwx 1 root root 10 Feb 24 07:04 42424242-4242-4242-4242-000000000004 -> ../../sda4
lrwxrwxrwx 1 root root 10 Feb 24 07:04 42424242-4242-4242-4242-000000000005 -> ../../sdb1
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 10.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-14-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grub2-common depends on:
ii  dpkg                1.19.7
ii  grub-common         2.02+dfsg1-20+deb10u3
ii  libc6               2.28-10
ii  libdevmapper1.02.1  2:1.02.155-3
ii  libefiboot1         37-2+deb10u1
ii  libefivar1          37-2+deb10u1
ii  liblzma5            5.2.4-1

grub2-common recommends no packages.

grub2-common suggests no packages.

-- no debconf information



More information about the Pkg-grub-devel mailing list