Giter VIP home page Giter VIP logo

Comments (5)

Mic92 avatar Mic92 commented on June 16, 2024

The issue we encounter here is that nix attrsets are always sorted by name. I think would need to make this a list instead just like this is done for partitions?

from disko.

Lassulus avatar Lassulus commented on June 16, 2024

ah, I would just create lvs with 100%FREE size as last. that should fix the issue?

from disko.

a-dma avatar a-dma commented on June 16, 2024

@Mic92 I assume that mapping things to a list would not perform automatic sorting? If that's the case then I think it should work.

@Lassulus do you mean internally treating every 100%FREE entry as special and "manually" processing those last when resolving them? I think that would also work if it can be done reliably. I can't imagine a case where there's a 100%FREE entry that is not last, unless of course it's the only entry, in which case it is also the last one. I would imagine this applies to more than just LVS though.

from disko.

Lassulus avatar Lassulus commented on June 16, 2024

@a-dma can you check if my PR solves the issue? We could also think about a general solution but special solutions like that should also be useful.

from disko.

a-dma avatar a-dma commented on June 16, 2024

I see the PR has been merged already, so I tested master. Happy to report that it worked for me. Thanks!

The only other thing that I had to do to get my own setup to work was to manually set a label on the swap partition given that there is no extraArgs for that type. But that's unrelated and perhaps something that should go into another issue.

Thanks again for the help, closing this.

Resolved via #234.

from disko.

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.