← Back to issue list

Declaring ca-certificates in stage-packages doesn't populate the /etc/ssl/certs directory

View original Github issue

Metadata

Project
rockcraft
Number
#334
Type
issue
State
open
Author
weiiwang01
Labels
Created
2023-07-26 10:33:50+00:00
Updated
2025-08-15 15:12:46+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description When declaring `ca-certificates` in the part's `stage-packages`, the `/etc/ssl/certs` directory is not populated as expected. The `/etc/ssl/certs` should contain symbolic links pointing to the certificates found in `/usr/share/ca-certificates/mozilla/`. It's worth noting that certificates are present in `/usr/share/ca-certificates/mozilla/` within the Rock image. ### To Reproduce Build the rock image based on the `rockcraft.yaml` file below, and then inspect the content of `/etc/ssl/certs` directory in the image. The directory is empty. ```bash rockcraft pack sudo /snap/rockcraft/current/bin/skopeo --insecure-policy copy oci-archive:ca-certs_0.1_amd64.rock docker-daemon:ca-certs:latest docker run -it --rm --entrypoint /bin/ls ca-certs:latest -lah /etc/ssl/certs ``` ### Environment ubuntu 22.04 LTS, LXD ### rockcraft.yaml ```shell # Copyright 2023 Canonical Ltd. # See LICENSE file for licensing details. name: ca-certs summary: ca-certs issue. description: ca-certs issue. version: "0.1" base: ubuntu:20.04 license: Apache-2.0 platforms: amd64: parts: apt-dependencies: plugin: nil source: . stage-packages: - ca-certificates ``` ### Relevant log output ```shell N/A ```

Evaluation history

No evaluation history available.