diff --git a/modules/ROOT/pages/tutorial-user-systemd-unit-on-boot.adoc b/modules/ROOT/pages/tutorial-user-systemd-unit-on-boot.adoc index b91d1b2b..5168eb74 100644 --- a/modules/ROOT/pages/tutorial-user-systemd-unit-on-boot.adoc +++ b/modules/ROOT/pages/tutorial-user-systemd-unit-on-boot.adoc @@ -68,7 +68,7 @@ storage: hard: false ---- -And finally we setup lingering for the systemd user level instance so that it gets started directly on boot and stays running: +We set up lingering for the systemd user level instance so that it gets started directly on boot and stays running: [source,yaml] ---- @@ -80,6 +80,12 @@ storage: mode: 0644 ---- +The following directories do not exist yet so they need to be created to tell ignition to set the right ownership and permissions: + +* `/home/sleeper/.config` +* `/home/sleeper/.config/systemd` +* `/home/sleeper/.config/systemd/user` + == Writing the Butane config and converting to Ignition The final Butane config, stored in `user.bu`, will be: @@ -96,8 +102,26 @@ passwd: - name: sleeper storage: directories: + - path: /home/sleeper/.config + mode: 0755 + user: + name: sleeper + group: + name: sleeper + - path: /home/sleeper/.config/systemd + mode: 0755 + user: + name: sleeper + group: + name: sleeper + - path: /home/sleeper/.config/systemd/user + mode: 0755 + user: + name: sleeper + group: + name: sleeper - path: /home/sleeper/.config/systemd/user/default.target.wants - mode: 0744 + mode: 0755 user: name: sleeper group: @@ -106,7 +130,7 @@ storage: - path: /var/lib/systemd/linger/sleeper mode: 0644 - path: /home/sleeper/.config/systemd/user/linger-example.service - mode: 0755 + mode: 0644 contents: inline: | [Unit]