diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2024-05-15 15:52:53 +0100 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2024-05-15 15:52:53 +0100 |
| commit | 0755b07f068b3913e72e3481fb03767713777538 (patch) | |
| tree | 6ed3fe8af037c0f0ee3f66b54655c9a9033ec858 /export-image | |
| parent | 97aa847ea8962303a418ba4c57ff0394e43ccde9 (diff) | |
| parent | fb48183f0d49df3d069f0086263d829efa899c70 (diff) | |
Merge branch 'master' into arm64
Diffstat (limited to 'export-image')
| -rwxr-xr-x | export-image/05-finalise/01-run.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/export-image/05-finalise/01-run.sh b/export-image/05-finalise/01-run.sh index 8310e87..771aa7a 100755 --- a/export-image/05-finalise/01-run.sh +++ b/export-image/05-finalise/01-run.sh @@ -83,7 +83,7 @@ cp "$ROOTFS_DIR/etc/rpi-issue" "$INFO_FILE" dpkg -l --root "$ROOTFS_DIR" } >> "$INFO_FILE" -ROOT_DEV="$(mount | grep "${ROOTFS_DIR} " | cut -f1 -d' ')" +ROOT_DEV="$(awk "\$2 == \"${ROOTFS_DIR}\" {print \$1}" /etc/mtab)" unmount "${ROOTFS_DIR}" zerofree "${ROOT_DEV}" |
