Giter VIP home page Giter VIP logo

Comments (7)

Lassulus avatar Lassulus commented on September 22, 2024 32

hello, yes I'm working on it. although it's a bit complicated to detect the current setup and decide which changes are destructive and which are not. The solution I'm working towards will have a _check for each type which could output if the system differs from the configured setup. We then need to find out which changes the _create step does are non-destructive and execute those.

All in all this is a feature which is coming, although I have no definite timeline on it. But I haven't decided on an interface yet. probably there will be a kind of mode selection (with modes like: non-destructive, force, force-non-critical, etc)

from disko.

Ramblurr avatar Ramblurr commented on September 22, 2024 9

I'm interested in the use case of being able to declaratively define zfs datasets, not for the first install case, but for creating new datasets long after install.

Example: A NAS or server system where you want to be able to create a new dataset to store the data from some service you enable with a nixos module.

Is this currently possible? If so are there any relevant examples?

from disko.

CryoMyst avatar CryoMyst commented on September 22, 2024 5

I would personally like non-destructive options for disko to use.
I am working on NixOS Asahi which requires installing alongside the MacOS partitions (Which are essential to keep around) and throwing a new SSD in is not an option.
The installer prompts you to resize the existing MacOS partition so there is free space to install on and manage but it should never touch the existing partitions.

https://github.com/tpwrules/nixos-apple-silicon/blob/main/docs/uefi-standalone.md#partitioning-and-formatting

DANGER: Damage to the GPT partition table, first partition (iBootSystemContainer), or the last partition (RecoveryOSContainer) could result in the loss of all data and render the Mac unbootable and unrecoverable without assistance from another computer! Do not use your distro's automated partitioner or partitioning instructions!

from disko.

Lassulus avatar Lassulus commented on September 22, 2024 3

ah, I have a WIP commit which adds this for some types: #435 although I'm not very happy with the implementation. it's a lot of duplicated code and it would be nicer to include this more into the create step

from disko.

nbraud avatar nbraud commented on September 22, 2024

Great to hear you were already on it, thanks <3

from disko.

nalves599 avatar nalves599 commented on September 22, 2024

@Lassulus Thank you for your amazing work!
Any updates on this? Do you have any draft or anything done?

from disko.

Lassulus avatar Lassulus commented on September 22, 2024

alrighty, we now have #568 which "should" make the createScript non destructive, be careful to use the createScript and not the diskoScript (that one wipes the disks first). Also this code is not yet tested on a real setup, so take care to not lose your date! :)

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.