-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Summary
The initrd-zfs-generator in sd-zfs creates broken symlinks in /run/systemd/generator/initrd-root-device.target.wants/, causing systemd to fail with "Too many levels of symbolic links" during boot. This prevents ZFS pools from being imported and the root dataset from being mounted.
Affected Repository
- Upstream: https://github.com/dasJ/sd-zfs
- AUR package: mkinitcpio-sd-zfs
Problem Description
When the generator creates symlinks in .wants/ directories, it creates them pointing to themselves instead of using relative paths:
Current (broken):
zfs-import-cache.service -> zfs-import-cache.service
Expected (correct):
zfs-import-cache.service -> ../zfs-import-cache.service
Symptoms
- systemd error:
Too many levels of symbolic links zfs-import-cache.servicenever runs- ZFS pool import fails
- Root dataset cannot be mounted
- System fails to boot
Environment
- OS: Arch Linux
- Kernel: 6.17.9-arch1-1
- ZFS: 2.3.5
- Package: mkinitcpio-sd-zfs (AUR)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels