livecd-rootfs: .pyc files stripped from desktop ISO livefs, makes python startup slower
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
livecd-rootfs (Ubuntu) |
Fix Released
|
Medium
|
Canonical Desktop Team |
Bug Description
It seems we've had code in livecd-rootfs for roughly forever to strip .pyc files out of the squashfs included on desktop images. There is an override to skip this for server and cloud images, but we discovered this recently because the missing .pyc files on ubuntu-core images causes very long start-up times for python apps on some armhf systems.
So the question is, is this still a sensible optimization on Ubuntu Desktop images? It was done at a time when space was tight; that's much less of a concern now than it was.
If this does still make sense for Desktop, we should probably at least invert the logic to make this opt-in rather than opt-out so that new image types on ARM don't get caught out with the problem.
Related branches
- Steve Langasek: Approve
- Ubuntu Core Development Team: Pending requested
-
Diff: 32 lines (+10/-4)2 files modifieddebian/changelog (+8/-0)
live-build/auto/config (+2/-4)
Changed in livecd-rootfs (Ubuntu): | |
assignee: | nobody → Canonical Desktop Team (canonical-desktop-team) |
Changed in livecd-rootfs (Ubuntu): | |
importance: | Undecided → Medium |
Changed in livecd-rootfs (Ubuntu): | |
status: | New → Fix Committed |
willcooke pointed me to this bug.
Is it possible to have a build with version of livecd-rootfs which doesn't run this hook, so that we can see how much space we're talking about?
I think it's possible to do this in a PPA, but I'm not actually sure how to go about that.