Skip to content

Instantly share code, notes, and snippets.

@dgdavid
Last active February 12, 2019 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgdavid/20b7602d7f03578c1ec9ec4fd7465aa4 to your computer and use it in GitHub Desktop.
Save dgdavid/20b7602d7f03578c1ec9ec4fd7465aa4 to your computer and use it in GitHub Desktop.

Create home directory as Btrfs subvolume

ncurses_yast_user_add_btrfs_subvolume

The Create as Btrfs subvolume option has been added in the "Details" tab when adding or editing a user.

Taking into account that it only will be enabled

  • when adding a new user
  • when there is present a Btrfs filesystem

it would be nice to test the scenarios described in below comments, all of them from the "Users" tab of yast users module.


More details:
@dgdavid
Copy link
Author

dgdavid commented Feb 11, 2019

Editing a user

  • Select a user
  • Go to "Details" tab
  • Check that Create as Btrfs Subvolume option is disabled

@dgdavid
Copy link
Author

dgdavid commented Feb 11, 2019

Deleting a user

Previously, create a user with a Btrfs subvolume home.

  • Select the user
  • Delete
  • Check the Delete Home Directory option
    deleting_user_confirmation
  • Yes
  • OK
  • Run "btrfs subvolume list -a path" and check that it does not contain the path to the home directory of deleted user.
    NOTE that path could be / or /home or whatever parent directory where the user home was (pretend to be) created

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