Follow-up Comment #1, bug #57652 (project grub):

Adding a reproducer script.
This does the following:

* create a filesystem image file sized 1GB
* create a partition on the image and an ext3 file system in it
* mount the partition
* debootstrap debian stable into the mountpoint
* install grub2 into the debian image (from package, here you could install
your self-built grub2...)
* check for the number of free inodes
* create as many dummy files to exactly hit a bad magic number
* unmount / mount to update the superblock
* chroot => grub-install

grub-install will fail.

it is called as root:

# bash ./grub-bug-57652-reproduce.sh /space/grub.img /mnt

/space should have 1GB of free space of course :-)

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57652>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


Reply via email to