agama/live/live-root
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
..
etc Fixed medium check (bsc#1262311) 2026-04-23 10:33:07 +02:00
root Cleaned condition in the wrapper 2026-05-07 10:43:00 +02:00
usr Fixed starting the nmtui and self-update services (#3504) 2026-05-15 17:08:24 +02:00
var/lib/AccountsService/users Adapted to change in live root main directory 2025-06-03 09:36:39 +02:00