Giter Site home page Giter Site logo

Comments (9)

drtyhlpr avatar drtyhlpr commented on June 5, 2024

hi, the image size calc is a bit messy - and I tought about a small "readable" replace. I tought (but it has been I while since I tested it) - that the image should be "rounded" to 1GB - but the problem with an "edge case" - like 960MB exists. give me some time to test ... I am very bussy these days ... and may take a look this weekend.

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

yeah if you would like to contribute I would be very happy. If I remember right - my idea was to simply add a "min space left free" VARIABLE and simple add this to the calculated "used space" value before the "round" to 1GB

from rpi23-gen-image.

stylesuxx avatar stylesuxx commented on June 5, 2024

Hey @drtyhlpr I started playing around with this yesterday. Problem is, that with EXT4 it is very hard to get the exact partition size, because of reserved blocks and journaling. So I came up with the following: https://github.com/stylesuxx/rpi2-gen-image/commit/d20b2e032c39241719850e6a96ef28b60419534c I simply add 20% of the chroot size. This should be easily adaptable to a variable with fixed sized instead of percentage. Let me know what you think and I will prepare a PR.

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

I like the patch a lot (math calc on sh is some how a pain in the...) (my alternative idea would be a BC script but this would add another host build dep) but lets simply keep it in sh with you percentage patch and it would be nice if you could create a PR. I want to merge the other(s) PRs soon and do some massive "build testing" (like building images will many different kind of ARGS) - so I can simply 'df' cross check and QS all additional patches and features of the PRs.

from rpi23-gen-image.

stylesuxx avatar stylesuxx commented on June 5, 2024

Alright, I'll prepare a PR then. Also my dev branch has fixes for #20 and #21 do you want them too, or should I make seperate PR's for each?

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

please seperate them I am not a merge master and need to learn more about git :)

from rpi23-gen-image.

stylesuxx avatar stylesuxx commented on June 5, 2024

Alright, will do that some time over the weekend - my RPi 3 just arrived, and I am a bit distracted ;-)

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

have fun - maybe you wanna try https://github.com/umiddelb/z2d/tree/master/pine64 :)

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

great job / merged / maybe add 25% but auto resize on firstboot should work fine.

from rpi23-gen-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.