Bug #11211

Don't include files from /usr/share/mime in IUKs if their only modification is mtime

Added by intrigeri 2016-03-09 16:33:40 . Updated 2019-08-31 16:01:04 .

Status:
Duplicate
Priority:
Low
Assignee:
Category:
Target version:
Start date:
2016-03-09
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Upgrader
Deliverable for:

Description

On Feature #6425 we started looking this way. I suspect that more, if not all, files in /usr also could be skipped.


Subtasks


Related issues

Related to Tails - Feature #6425: Do not save some large files whose only modification is mtime, for smaller IUK Resolved 2013-11-16
Related to Tails - Feature #11345: Ship less unneeded cache/generated files in the ISO and IUK Duplicate 2016-04-13
Is duplicate of Tails - Feature #15290: Reduce IUK size Resolved 2016-04-13

History

#1 Updated by intrigeri 2016-03-09 16:33:55

  • related to Feature #6425: Do not save some large files whose only modification is mtime, for smaller IUK added

#2 Updated by intrigeri 2016-03-09 16:37:00

My first try will be to simply make config/chroot_local-hooks/99-set_mtimes touch files recursively in /usr, and then we’ll see if/how it breaks stuff. It may be that we can’t touch mtimes there, but instead should teach the IUK generation process to run rsync multiple times, with different options depending on the source directory.

#3 Updated by intrigeri 2016-11-09 07:19:52

This might cause breakage due to https://lists.debian.org/debian-devel/2016/11/msg00328.html.

#4 Updated by intrigeri 2017-09-27 09:23:53

  • related to Feature #11345: Ship less unneeded cache/generated files in the ISO and IUK added

#5 Updated by intrigeri 2017-09-27 09:32:03

  • Subject changed from Don't include files from /usr in IUKs if their only modification is mtime to Don't include files from /usr/share/mime in IUKs if their only modification is mtime
  • Priority changed from Normal to Low
  • Type of work changed from Test to Code

Looking at Tails_amd64_3.2~rc1_to_3.2.iuk, the only large stuff that might be relevant here is /usr/share/mime/application (1.5M). So I don’t think we’re looking at big savings here, and the big hammer approach I’ve suggested above seems to be too risk to be worth it => let’s try the config/chroot_local-hooks/99-set_mtimes trick for /usr/share/mime/application/* and be done with it.

That stuff probably compresses pretty well with SquashFS, so the cost/benefit of working further on this is pretty low. So I’ll keep this on my low-priority plate for a rainy day if I’m bored, but anyone should feel free to steal it from me :)

#6 Updated by anonym 2018-02-05 16:28:34

#7 Updated by intrigeri 2019-03-07 15:42:05

  • Assignee deleted (intrigeri)

#8 Updated by intrigeri 2019-08-31 16:01:05

  • Status changed from Confirmed to Duplicate
  • Parent task deleted (Feature #15290)

#9 Updated by intrigeri 2019-08-31 16:01:24