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

build changes needed to allow rpi release to build

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit 2017-02-01 05:24:01 +00:00
parent ff448b0b96
commit 4e29df1b8a
5 changed files with 12 additions and 7 deletions

View File

@ -10,12 +10,14 @@ RUN mkdir -p /source/assets
RUN curl -fL https://releases.rancher.com/os/latest/rootfs_arm.tar.gz > /source/assets/rootfs_arm.tar.gz
#COPY rootfs_arm.tar.gz /source/assets/rootfs_arm.tar.gz
# 4.4.27-hypriotos-v7+
# see https://packagecloud.io/Hypriot/rpi/?filter=debs
ENV URL=https://packagecloud.io/Hypriot/rpi/packages/debian/jessie/
RUN curl -fL $URL/raspberrypi-kernel_20161028-083330_armhf.deb/download \
# 4.4.27-hypriotos-v7+
ENV VER=20170119-202035
RUN curl -fL ${URL}/raspberrypi-kernel_${VER}_armhf.deb/download \
> /source/assets/kernel.deb
RUN curl -fL $URL/raspberrypi-bootloader_20161028-083330_armhf.deb/download \
RUN curl -fL ${URL}/raspberrypi-bootloader_${VER}_armhf.deb/download \
> /source/assets/bootloader.deb
WORKDIR /source

View File

@ -29,6 +29,8 @@ fdisk -l build/run.img
ls -al build/run.img
# partition #1 - Type= c W95 FAT32 (LBA)
losetup
losetup -f
losetup -d /dev/loop0 || /bin/true
losetup --offset $BOOT_PARTITION_OFFSET --sizelimit $BOOT_PARTITION_BYTES /dev/loop0 build/run.img
mkfs.vfat -n RancherOS /dev/loop0

View File

@ -12,6 +12,7 @@ ARTIFACTS=$(pwd)/dist/artifacts
mkdir -p ${ARTIFACTS}
if [ ! -f ${ARTIFACTS}/vmlinuz-${KERNEL_VERSION} ]; then
echo "skipping package-initrd due to ARM build? (no kernel artifact)"
exit 0
fi

View File

@ -9,8 +9,8 @@ BASEDOCKERFILE=./scripts/installer/BaseDockerfile.${ARCH}
DOCKERFILE=./scripts/installer/Dockerfile.${ARCH}
if [ ! -f $DOCKERFILE ] || [ ! -f dist/artifacts/vmlinuz-${KERNEL_VERSION} ] || [ ! -f ${INITRD} ]; then
echo "ERROR: ${ARTIFACTS}/vmlinuz-${KERNEL_VERSION} or ${INITRD} not found"
exit 1
echo "Skipping package-installer due to ARM build: ${ARTIFACTS}/vmlinuz-${KERNEL_VERSION} or ${INITRD} not found"
exit 0
fi
# TODO maybe extract the creation of the syslinux cfg files

View File

@ -14,8 +14,8 @@ mkdir -p ${CD}/boot/isolinux
mkdir -p ${CD}/rancheros
if [ ! -f ${ARTIFACTS}/vmlinuz-${KERNEL_VERSION} ] || [ ! -f ${INITRD} ]; then
echo "ERROR: ${ARTIFACTS}/vmlinuz-${KERNEL_VERSION} or ${INITRD} not found"
exit 1
echo "Skipping package-iso due to ARM build: ${ARTIFACTS}/vmlinuz-${KERNEL_VERSION} or ${INITRD} not found"
exit 0
fi
cp ${INITRD} ${CD}/boot