mirror of
https://github.com/rancher/os.git
synced 2025-09-14 06:00:06 +00:00
Fix rpi build
This commit is contained in:
@@ -34,13 +34,15 @@ PART1_DEVICE=$(losetup -f)
|
|||||||
losetup -d ${PART1_DEVICE} || /bin/true
|
losetup -d ${PART1_DEVICE} || /bin/true
|
||||||
losetup --offset $BOOT_PARTITION_OFFSET --sizelimit $BOOT_PARTITION_BYTES ${PART1_DEVICE} build/run.img
|
losetup --offset $BOOT_PARTITION_OFFSET --sizelimit $BOOT_PARTITION_BYTES ${PART1_DEVICE} build/run.img
|
||||||
mkfs.vfat -n RancherOS ${PART1_DEVICE}
|
mkfs.vfat -n RancherOS ${PART1_DEVICE}
|
||||||
losetup -d ${PART1_DEVICE}
|
|
||||||
|
|
||||||
# partition #2 - Type=83 Linux
|
# partition #2 - Type=83 Linux
|
||||||
PART2_DEVICE=$(losetup -f)
|
PART2_DEVICE=$(losetup -f)
|
||||||
losetup -d ${PART2_DEVICE} || /bin/true
|
losetup -d ${PART2_DEVICE} || /bin/true
|
||||||
losetup --offset $ROOT_PARTITION_OFFSET ${PART2_DEVICE} build/run.img
|
losetup --offset $ROOT_PARTITION_OFFSET ${PART2_DEVICE} build/run.img
|
||||||
mkfs.ext4 -O ^has_journal -b 4096 -L rootfs ${PART2_DEVICE}
|
mkfs.ext4 -O ^has_journal -b 4096 -L rootfs ${PART2_DEVICE}
|
||||||
|
|
||||||
|
# detach loop devices
|
||||||
|
losetup -d ${PART1_DEVICE}
|
||||||
losetup -d ${PART2_DEVICE}
|
losetup -d ${PART2_DEVICE}
|
||||||
|
|
||||||
# mount partitions as loopback devices
|
# mount partitions as loopback devices
|
||||||
|
Reference in New Issue
Block a user