Giter Site home page Giter Site logo

Comments (6)

tokiclover avatar tokiclover commented on August 12, 2024

it's not a trickery at all. it's really a simple script that would generate basic helpers [`/lib/mkinitramfs-ll/bin], so other scripts or user scripts can use a few of them if need be. actually zfs is implemented using the helpers as an example. i did not want to seperate the init script (550~600 is manageable right now). and i did not want to start separating specific init functions to basic helpers?

from mkinitramfs-ll.

jan-matejka avatar jan-matejka commented on August 12, 2024

There seems to be a problem, that anytime you change the init you also need to fix the line numbers in the helper generators. And the whole approach seems to me just like scratchning left ear with right hand.

from mkinitramfs-ll.

tokiclover avatar tokiclover commented on August 12, 2024

Right. Do you have a better approach? Keeping the init script this way, one
can be able to build everything at hand easily without ever needing what is
in ./usr' or even./usr/lib/mkinitramfs-ll/init.sh' or whatsover.

I'm the first person who is annoyed by that shit... and tend to forget to
edit that file. And then tear my head over walls here and there. So I know
that pretty well.

Now, if I did that thing that way, it was to let the very few users who use
that script(s) to made their own to add to initramfs. Yes, nobody did any(
and send it). So I've implemented zfs that way as an example. And yet
nothing. -;)

The easy way is... stripe away the init script and make a definitive
`/lib/mkinitramfs-ll/fuctions.sh' or even add helpers with that. So I'd be
done with it.

Nobody is against it?

2013/4/9 yaccz [email protected]

There seems to be a problem, that anytime you change the init you also
need to fix the line numbers in the helper generators. And the whole
approach seems to me just like scratchning left ear with right hand.


Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-16104809
.

Error 404 citizen was not found

from mkinitramfs-ll.

jan-matejka avatar jan-matejka commented on August 12, 2024

see https://github.com/yaccz/ynitramfs/blob/master/init#L7-L10 In the future the functions shall be defined in something like initlib which would be sourced by init. which wil exeucte.

This will also allow unit testing of the initlib

from mkinitramfs-ll.

tokiclover avatar tokiclover commented on August 12, 2024

for looking how to make a ~/.shrc like file, or else, one can run source $initlib/function.sh for now untill then with the 0.12.0 version bump.

from mkinitramfs-ll.

tokiclover avatar tokiclover commented on August 12, 2024

closing, fixed with 0.12.0

from mkinitramfs-ll.

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.