File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
examples/cmd/snapshotting Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ UID = $(shell id -u)
29
29
GID = $(shell id -g)
30
30
31
31
firecracker_version =v1.0.0
32
+ DEV_TOOL_RELESE_BRANCH =firecracker-v1.2
32
33
33
34
# The below files are needed and can be downloaded from the internet
34
35
release_url =https://github.com/firecracker-microvm/firecracker/releases/download/$(firecracker_version ) /firecracker-$(firecracker_version ) -$(arch ) .tgz
@@ -110,7 +111,7 @@ $(FC_TEST_DATA_PATH)/root-drive-ssh-key $(FC_TEST_DATA_PATH)/root-drive-with-ssh
110
111
ifeq ($(GID ) , 0)
111
112
$(MAKE) $(FIRECRACKER_DIR)
112
113
$(FIRECRACKER_DIR)/tools/devtool build_rootfs -m $(FC_TEST_DATA_PATH)/mnt
113
- cp $(FIRECRACKER_DIR)/build/rootfs/bionic .rootfs.ext4 $(FC_TEST_DATA_PATH)/root-drive-with-ssh.img
114
+ cp $(FIRECRACKER_DIR)/build/rootfs/* .rootfs.ext4 $(FC_TEST_DATA_PATH)/root-drive-with-ssh.img
114
115
cp $(FIRECRACKER_DIR)/build/rootfs/ssh/id_rsa $(FC_TEST_DATA_PATH)/root-drive-ssh-key
115
116
rm -rf $(FIRECRACKER_DIR)
116
117
else
@@ -133,7 +134,7 @@ $(FC_TEST_DATA_PATH)/ltag:
133
134
$(call install_go,github.com/kunalkushwaha/ltag,v0.2.3)
134
135
135
136
$(FIRECRACKER_DIR ) :
136
- - git clone https://github.com/firecracker-microvm/firecracker.git $(FIRECRACKER_DIR )
137
+ - git clone --branch $( DEV_TOOL_RELESE_BRANCH ) https://github.com/firecracker-microvm/firecracker.git $(FIRECRACKER_DIR )
137
138
138
139
.PHONY : test-images
139
140
test-images : $(FIRECRACKER_BIN ) $(JAILER_BIN )
Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ firecracker:
59
59
60
60
root-drive-with-ssh.img root-drive-ssh-key :
61
61
- mkdir temp
62
- - git clone https://github.com/firecracker-microvm/firecracker temp
62
+ - git clone --branch firecracker- ${VER % . * } https://github.com/firecracker-microvm/firecracker temp
63
63
temp/tools/devtool build_rootfs
64
- cp temp/build/rootfs/bionic .rootfs.ext4 root-drive-with-ssh.img
64
+ cp temp/build/rootfs/* .rootfs.ext4 root-drive-with-ssh.img
65
65
cp temp/build/rootfs/ssh/id_rsa root-drive-ssh-key
66
66
rm -rf temp
67
67
You can’t perform that action at this time.
0 commit comments