Skip to content

Commit

Permalink
images: Tweak systemd handling
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Jun 28, 2024
1 parent 65d9ba8 commit 1765d94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion images/mint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ actions:
set -eux
# Make sure systemd doesn't think it's running.
mkdir -p /run/systemd
[ ! -d /run/systemd ] && exit 0
rm -Rf /run/systemd/system
chattr +i /run/systemd
Expand All @@ -399,6 +399,7 @@ actions:
set -eux
# Remove the immutable flag.
[ ! -d /run/systemd ] && exit 0
chattr -i /run/systemd
- trigger: post-unpack
Expand Down
3 changes: 2 additions & 1 deletion images/ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ actions:
set -eux
# Make sure systemd doesn't think it's running.
mkdir -p /run/systemd
[ ! -d /run/systemd ] && exit 0
rm -Rf /run/systemd/system
chattr +i /run/systemd
Expand All @@ -653,6 +653,7 @@ actions:
set -eux
# Remove the immutable flag.
[ ! -d /run/systemd ] && exit 0
chattr -i /run/systemd
- trigger: post-update
Expand Down

0 comments on commit 1765d94

Please sign in to comment.