removed file lists all files including their parent directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu system image |
New
|
Undecided
|
Unassigned |
Bug Description
The top-level "removed" file added to the .tar.xz system-images list all files, one per line, that should be removed prior to applying the new system image.
However, currently that file can list both a directory *and* all the files in that directory. Here's the relevant snippet of the removed file:
system/
system/
system/
system/
system/
system/
system/
system/
system/
The first entry ('system/
The second entry ('system/
Now, every subsequent file below 'system/
We could get the upgrader to reverse-sort this file and process it backwards to avoid the issue, but to keep the upgrader as simple as possible we should handle this logic server-side and either:
1) Specify 'system/
In the scenario above, that would be sufficient since, in fact, every file relating to perl 5.20.0 should indeed be deleted. This makes the removed file a lot smaller of course as it only needs 1 line rather than the current 452 lines.
2) Specify every file within a directory that should be deleted, but *not* the directory name itself if the directory still contains files that should be retained.
As an aside, it would be good to add a trailing slash to directories in this file to allow the upgrader to check if the file type has changed (ideally, we'd encode all the permission bits). We never expect the removed file and the filesystem to get out of sync but...