agama/live/live-root/usr/lib/dracut/modules.d/99initrd-nmtui
Ladislav Slezák eb76ca8139
Fixed starting the nmtui and self-update services (#3504)
## Problem

- The self-update service is not started at boot

## Details

- The service files have been moved from `/usr/lib/systemd/system` to
`/etc/systemd/system`
- The dracut complains:
```
dracut[I]: *** Including module: live-self-update ***
dracut-install: ERROR: installing '/usr/lib/systemd/system/live-self-update.service'
dracut[E]: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.AltRpF/initramfs -a /usr/lib/systemd/system/live-self-update.service live-self-update
Failed to enable unit: Unit live-self-update.service does not exist
```
- Unfortunately dracut continues and ignores the error, that's the
reason nobody noticed the problem


## Solution

- Fix the service file location
- The same problem was found in the `initrd-nmtui.service` file
- Use `set -e` to avoid similar problems in the future
- Return the original exit value so the `systemctl status
live-self-update.service` does not report a failure

## Testing

- Tested with a locally built ISO, the self-update service starts
properly
2026-05-15 17:08:24 +02:00
..
initrd-nmtui-cmdline.sh feat(live): Added new boot option "live.net_config_tui=1" (#2923) 2026-01-09 16:08:10 +01:00
module-setup.sh Fixed starting the nmtui and self-update services (#3504) 2026-05-15 17:08:24 +02:00