mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-16 06:18:58 +00:00
osbuilder: Remove non-needed packages at the end
Instead of removing the non-needed packages under `/usr/share` and then installing new components, let's make sure we do the removal at the end of our script. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
@@ -30,9 +30,6 @@ EOF
|
||||
cp --remove-destination "$file" "$rootfs_dir$file"
|
||||
done
|
||||
|
||||
# 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}
|
||||
|
||||
if [ "${AA_KBC}" == "eaa_kbc" ] && [ "${ARCH}" == "x86_64" ]; then
|
||||
source /etc/os-release
|
||||
|
||||
@@ -52,4 +49,7 @@ EOF
|
||||
echo "rats-tls-tdx is only provided for Ubuntu 20.04, there's yet no packages for Ubuntu ${VERSION_ID}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# 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}
|
||||
}
|
||||
|
Reference in New Issue
Block a user