Browse Source

Update ROOT_MARGIN

pull/383/head
Serge Schneider 10 months ago
parent
commit
0a6624b26d
4 changed files with 4 additions and 3 deletions
  1. +1
    -1
      Dockerfile
  2. +1
    -1
      README.md
  3. +1
    -0
      depends
  4. +1
    -1
      export-image/prerun.sh

+ 1
- 1
Dockerfile View File

@ -6,7 +6,7 @@ RUN apt-get -y update && \
apt-get -y install \
git vim parted \
quilt coreutils qemu-user-static debootstrap zerofree zip dosfstools \
bsdtar libcap2-bin rsync grep udev xz-utils curl xxd file kmod\
bsdtar libcap2-bin rsync grep udev xz-utils curl xxd file kmod bc\
&& rm -rf /var/lib/apt/lists/*
COPY . /pi-gen/

+ 1
- 1
README.md View File

@ -14,7 +14,7 @@ To install the required dependencies for pi-gen you should run:
```bash
apt-get install coreutils quilt parted qemu-user-static debootstrap zerofree zip \
dosfstools bsdtar libcap2-bin grep rsync xz-utils file git curl
dosfstools bsdtar libcap2-bin grep rsync xz-utils file git curl bc
```
The file `depends` contains a list of tools needed. The format of this

+ 1
- 0
depends View File

@ -16,3 +16,4 @@ xxd
file
git
lsmod:kmod
bc

+ 1
- 1
export-image/prerun.sh View File

@ -18,7 +18,7 @@ ALIGN="$((4 * 1024 * 1024))"
# some overhead (since actual space usage is usually rounded up to the
# filesystem block size) and gives some free space on the resulting
# image.
ROOT_MARGIN=$((800*1024*1024))
ROOT_MARGIN="$(echo "($ROOT_SIZE * 0.2 + 200 * 1024 * 1024) / 1" | bc)"
BOOT_PART_START=$((ALIGN))
BOOT_PART_SIZE=$(((BOOT_SIZE + ALIGN - 1) / ALIGN * ALIGN))

Loading…
Cancel
Save