summaryrefslogtreecommitdiff
path: root/scripts/common
AgeCommit message (Collapse)Author
2024-11-11Exclude ifupdown as it slows down bootSerge 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-26ensure_loopdev_partitions: let udev settleSerge 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-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-17Adds call to mknod if loop dev does not exist after call to `losetup -f` (#483)bamartin125
2023-03-29Use tmpfs for chroot /run and /tmpSerge Schneider
2022-11-11use a single partitioned loop device (#641)rfc6919
2022-11-08Add parameter to keep cap_setfcapSerge Schneider
Fixes #643
2022-01-14Install ca-certificates during bootstrapSerge Schneider
Fixes #424
2022-01-14Don't try to use qemu-debootstrapSerge Schneider
Fixes #563
2021-10-05bootstrap: do not install the info packageSerge Schneider
2021-06-22Copy debootstrap.log on failureSerge 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-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-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
2018-10-15Check /debootstrap exists before trying to removeSerge Schneider
2018-10-11Remove /debootstrapSerge Schneider
2018-03-13shellcheckSerge Schneider
2017-06-20bootstrap: cope with NFS and FUSE filesystemsSerge Schneider
2017-05-10stage0: Verify Releases during bootstrapSerge Schneider
Fixes #5
2017-04-03Clean up clean upSerge Schneider
2017-01-23Added Docker support (#40)Claus F. Strasburger
* Added Docker support - replaced necessity for devicemapper (through kpartx) by using parted and losetup with offsets - added Dockerfile - added dependency for parted and grep - added hints to README.md - common: loop through unmounts, fix shellcheck warnings * stage2: use debconf instead of console-setup patch. Fixes #41
2016-11-14Use capsh to ensure file capabilities aren't setSerge Schneider
2016-10-09rsync single file system (#25)chz^3
If proc is mounted in rootfs (e.g., via chroot), rsync will try copying kcore when permitted to cross file system boundaries.
2016-10-06Fix umount_image (#22)Joseph Carter
* export-noobs/prerun.sh: Use nested mountpoint While it seems elegant and intuitive to use separate bootfs and rootfs mountpoints for compressing the partitions, doing so violates a precondition of unmount_image that they be mounted as a tree. This causes the image to not be properly unmounted and detached. A better solution might be to pack up the previous stage's chroot directory, but that rework can wait for the time being. scripts/common.sh: Output device name correctly A misplaced ) in unmount_image caused the loop device to be incorrectly identified, resulting in a fair bit of chaos trying to unmount other filesystems on /dev/mapper devices. Such as / on a LUKS-encrypted installation, for example. The unmount will fail as it should and build.sh will abort the build without any cleanup. Best to avoid that. These changes close RPi-Distro/pi-gen#19
2016-05-27Add NOOBS export supportSerge Schneider
2016-05-05common: Fix issue dateSerge Schneider
2016-05-04Various fixesSerge Schneider
2016-04-27Add missing /dev/ptsTeguh Sobirin
Missing /dev/pts causing "Can not write log, openpty() failed (/dev/pts not mounted?)"
2016-04-11Initial build scriptSerge Schneider
2016-04-08Setup initial layoutSerge Schneider