Bug 1136776

Summary: Error "Parent directory is not a Btrfs volume" while creating new user in YaST2
Product: [openSUSE] openSUSE Distribution Reporter: Joachim Wagner <jo4su>
Component: YaST2Assignee: E-mail List <yast2-maintainers>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.1   
Target Milestone: ---   
Hardware: x86-64   
OS: Linux   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Joachim Wagner 2019-05-29 16:10:29 UTC
A few users report the error "Cannot create home directory /home/usename. Parent directory is not a Btrfs volume" in https://forums.opensuse.org/showthread.php/535805-Error-while-creating-new-user

I see the same error in a fresh install of Leap 15.1 (up to date via allowing access to online repositories during installation) with btrfs for / and xfs for /home (fresh filesystems created in the installer; xfs with quota enabled).

Workaround: Press OK and create home directories manually using /etc/skel.
Comment 1 Lukas Ocilka 2019-05-30 12:02:30 UTC
Yes, we are sorry for that. It's already listed here https://en.opensuse.org/openSUSE:Most_annoying_bugs_15.1

We have a fix at https://github.com/yast/yast-users/pull/206/files
but we are waiting for maintenance update.

You can try to apply the patch. Well just change file
/usr/share/YaST2/modules/Users.pm - this line

   my $use_btrfs_subvolume = $user{"btrfs_subvolume"} || 0;

replace with

   my $use_btrfs_subvolume = bool($user{"btrfs_subvolume"});

That should help.

*** This bug has been marked as a duplicate of bug 1136281 ***