Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
Commit 588744d0dc
caused grub-mkconfig
no longer to be forgiving of trailing spaces on grub-probe output
lines, which among other things means that util/grub.d/10_linux.in
no longer detects LVM. To fix this, make grub-probe's output
delimiting more consistent. As a bonus, this improves the coverage
of the -0 option.
Fixes Debian bug #735935.
* grub-core/disk/cryptodisk.c
(grub_util_cryptodisk_get_abstraction): Add a user-data argument.
* grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
Likewise.
* include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
Update prototype.
* include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
* util/grub-install.c (push_partmap_module, push_cryptodisk_module,
probe_mods): Adjust for extra user-data arguments.
* util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
probe_abstraction): Use configured delimiter. Update callers.
This commit is contained in:
parent
9b35fe819f
commit
24024dac7f
7 changed files with 74 additions and 41 deletions
|
@ -145,7 +145,8 @@ grub_cryptodisk_cheat_insert (grub_cryptodisk_t newdev, const char *name,
|
|||
grub_disk_t source, const char *cheat);
|
||||
void
|
||||
grub_util_cryptodisk_get_abstraction (grub_disk_t disk,
|
||||
void (*cb) (const char *val));
|
||||
void (*cb) (const char *val, void *data),
|
||||
void *data);
|
||||
|
||||
char *
|
||||
grub_util_get_geli_uuid (const char *dev);
|
||||
|
|
|
@ -202,7 +202,8 @@ grub_diskfilter_get_pv_from_disk (grub_disk_t disk,
|
|||
struct grub_diskfilter_vg **vg);
|
||||
void
|
||||
grub_diskfilter_get_partmap (grub_disk_t disk,
|
||||
void (*cb) (const char *val));
|
||||
void (*cb) (const char *val, void *data),
|
||||
void *data);
|
||||
#endif
|
||||
|
||||
#endif /* ! GRUB_RAID_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue