summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2026-03-02Merge branch 'master' into arm64Serge Schneider
2026-03-02More qemu-user-static->qemu-user-binfmt changesSerge Schneider
2025-11-24Merge branch 'master' into arm64Serge Schneider
2025-11-24Remove wget-log files left behind by debootstrapSerge Schneider
2024-11-11Merge branch 'master' into arm64Serge Schneider
2024-11-11Exclude ifupdown as it slows down bootSerge Schneider
2024-05-15Merge branch 'master' into arm64Serge Schneider
2024-05-15Expand trap cleanup function (#773)Tom Dewey
* build.sh: Unmount intermediates on trap Iterate through image files which might be in use and detach them Avoid silent failures - let the user know whether the build failed * common: update unmount_image Use udevadm settle instead of sleep if possible Use losetup's -j option to find the loop device associated with a give image file * build.sh: update clean-up trap term --------- Co-authored-by: Serge Schneider <serge@raspberrypi.com>
2024-05-15Compare mount output using base of dirname (#771)Pev
* Compare mount output using base of dirname If you're building from a bind-mounted directory, the build will fail as it will find two entries to unmount, but a single unmount will remove them both causing an error. Adding a space means that the mountpoint will only match with a single mount entry ; the expected path, rather than the pre bind-mount. * Switch to awk instead of mount, grep, cut pipes Retry unmount 5 times and give up, letting the user know that they need to resolve the issue manually --------- Co-authored-by: David Peverley <pev@analogue-micro.com> Co-authored-by: Serge Schneider <serge@raspberrypi.com>
2024-02-26Merge branch 'master' into arm64Serge Schneider
2024-02-26ensure_loopdev_partitions: let udev settleSerge Schneider
2024-02-23Remove QCOW2 build mechanism (#648)Mark Spatz
2024-01-17Merge branch 'master' into arm64Serge Schneider
2024-01-04Ensure loop device partition nodes are created (#741)Vasilis Tsiligiannis
Although the loop block device is created before attaching the image to it, the devices for the partition that the image contains are still not created. This patch creates those devices as well, when they are not already available. Fixes #482 Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2023-11-27Merge branch 'master' into arm64Serge Schneider
2023-10-23README.md: add PI_GEN_RELEASE (#720)Stefan Becker
This is the text written to "/etc/issue.txt" by update_issue(). The default is the name used by official Raspberry Pi builds. Fixes #719
2023-08-17Merge branch 'master' into arm64Serge Schneider
2023-08-17Adds call to mknod if loop dev does not exist after call to `losetup -f` (#483)bamartin125
2023-03-29Merge branch 'master' into arm64Serge Schneider
2023-03-29Use tmpfs for chroot /run and /tmpSerge Schneider
2022-11-11Merge branch 'master' into arm64Serge Schneider
2022-11-11use a single partitioned loop device (#641)rfc6919
2022-11-08Merge branch 'master' into arm64Serge Schneider
2022-11-08Add parameter to keep cap_setfcapSerge Schneider
Fixes #643
2022-09-01Merge branch 'master' into arm64Serge Schneider
2022-06-17Adjust partition formatting and mount optionsSerge Schneider
Format the root partition with the metadata_csum option Format the boot partition with 4 sectors per cluster for a slight performance boost Remove 'flush' mount option from the boot partition
2022-02-22Enable APT_PROXY for arm64 buildsSerge Schneider
Closes #598
2022-01-14Merge branch 'master' into arm64Serge Schneider
2022-01-14Install ca-certificates during bootstrapSerge Schneider
Fixes #424
2022-01-14Don't try to use qemu-debootstrapSerge Schneider
Fixes #563
2021-12-22Remove use of setarch for arm64XECDesign
Fixes #572
2021-10-05Merge branch 'master' into arm64Serge Schneider
2021-10-05bootstrap: do not install the info packageSerge Schneider
2021-10-05Use sync mode when running 'kpartx -a'Josh Ackley
2021-09-21Merge branch 'master' into arm64Serge Schneider
2021-09-20Don't check for binfmt_misc on arm platformsRob Smith
When building on a native ARM platform, binfmt_misc is not required to be loaded. This change checks the machine type and if it's a ARM platform, skip the binfmt_misc validation.
2021-06-22Merge remote-tracking branch 'upstream/master' into arm64Serge Schneider
2021-06-22Copy debootstrap.log on failureSerge Schneider
2021-03-04Merge branch 'master' into arm64Serge Schneider
2021-02-10Add QCOW2 build mechanism (#349)Holger Pandel
2020-07-30aarch64Serge Schneider
2019-10-30Ensure debootstrap runs through 'sh' rather than 'bash'Serge Schneider
This fixes #338 and fixes #294
2019-08-11Moved git-hash determination to passed in build variable (#273)Kevin Stone
2019-06-07script/common: Handle aarch64 host buildsSerge Schneider
2019-03-06Handle cases where binfmt_misc is built into the kernelSerge Schneider
Fixes #264
2019-02-18Make sure unmount_image finds stale loop devicesSam Tygier
Fixes #257 #104 #193 Instead of searching by full path, which is prone to fail, read full list and grep on filename.
2019-02-18Check binfmt_misc module is loadedSam Tygier
Give a friendly error message early.
2019-02-18Improve update_issue() function in common scriptHugo Hromic
* Allow to customise pi-gen script name and repository in the generated issue file * Preserve compatibility with existing function calls
2019-02-18Improve bootstrap() function in common scriptHugo Hromic
* Tidy up and simplify function code * Allow to pass extra arguments to debootstrap, e.g. `--variant minbase` * Preserve compatibility with existing function calls
2018-11-08scripts: do not ignore errors inside on_chroot callsTomas Cerskus