Skip to content

Commit

Permalink
dracut/99setup-root: Fix failed setup of wants dependency
Browse files Browse the repository at this point in the history
The build log contained this error message:
  ln: failed to create symbolic link '/var/tmp/portage/sys-kernel/coreos-kernel-5.15.24/temp/dracut.Ddrb5k/initramfs//usr/lib/systemd/system/initrd.target.wants/initrd-setup-root.service': No such file or directory
Make sure the directory exists to be able to set up the link.
  • Loading branch information
pothos committed Feb 25, 2022
1 parent 506ea2d commit 23f9f10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dracut/99setup-root/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ install() {
inst_simple "${moddir}/initrd-setup-root.service" \
"${systemdsystemunitdir}/initrd-setup-root.service"

mkdir -p "${systemdsystemunitdir}/initrd.target.wants"
ln_r "${systemdsystemunitdir}/initrd-setup-root.service" \
"${systemdsystemunitdir}/initrd.target.wants/initrd-setup-root.service"
}

0 comments on commit 23f9f10

Please sign in to comment.