Hi Toomas, > According to Grub 2 (aka grub_pc) documentation > http://www.dedoimedo.com/computers/grub-2.html : > > > Critical! GRUB 2 uses PARTITION notation that starts with 1 and not 0 > > like GRUB legacy! This is terribly important to remember! > [...]
Thank you for the heads up! > > I think device2grub needs a flag which would inhibit the decrement of > partition number in case it is used in conjunction with grub_pc and > scripts/GRUB_PC/10-setup needs to make use of this flag. > > I also think that this should be fixed before squeeze is released (do I > need to file a bug report into Debian BTS to make it official?) because > grub_pc is the default bootloader for squeeze and this bug has potential > of corrupting unsuspecting people's data if they install dual-boot > systems. > On the one hand, yes, please file a bug report! This is almost the only way we could get this into squeeze given that we are in very deep freeze. Well, given that this is considered "documentation only" for FAI, it could actually be doable without a bugreport, but anyway, a bug report would be the safe bet. For the actual solution, however, I wonder whether we couldn't actually solve this by completely getting rid of device2grub. If you take a look at the latest experimental builds then you'll see that GRUB_PC/10-setup doesn't even use it anymore. Could you maybe give a try to this updated example script? Thanks a lot, Michael
pgptvRIv7vuAt.pgp
Description: PGP signature
