Update ROOT_MARGIN
This commit is contained in:
parent
24bb01dec2
commit
0a6624b26d
4 changed files with 4 additions and 3 deletions
|
@ -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/
|
||||
|
|
|
@ -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
depends
1
depends
|
@ -16,3 +16,4 @@ xxd
|
|||
file
|
||||
git
|
||||
lsmod:kmod
|
||||
bc
|
||||
|
|
|
@ -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))
|
||||
|
|
Reference in a new issue