Thomas Rast got my attention on this thread on the git developers mailing list .
According to my understanding of Peff's description, the problem could be easily fixed if the programming of the configuration analyzer were not so ad-hoc. After analyzing the file, the result is a structure that contains configuration parameters, but not one of the original file structure. Since the partition structure information is not available to callers, the installation setup code cannot know if there is an empty partition with the right header. Also, deleting empty sections is a bit more complicated, because they may contain important comments that should not be automatically deleted just because the last functional part of the section has been deleted.
Output:
- No, this is not the expected behavior;
- Yes, this is a mistake.
This kind of programming is tedious, but simple, so I'll see if I can handle the fix.
source share