Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • T tails
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 916
    • Issues 916
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • tails
  • tails
  • Issues
  • #5940
Closed
Open
Created Jul 18, 2013 by import-from-Redmine@import-from-Redmine

Save more disk space at build time

Originally created by Tails on #5940 (Redmine)

{{toc}}

The following can only be implemented once we switch to live-build 3.x (#5691 (closed)). So let’s wait.

switch to live-build hooks

live-build 3.x ships a few interesting space-saving hooks in share/hooks, such as one that removes GNOME icon cache, another one that removes compiled Python .pyc files, and one that removes /tmp/* at the end of the chroot_local-hooks stage.

Once we use this version of live-build, we can remove our own implementation of this from config/chroot_local-hooks/98-remove_unwanted_files.

files only needed at build time

We’re currently using chroot_local-includes as a way to pass files from the build host to the build chroot. As a result, released images contain many files (mostly in /usr/) that are needed at build time but useless at runtime.

live-build 3.x bind mounts (read-only) the build configuration directory (config) inside the chroot (onto /root/config) while the chroot hooks are running.

Edited May 15, 2020 by import-from-Redmine
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking