mirror of
https://github.com/rancher/os.git
synced 2025-09-24 20:09:21 +00:00
Restore the missing initrd artifact.
This reverts only the path-related changes in b3a9893
.
This commit is contained in:
@@ -7,9 +7,10 @@ source ./scripts/version
|
||||
|
||||
BASEDOCKERFILE=./scripts/installer/BaseDockerfile.${ARCH}
|
||||
DOCKERFILE=./scripts/installer/Dockerfile.${ARCH}
|
||||
ARTIFACTS=./dist/artifacts
|
||||
|
||||
if [ ! -f $DOCKERFILE ] || [ ! -f dist/artifacts/vmlinuz-${KERNEL_VERSION} ] || [ ! -f ${INITRD} ]; then
|
||||
echo "Skipping package-installer due to ARM build: ${ARTIFACTS}/vmlinuz-${KERNEL_VERSION} or ${INITRD} not found"
|
||||
if [ ! -f $DOCKERFILE ] || [ ! -f ${ARTIFACTS}/vmlinuz-${KERNEL_VERSION} ] || [ ! -f ${ARTIFACTS}/${INITRD} ]; then
|
||||
echo "Skipping package-installer due to ARM build: ${ARTIFACTS}/vmlinuz-${KERNEL_VERSION} or ${ARTIFACTS}/${INITRD} not found"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -35,11 +36,11 @@ docker build \
|
||||
--build-arg KERNEL_VERSION=${KERNEL_VERSION} \
|
||||
-f $BASEDOCKERFILE \
|
||||
./scripts/installer
|
||||
docker save -o dist/artifacts/installer.tar ${OS_REPO}/os-installer
|
||||
cp $DOCKERFILE dist/artifacts/
|
||||
docker save -o ${ARTIFACTS}/installer.tar ${OS_REPO}/os-installer
|
||||
cp $DOCKERFILE ${ARTIFACTS}/
|
||||
|
||||
cp ${INITRD} ./scripts/installer/build/boot
|
||||
cp ./dist/artifacts/vmlinuz-${KERNEL_VERSION} ./scripts/installer/build/boot
|
||||
cp ${ARTIFACTS}/${INITRD} ./scripts/installer/build/boot
|
||||
cp ${ARTIFACTS}/vmlinuz-${KERNEL_VERSION} ./scripts/installer/build/boot
|
||||
cp -r ${DIST}/boot/* ./scripts/installer/build/boot
|
||||
cp $DOCKERFILE ./scripts/installer/build/Dockerfile
|
||||
# Full installer image with initrd - used for pulling from network
|
||||
@@ -47,6 +48,6 @@ docker build \
|
||||
-t ${OS_REPO}/os:${VERSION}${SUFFIX} \
|
||||
./scripts/installer/build
|
||||
|
||||
docker save -o dist/artifacts/fullinstaller.tar ${OS_REPO}/os:${VERSION}${SUFFIX}
|
||||
docker save -o ${ARTIFACTS}/fullinstaller.tar ${OS_REPO}/os:${VERSION}${SUFFIX}
|
||||
echo ${OS_REPO}/os:${VERSION}${SUFFIX} >> dist/images
|
||||
echo Built ${OS_REPO}/os:${VERSION}${SUFFIX}
|
||||
|
Reference in New Issue
Block a user