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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user