1
0
mirror of https://github.com/rancher/os.git synced 2025-08-19 07:19:05 +00:00

Support kernels from local directories, but just remote URLs

This commit is contained in:
Darren Shepherd 2015-10-01 15:39:20 -07:00
parent 60399d5fe1
commit ab8236bdac
2 changed files with 3 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
.DS_Store .DS_Store
/assets /assets/ca.crt
/state /state
/bin /bin
/build /build

View File

@ -26,7 +26,8 @@ $(DIST)/artifacts/vmlinuz: $(BUILD)/kernel/
$(BUILD)/kernel/: $(BUILD)/kernel/:
mkdir -p $@ && curl -L "$(COMPILED_KERNEL_URL)" | tar -xzf - -C $@ --strip=0 mkdir -p $@
([ -e "$(COMPILED_KERNEL_URL)" ] && cat "$(COMPILED_KERNEL_URL)" || curl -L "$(COMPILED_KERNEL_URL)") | tar -xzf - -C $@
$(BUILD)/images.tar: bin/rancheros $(BUILD)/images.tar: bin/rancheros