[baseimage]: Build specific revision of initramfs-tools (#1957)

Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
This commit is contained in:
Qi Luo 2018-08-21 00:00:46 -07:00 committed by lguohan
parent 454690506e
commit c692d2dcd0

View File

@ -5,6 +5,8 @@ SHELL = /bin/bash
MAIN_TARGET = initramfs-tools_$(INITRAMFS_TOOLS_VERSION)_all.deb
DERIVED_TARGETS = initramfs-tools-core_$(INITRAMFS_TOOLS_VERSION)_all.deb
INITRAMFS_TOOLS_REVISION = 18fc98e1b63b012f9bcf06ae3f5477872a5880c0
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
# Obtaining the initramfs-tools
rm -rf ./initramfs-tools
@ -12,6 +14,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
# Patch
pushd ./initramfs-tools
git checkout $(INITRAMFS_TOOLS_REVISION)
patch -p1 < ../loopback-file-system-support.patch
# Build the package