Skip to content

Conversation

@poettering
Copy link
Member

This adds a major new feature to homed: automatic resize of home dirs on login, logout and regularly inbetween.

This should make the LUKS backend a lot more friendly to multi-user scenarios as the disk size isn't statically assigned to home dirs anymore, but we can dynamically shrink and grow them whenever needed.

@poettering poettering added new-feature homed homed, homectl, pam_homed labels Nov 5, 2021
@poettering
Copy link
Member Author

(this is not ready to be merged yet, still needs docs + more tests)

@lgtm-com
Copy link

lgtm-com bot commented Nov 5, 2021

This pull request introduces 1 alert when merging 0a19583 into d874a13 - view on LGTM.com

new alerts:

  • 1 for Comparison result is always the same

@bluca
Copy link
Member

bluca commented Nov 12, 2021

Can some tests covering the new functionality be added?

@bluca
Copy link
Member

bluca commented Nov 23, 2021

anything left to do here or has it all been merged via split PRs?

@poettering poettering force-pushed the homed-auto-grow-shrink branch from 6e99078 to 4347b7a Compare November 23, 2021 17:25
@poettering
Copy link
Member Author

anything left to do here or has it all been merged via split PRs?

Yes. There's one thing still missing from the stuff that got merged: automatic rebalancing of free space between active homes. I have rebase that code now and added the docs, and repushed.

Will work on a test case too. Once that's done it's the last thing to review/merge on this topic.

@bluca
Copy link
Member

bluca commented Nov 25, 2021

some minor comments - also is it documented anywhere why this is only supported for LUKS?

The other backends allocate files from a common pool anyway. Only the LUKS2 backend has per-user file systems that need to resized to make free space available from the underlying file system. will add a comment to the man page about that.

Got it, thanks

@poettering poettering force-pushed the homed-auto-grow-shrink branch 2 times, most recently from bcdb81a to 4cc8aad Compare November 25, 2021 17:17
@poettering
Copy link
Member Author

force pushed a new version, with all raised points addressed. ptal

@poettering poettering added please-review and removed reviewed/needs-rework 🔨 PR has been reviewed and needs another round of reworks labels Nov 25, 2021
Copy link
Member

@bluca bluca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, needs rebase

@bluca bluca added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed needs-rebase and removed please-review labels Nov 25, 2021
@poettering poettering force-pushed the homed-auto-grow-shrink branch from 4cc8aad to 6d975fe Compare November 25, 2021 17:28
@poettering
Copy link
Member Author

rebased

@poettering
Copy link
Member Author

ubuntu CI failed, but its HOMED test suceeded, so we are good. yay!

@bluca bluca merged commit 485c9e1 into systemd:main Nov 25, 2021
@mbiebl
Copy link
Contributor

mbiebl commented Dec 16, 2021

ubuntu CI failed, but its HOMED test suceeded, so we are good. yay!

hm, the Ubunt CI builds with -Dhomed=false unless I'm mistaken and the HOMED test is a nop

@mbiebl
Copy link
Contributor

mbiebl commented Dec 16, 2021

# Check if homectl is installed, and if it isn't bail out early instead of failing
if ! test -x /usr/bin/homectl ; then
        echo OK >/testok
        exit 0
fi

Shouldn't this return "skipped" instead?

@bluca
Copy link
Member

bluca commented Dec 16, 2021

yeah, probably

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed homed homed, homectl, pam_homed new-feature

Development

Successfully merging this pull request may close these issues.

homectl support for additional or arbitrary mount options

4 participants