Skip to content

homectl create --image-path= does not work on 4Kn drives #30394

@nl6720

Description

@nl6720

systemd version the issue has been seen with

255-1

Used distribution

Arch Linux

Linux kernel version used

6.6.4-arch1-1

CPU architectures issue was seen on

x86_64

Component

systemd-homed

Expected behaviour you didn't see

A successfully created user in "inactive" state.

Unexpected behaviour you saw

The created user is "absent".

# homectl                                          
NAME  UID   GID   STATE  REALNAME HOME        SHELL        
test1 60510 60510 absent test1    /home/test1 /usr/bin/bash

1 home areas listed.

Steps to reproduce the problem

Have a drive with logical sector size of 4096 (in my case, it's virtual disk in libvirt/qemu):

# lsblk -pt /dev/sdc
NAME     ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED RQ-SIZE  RA WSAME
/dev/sdc         0   4096      0    4096    4096    1 none      256 128    0B

Create a user:

# homectl create test1 --storage=luks --image-path=/dev/sdc

Observe that the user is "absent" and try again with --luks-sector-size=4096:

# homectl create test1 --storage=luks --image-path=/dev/sdc --luks-sector-size=4096

Observe that nothing has changed. ☹️


Full boot log with systemd.log_level=debug: vm3-homectl-image-path.log

Additional program output to the terminal or log subsystem illustrating the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Programming errors, that need preferential fixing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions