Use systemctl enable command (instead of add-wants command) to
enable systemd type units.
Without these changes the following error message is seen on
TEST-FULL-SYSTEMD:
```
Failed to add dependency on unit: Unit initrd.target does not exist
Failed to add dependency on unit: Unit initrd.target does not exist
```
"$systemdutildir/portable/profile/strict/*.conf" \
"$systemdutildir/portable/profile/trusted/*.conf" \
"$systemdsystemunitdir"/systemd-portabled.service \
+ "$systemdsystemunitdir"/initrd.target.wants/systemd-portabled.service \
"$systemdsystemunitdir/systemd-portabled.service.d/*.conf" \
"$systemdsystemunitdir"/dbus-org.freedesktop.portable1.service \
portablectl
touch "$initdir"/etc/resolv.conf
# Enable systemd type unit(s)
- $SYSTEMCTL -q --root "$initdir" add-wants initrd.target systemd-portabled.service
$SYSTEMCTL -q --root "$initdir" enable systemd-portabled.service
# Install the hosts local user configurations if enabled.
if dracut_module_included "systemd"; then
inst_script "$moddir/dracut-initqueue.sh" /usr/bin/dracut-initqueue
inst_simple "$moddir/dracut-initqueue.service" "$systemdsystemunitdir/dracut-initqueue.service"
- $SYSTEMCTL -q --root "$initdir" add-wants initrd.target dracut-initqueue.service
+ inst_simple "$systemdsystemunitdir"/initrd.target.wants/dracut-initqueue.service
+
+ # Enable systemd type unit(s)
+ $SYSTEMCTL -q --root "$initdir" enable dracut-initqueue.service
fi
dracut_need_initqueue