Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuff /usr/share/licenses into a squashfs #723

Merged
merged 1 commit into from
Feb 13, 2020
Merged

Conversation

iliana
Copy link
Contributor

@iliana iliana commented Feb 12, 2020

Issue #, if available: n/a

Description of changes:
Makes the contents of /usr/share/licenses a squashfs on disk that is auto-mounted at boot.

Tested on an aws-k8s AMI, including the changes from #719 — without hardlinking files:

bash-5.0# du -sh /usr/share/licenses/ 
6.9M    /usr/share/licenses/

After hardlinking:

bash-5.0# du -sh /usr/share/licenses/
4.4M    /usr/share/licenses/

Size of the squashfs:

bash-5.0# ls -lh /usr/share/thar/licenses.squashfs 
-rw-r--r-- 1 root root 320K Feb 12 16:47 /usr/share/thar/licenses.squashfs

(Hardlinking doesn't save any space in the squashfs, because there is already duplicate file detection. So it's not included here.)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@iliana iliana merged commit 4f1c330 into develop Feb 13, 2020
@tjkirch tjkirch deleted the licenses-squashfs branch February 13, 2020 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants