[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #57652] minix filesystem detection too optimistic
From: |
Stefan Seyfried |
Subject: |
[bug #57652] minix filesystem detection too optimistic |
Date: |
Wed, 22 Jan 2020 05:24:56 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36 |
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/