mirror of
https://github.com/rancher/os.git
synced 2025-09-02 07:15:41 +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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user