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

multipass set homecache=yes #3044

Open
abitrolly opened this issue Apr 18, 2023 · 0 comments
Open

multipass set homecache=yes #3044

abitrolly opened this issue Apr 18, 2023 · 0 comments

Comments

@abitrolly
Copy link

abitrolly commented Apr 18, 2023

What are you trying to do?
Free up disk space on root / volume.

What's your proposed solution?
Add configuration option to move /var/snap/multipass/common/cache to $HOME/.cache/multipass.

Additional context
#2417 discusses configuring directory for images, but network cache in data8 dir can also contain files that could be cleaned.

$ tree /var/snap/multipass/common/cache
/var/snap/multipass/common/cache
└── multipassd
    ├── multipass-blueprints.zip
    ├── network-cache
    │   ├── data8
    │   │   ├── 0
    │   │   ├── 1
    │   │   ├── 2
    │   │   │   ├── 2spnnkj2.d
    │   │   │   └── 347wq17b.d
    │   │   ├── 3
    │   │   │   ├── 22w41de3.d
    │   │   │   ├── 2jtnwbdc.d
    │   │   │   ├── 2nhgehjc.d
    │   │   │   └── 3ht1vk5s.d
    │   │   ├── 4
    │   │   ├── 5
    │   │   │   └── 1gqs6xlu.d
    │   │   ├── 6
    │   │   │   └── 1n5xhdff.d
    │   │   ├── 7
    │   │   ├── 8
    │   │   │   ├── 15c3dxbh.d
    │   │   │   └── 1rpg6n38.d
    │   │   ├── 9
    │   │   │   └── 1j6cmzg9.d
    │   │   ├── a
    │   │   │   ├── 2jsru05j.d
    │   │   │   ├── 8na2pa9z.d
    │   │   │   └── b84d7dpj.d
    │   │   ├── b
    │   │   ├── c
    │   │   ├── d
    │   │   │   └── r97fxz5m.d
    │   │   ├── e
    │   │   └── f
    │   └── prepared
    └── vault
        ├── images
        │   └── snapcraft-core18-20201111
        │       └── bionic-server-cloudimg-amd64-disk.img
        └── multipassd-image-records.json

With cache it should be an easy decision to drop directory without worrying about user instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant