Bug#542165: grub-common: grub-probe kind of mishandles dm-crypt partitions

Vladimir 'φ-coder/phcoder' Serbinenko phcoder at gmail.com
Sat May 1 17:26:21 UTC 2010


Marc Haber wrote:
> Hi,
>
> during the half year that this bug has been rotting away unanswered in
> the BTS, it has matured to be a showstopper.
>
> On Tue, Aug 18, 2009 at 09:40:08AM +0200, Marc Haber wrote:
>   
>> my /boot is on a crypted dm-crypt partition. I know I can't boot from
>> there, but /boot is regularly unisoned to an USB stick which then
>> _can_ boot.
>>
>> When I run update-grub on the crypted /boot, I get a number of
>> grub-probe: error: no mapping exists for boot'
>> errors, but that's not actually an error, the generated grub.cfg is
>> just fine.
>>     
>
> In the current grub version (1.98-1), update-grub aborts with this
> error message, caused by /etc/grub.d/00_header calling grub-probe via
> prepare_grub_to_access_device in order to find locales and translations.
>
> Frankly, I don't care about a translated boot manager which is able
> to show Umlauts, I am perfectly satisfied with an english-only
> bootload. I _do_ actually care about a boot manager which is able to
> create configuration which will actually boot my system.
>
> I solved the issue by commenting out the stanza starting with "Gettext
> variables and module" in /etc/grub.d/00_header, but would like to have
> a possibility of grub handling my special case, for example by being
> able to override the grub-probe calls with a hard-coded value which I
> know being correct. 
We already offer such possibility. Files in etc/grub.d/ are
configuration files like any other and modifiing then is a correct way
of handling such special usecases.
> grub-probe doesn't have a chance to auto-detect
> the actual boot device on my system, I just need a original directory
> which I can then unison to the actual boot device.
>
> $ grep /boot /proc/mounts
> /dev/mapper/boot /boot ext3 rw,noatime,nodiratime,errors=remount-ro,commit=5,data=writeback 0 0
> $ sudo dmsetup table | grep ^boot
> boot: 0 2096120 crypt aes-cbc-essiv:sha256 00000000000000000000000000000000 0 254:5 1032
> $ sudo dmsetup ls | grep '(254, 5)'
> swivel-c_boot   (254, 5)
> $
>
> Greetings
> Marc
>
>
>
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel
>
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 293 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20100501/c6a27535/attachment.pgp>


More information about the Pkg-grub-devel mailing list