Merge pull request #869 from devimc/topic/snap/fixSnap

snap: fix snap in launchpad
This commit is contained in:
Julio Montes 2019-12-11 11:58:03 -06:00 committed by GitHub
commit e76cf80b50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

View File

@ -124,7 +124,7 @@ get_kernel() {
major_version=$(echo "${version}" | cut -d. -f1)
kernel_tarball="linux-${version}.tar.xz"
if [ ! -f sha256sums.asc ] || ! grep -q "${kernel_tarball}" sha256sums.asc; then
info "Download kernel checksum file: sha256sums.asc"
curl --fail -OL "https://cdn.kernel.org/pub/linux/kernel/v${major_version}.x/sha256sums.asc"
@ -269,15 +269,14 @@ get_default_kernel_config() {
get_config_and_patches() {
if [ -z "${patches_path}" ]; then
info "Clone config and patches"
patches_path="${default_patches_dir}"
if [ ! -d "${patches_path}" ]; then
tag="${kata_version}"
git clone "https://${patches_repo}.git" "${patches_repo_dir}"
git clone -q "https://${patches_repo}.git" "${patches_repo_dir}"
pushd "${patches_repo_dir}" >> /dev/null
if [ -n $tag ] ; then
info "checking out $tag"
git checkout $tag
git checkout -q $tag
fi
popd >> /dev/null
fi

View File

@ -1 +1 @@
59
60

View File

@ -228,11 +228,11 @@ parts:
export DEBUG=1
case "$(uname -m)" in
aarch64|ppc64le|s390x)
sudo -E PATH=$PATH DISTRO=alpine make initrd
sudo -E PATH=$PATH make initrd DISTRO=alpine
;;
x86_64)
# In some build systems it's impossible to build a rootfs image, try with the initrd image
sudo -E PATH=$PATH DISTRO=clearlinux make image || sudo -E PATH=$PATH DISTRO=alpine make initrd
sudo -E PATH=$PATH make image DISTRO=clearlinux || sudo -E PATH=$PATH make initrd DISTRO=alpine
;;
*) echo "unsupported architecture: $(uname -m)"; exit 1;;
esac