Skip to content

Commit

Permalink
images: Make sure /run/systemd/system doesn't exist
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 b936aa2 commit 006032d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions images/mint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,23 @@ packages:
deb http://security.ubuntu.com/ubuntu {{ source.suite }}-security main restricted universe multiverse
actions:
- trigger: post-unpack
action: |-
#!/bin/sh
set -eux
# Make sure systemd doesn't think it's running.
rm -Rf /run/systemd/system
chattr +i /run/systemd
- trigger: post-packages
action: |-
#!/bin/sh
set -eux
# Remove the immutable flag.
chattr -i /run/systemd
- trigger: post-unpack
action: |-
#!/bin/sh
Expand Down
17 changes: 17 additions & 0 deletions images/ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,23 @@ packages:
- riscv64

actions:
- trigger: post-unpack
action: |-
#!/bin/sh
set -eux
# Make sure systemd doesn't think it's running.
rm -Rf /run/systemd/system
chattr +i /run/systemd
- trigger: post-packages
action: |-
#!/bin/sh
set -eux
# Remove the immutable flag.
chattr -i /run/systemd
- trigger: post-update
action: |-
#!/bin/sh
Expand Down

0 comments on commit 006032d

Please sign in to comment.