Closed kennethso168 closed 5 months ago
I have noticed the same when testing with the latest TinyCore 15 (I will post PR bumping its version later)
I think GRUBSIZE
is the same but problem is with rounding error here:
FSSIZE="$(du -m --summarize --total "${TMPDIR}/fs" | awk '$2 == "total" { printf("%.0f\n", $1); }')"
And then sometimes it results with image size being a bit too small.
All works when I add 1
to compensate for any rounding problems.
# Make the image
dd if=/dev/zero of="${OUTPUTIMG}" bs=1M count=$((FSSIZE + GRUBSIZE + 1))
I am convinced that problem is FSSIZE
rounding - I can add some fake file to the image and keep increasing its size with every build. All works initially but fails at some stage with FSSIZE
still reporting the same value.
re GRUBSIZE
I think we should not increase it - all build is clearly documented and works. In addition it is mentioned already in build.sh
:
GRUBSIZE=15 # Reserve this amount of MiB on the image for GRUB (increase this number if needed)
If user decides to build using different platform it is expected that understans what is doing and can adjust build script accordingly. As maybe increasing it to 25
works for Debian 12 but is not enough for Fedora 36?
As I mentioned I am testing TinyCore 15 now and will submit PR - will also include +1
for image size.
I've created an Ubuntu VM for building the image as per #20 .
I've tested that building with
sudo SEDUTIL_FORK="ChubbyAnt" ./build.sh
works.However, when I put my
authorized_keys
file in the repo and ran again withsudo SEDUTIL_FORK="ChubbyAnt" ./build.sh SSH
, I came across the following not enough space error:Doing the same debugging steps as in #20 (setting
GRUBSIZE=25
instead of 15, addingdf -h
before and after thecp
). I think it was only short of a little bit space (maybe around ~0.1MB):Maybe the GRUB packages recently got a little bit larger in Ubuntu? Should we increase the
GRUBSIZE
?