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

Reduce snap size #224

Merged
merged 7 commits into from
Dec 5, 2023
Merged

Conversation

simondeziel
Copy link
Member

This was tested in a local VM:

$ lxc shell v1
root@v1:~# snap install --dangerous /dev/shm/lxd_0+git.51efcdf_amd64.snap 
Ensure prerequisites for "lxd" are available                                                                                             /Ensure prerequisites for "lxd" are available                                                                                             -Ensure prerequisites for "lxd" are available                                                                                             -Download snap "core22" (864) from channel "stable"                                                                                       -lxd 0+git.51efcdf installed
root@v1:~# snap alias lxd.lxc lxc
Added:
  - lxd.lxc as lxc

root@v1:~# file /snap/lxd/current/zfs-2.2/bin/*
/snap/lxd/current/zfs-2.2/bin/zfs:     ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=b9382230c390017d2dc339b819632aa5d7787132, for GNU/Linux 3.2.0, stripped
/snap/lxd/current/zfs-2.2/bin/zpool:   ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=3ed172a0f4a0546b3204a005d36f45615afc2335, for GNU/Linux 3.2.0, stripped
/snap/lxd/current/zfs-2.2/bin/zvol_id: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=7340404dca1357741cf5960415ab4268aebe7162, for GNU/Linux 3.2.0, stripped

Those binaries were previously not stripped.

Those are created by nvme-cli and uuid-runtime packages.

Signed-off-by: Simon Deziel <[email protected]>
Those are coming from nvme-cli and uuid-runtime packages.

Signed-off-by: Simon Deziel <[email protected]>
It contained include headers and other files from spice.

Signed-off-by: Simon Deziel <[email protected]>
@tomponline tomponline merged commit aec4908 into canonical:latest-edge Dec 5, 2023
3 checks passed
@simondeziel simondeziel deleted the snap-improvements branch December 5, 2023 13:53
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.

2 participants