Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Merge pull request #23 from ublue-os/systemd-units
Browse files Browse the repository at this point in the history
feat: Systemd units
  • Loading branch information
bketelsen authored Feb 16, 2024
2 parents ff5fd54 + 77056cd commit 8919860
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions service/bext-mount.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ ConditionPathExists=!%f
DefaultDependencies=no
Requires=systemd-sysext.service
After=systemd-sysext.service
After[email protected]
Wants[email protected]
[Service]
Type=oneshot
ExecStartPre=mkdir -p /tmp/extensions.d/bin
ExecStartPre=mkdir -p /nix/store
ExecStartPre=bext mount extensions --refresh
ExecStart=bext mount store --refresh
ExecStopPost=bext mount path
[Install]
WantedBy=multi-user.target
14 changes: 14 additions & 0 deletions service/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=Enable mount points in / for ostree
ConditionPathExists=!%f
DefaultDependencies=no
Requires=local-fs-pre.target
After=local-fs-pre.target
[Service]
Type=oneshot
ExecStartPre=chattr -i /
ExecStart=mkdir -p '%f'
ExecStopPost=chattr +i /

[Install]
WantedBy=multi-user.target

0 comments on commit 8919860

Please sign in to comment.