1
0
mirror of https://github.com/rancher/os.git synced 2025-09-13 21:51:33 +00:00

Fix rpi build

This commit is contained in:
niusmallnan
2019-05-03 15:57:16 +08:00
parent 0c9a1e0755
commit 3edf512725

View File

@@ -34,13 +34,15 @@ PART1_DEVICE=$(losetup -f)
losetup -d ${PART1_DEVICE} || /bin/true
losetup --offset $BOOT_PARTITION_OFFSET --sizelimit $BOOT_PARTITION_BYTES ${PART1_DEVICE} build/run.img
mkfs.vfat -n RancherOS ${PART1_DEVICE}
losetup -d ${PART1_DEVICE}
# partition #2 - Type=83 Linux
PART2_DEVICE=$(losetup -f)
losetup -d ${PART2_DEVICE} || /bin/true
losetup --offset $ROOT_PARTITION_OFFSET ${PART2_DEVICE} build/run.img
mkfs.ext4 -O ^has_journal -b 4096 -L rootfs ${PART2_DEVICE}
# detach loop devices
losetup -d ${PART1_DEVICE}
losetup -d ${PART2_DEVICE}
# mount partitions as loopback devices