mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +00:00
snap: overwrite Makefile variables
Overwrite Makefile variable `DISTRO` in order to build rootfs and initrd images with the right distro. fixes #868 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
bfe65e0dc5
commit
43a6e67e70
@ -228,11 +228,11 @@ parts:
|
|||||||
export DEBUG=1
|
export DEBUG=1
|
||||||
case "$(uname -m)" in
|
case "$(uname -m)" in
|
||||||
aarch64|ppc64le|s390x)
|
aarch64|ppc64le|s390x)
|
||||||
sudo -E PATH=$PATH DISTRO=alpine make initrd
|
sudo -E PATH=$PATH make initrd DISTRO=alpine
|
||||||
;;
|
;;
|
||||||
x86_64)
|
x86_64)
|
||||||
# In some build systems it's impossible to build a rootfs image, try with the initrd image
|
# 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;;
|
*) echo "unsupported architecture: $(uname -m)"; exit 1;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user