pi-gen/export-image
Pev d790fed832
Compare mount output using base of dirname (#771)
* 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-05-15 15:45:43 +01:00
..
00-allow-rerun Disable ld.so.preload while building 2019-06-07 19:51:08 +01:00
01-user-rename Disable first run wizard if DISABLE_FIRST_BOOT_USER_RENAME is set 2022-09-22 13:06:38 +01:00
02-set-sources export-image: auto-remove and purge packages on dist-upgrade 2023-09-25 15:04:19 +01:00
03-network Enable userconf-pi on first boot 2022-03-21 08:37:25 +00:00
04-set-partuuid Remove QCOW2 build mechanism (#648) 2024-02-23 04:19:10 +00:00
05-finalise Compare mount output using base of dirname (#771) 2024-05-15 15:45:43 +01:00
prerun.sh export-image: run du with -x to avoid crossing filesystem boundaries 2024-04-29 14:37:36 +01:00