Arvin Schnell changed bug 946673
What Removed Added
CC   puzel@suse.com
Flags   needinfo?(puzel@suse.com)

Comment # 7 on bug 946673 from
When parted detects that the GPT does not use the complete disk libstorage
will fix it before the first partition change on the disk.

Unfortunately parted can only fix the GPT in interactive mode and the
class in libstorage to execute external commands cannot cope with
interactive programs. As a simple workaround libstorage runs 'yes Fix |
parted --pretend-input-tty ...'.

This simple workaround fails when additionally the second table is broken.
In that case parted needs input from the user twice, once "OK" to repair
the second table and once "Fix" to make GPT cover the complete disk.

So an improved workaround is to use 'echo -n "OK\\nFix" | parted
--pretend-input-tty ...'.

That all looks very fragile. Petr, would it be possible to add explicit
commands to parted to repair and/or fix the GPT to avoid the interactive
mode completely?


You are receiving this mail because: