mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 15:32:30 +00:00
rootfs: add ca file to guest rootfs
To access the URL, the component to pull image in the guest needs to send a request to the remote. Therefore, we need to add CA to the rootfs. Signed-off-by: ChengyuZhu6 <chengyu.zhu@intel.com>
This commit is contained in:
parent
8724d7deeb
commit
6e5e4e55d0
@ -47,6 +47,10 @@ EOF
|
|||||||
ln -s /run "$rootfs_dir/var/run"
|
ln -s /run "$rootfs_dir/var/run"
|
||||||
cp --remove-destination /etc/resolv.conf "$rootfs_dir/etc"
|
cp --remove-destination /etc/resolv.conf "$rootfs_dir/etc"
|
||||||
|
|
||||||
|
local dir="$rootfs_dir/etc/ssl/certs"
|
||||||
|
mkdir -p "$dir"
|
||||||
|
cp --remove-destination /etc/ssl/certs/ca-certificates.crt "$dir"
|
||||||
|
|
||||||
# Reduce image size and memory footprint by removing unnecessary files and directories.
|
# Reduce image size and memory footprint by removing unnecessary files and directories.
|
||||||
rm -rf $rootfs_dir/usr/share/{bash-completion,bug,doc,info,lintian,locale,man,menu,misc,pixmaps,terminfo,zsh}
|
rm -rf $rootfs_dir/usr/share/{bash-completion,bug,doc,info,lintian,locale,man,menu,misc,pixmaps,terminfo,zsh}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user