Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve various build issues #683

Merged
merged 2 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion export-image/prerun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ BOOT_PART_START=$((ALIGN))
BOOT_PART_SIZE=$(((BOOT_SIZE + ALIGN - 1) / ALIGN * ALIGN))
ROOT_PART_START=$((BOOT_PART_START + BOOT_PART_SIZE))
ROOT_PART_SIZE=$(((ROOT_SIZE + ROOT_MARGIN + ALIGN - 1) / ALIGN * ALIGN))
IMG_SIZE=$((BOOT_PART_START + BOOT_PART_SIZE + ROOT_PART_SIZE))
# IMG_SIZE=$((BOOT_PART_START + BOOT_PART_SIZE + ROOT_PART_SIZE))
# I didn't really figure out all the sector math going on here, but the "lotsetup" step for the rootfs
# failed unless I gave the "truncate" step some breathing room. I don't know how much it wants,
# so I arbitrarily chose the "ALIGN" amount.
IMG_SIZE=$((BOOT_PART_START + BOOT_PART_SIZE + ROOT_PART_SIZE + ALIGN))

truncate -s "${IMG_SIZE}" "${IMG_FILE}"

Expand Down
Empty file modified stage3/02-pip-installs/00-run.sh
100644 → 100755
Empty file.
Empty file modified stage3/03-crankshaft-base/05-run-chroot.sh
100644 → 100755
Empty file.
Empty file modified stage3/03-crankshaft-base/06-run-chroot.sh
100644 → 100755
Empty file.
Empty file modified stage3/03-crankshaft-base/07-run-chroot.sh
100644 → 100755
Empty file.
Empty file modified stage4/01-armv7-fixes/00-run.sh
100644 → 100755
Empty file.
Empty file modified stage4/prerun.sh
100644 → 100755
Empty file.