Skip to content

Commit

Permalink
Clean up systemd services
Browse files Browse the repository at this point in the history
  • Loading branch information
Bownairo committed Jan 31, 2024
1 parent 956c9c9 commit cb783e1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ic-os/guestos/rootfs/Dockerfile
Expand Up @@ -108,6 +108,13 @@ RUN systemctl enable \
systemd-resolved \
systemd-journal-gatewayd

RUN systemctl disable \
apt-daily.service \
apt-daily.timer \
apt-daily-upgrade.service \
apt-daily-upgrade.timer \
motd-news.service

# Add user/group entries specified here: /usr/lib/sysusers.d/systemd.conf E.g., systemd-timesync/coredump.
## `systemd-sysusers` does not honor the SOURCE_DATE_EPOCH env var.
## With `podman --timestamp=0` each file gets written with timestamp of the Unix epoch.
Expand Down
12 changes: 12 additions & 0 deletions ic-os/guestos/rootfs/etc/systemd/system/user@.service
@@ -0,0 +1,12 @@
[Unit]
Description=User Manager for UID %i (DISABLED)
After=systemd-user-sessions.service
After=user-runtime-dir@%i.service
Requires=user-runtime-dir@%i.service

[Service]
User=%i
Type=simple
RemainAfterExit=yes
ExecStart=-/bin/true
Slice=user-%i.slice

0 comments on commit cb783e1

Please sign in to comment.