Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declarative partitioning with systemd-repart/growfs/makefs #87073

Closed
Mic92 opened this issue May 6, 2020 · 15 comments
Closed

Declarative partitioning with systemd-repart/growfs/makefs #87073

Mic92 opened this issue May 6, 2020 · 15 comments
Assignees

Comments

@Mic92
Copy link
Member

Mic92 commented May 6, 2020

Currently we are still manually partition block devices and formatting them with filesystems. However with systemd 245 there is support for declarative disk management. The question is do we need anything beyond a simple module + documentation to support this feature?

https://www.freedesktop.org/software/systemd/man/systemd-repart.html#
https://www.freedesktop.org/software/systemd/man/systemd-growfs.html#

@Mic92 Mic92 changed the title Declarative partitioning for systemd-repart/growfs/makefs Declarative partitioning with systemd-repart/growfs/makefs May 6, 2020
@flokli
Copy link
Contributor

flokli commented May 6, 2020

I think we already have a lot of manual code doing this in bash in stage2. If #72401 is done, we could move all this logic to native implementations.

@flokli flokli self-assigned this Jun 3, 2020
@flokli
Copy link
Contributor

flokli commented Jun 3, 2020

Thinking about it again, we might even be able to do this before we have systemd-in-initrd - depends on when mountpoints made withautoFormat need to be available.

Related: #41180

@stale
Copy link

stale bot commented Nov 30, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 30, 2020
@srhb
Copy link
Contributor

srhb commented Dec 1, 2020

Still relevant to me.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 1, 2020
@stale
Copy link

stale bot commented Jun 3, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2021
@emilazy
Copy link
Member

emilazy commented Jun 3, 2021

(I wish you could mark an issue as "never stale")

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2021
@xaverdh
Copy link
Contributor

xaverdh commented Jun 3, 2021

I think one issue is that systemd-repart only supports gpt?

@emilazy
Copy link
Member

emilazy commented Jun 3, 2021

I think it’s fine for new, optional features to only support GPT disks, which have many advantages over MBR anyway and work with both UEFI and legacy BIOS systems.

@xaverdh
Copy link
Contributor

xaverdh commented Jun 5, 2021

(I wish you could mark an issue as "never stale")

Or maybe the stale bot should implement some form of exponential backoff?

So when should systemd-repart be run? From stage-2 (or initrd even), or when the system is running?

@flokli
Copy link
Contributor

flokli commented Jun 7, 2021

Linking #74842 (comment), as it seems to be related.

@flokli
Copy link
Contributor

flokli commented Jun 8, 2021

Also related, #120015 adds systemd-makefs to initrd

@weilbith
Copy link

This is exactly the feature I'm searching for. Looking forward to get this closed. 🤗

@stale
Copy link

stale bot commented Jan 9, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 9, 2022
@bachp bachp removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label May 21, 2022
@blitz
Copy link
Contributor

blitz commented Oct 30, 2023

@nikstur
Copy link
Contributor

nikstur commented Oct 30, 2023

I believe this was solved with general systemd-repart support introduce in #214396
growfs and makefs were already supported before. @Mic92 please re-open if you thought about something different.

@nikstur nikstur closed this as completed Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

9 participants