1. Remove config from .gitignore

2. Add minimal, user-neutral config
3. Change Dockerfile to work around issues building buster on 64-bit hosts
4.  Modify export-image/prerun.sh to make sure newly created loop devices are available to mount
5. Add custom setup script 01-run.sh in stage2/04-custom-tweaks
This commit is contained in:
Ani Balasubramaniam
2020-03-18 16:55:19 -07:00
parent 6b72a64f02
commit 45c8dd1406
5 changed files with 33 additions and 2 deletions
+4
View File
@@ -39,6 +39,10 @@ BOOT_LENGTH=$(echo "$PARTED_OUT" | grep -e '^1:' | cut -d':' -f 4 | tr -d B)
ROOT_OFFSET=$(echo "$PARTED_OUT" | grep -e '^2:' | cut -d':' -f 2 | tr -d B)
ROOT_LENGTH=$(echo "$PARTED_OUT" | grep -e '^2:' | cut -d':' -f 4 | tr -d B)
# Ensures that freshly created loop devices are available to mount
# https://github.com/RPi-Distro/pi-gen/issues/320#issuecomment-518484064
sleep 5
BOOT_DEV=$(losetup --show -f -o "${BOOT_OFFSET}" --sizelimit "${BOOT_LENGTH}" "${IMG_FILE}")
ROOT_DEV=$(losetup --show -f -o "${ROOT_OFFSET}" --sizelimit "${ROOT_LENGTH}" "${IMG_FILE}")
echo "/boot: offset $BOOT_OFFSET, length $BOOT_LENGTH"