Skip to content

Commit

Permalink
Add service for mounting /boot using CBM
Browse files Browse the repository at this point in the history
  • Loading branch information
silkeh committed Aug 24, 2022
1 parent 3d18c97 commit 5c38faa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data/clr-boot-manager-mount-boot.service.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=mount @BOOTDIR@ using clr-boot-manager

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=@BINDIR@/clr-boot-manager mount-boot
ExecStop=@BINDIR@/umount @BOOTDIR@

[Install]
WantedBy=multi-user.target
8 changes: 8 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# Write systemd unit
data_conf = configuration_data()
data_conf.set('BINDIR', path_bindir)
data_conf.set('BOOTDIR', with_boot_dir)

configure_file(
input: 'clr-boot-manager-booted.service.in',
output: 'clr-boot-manager-booted.service',
configuration: data_conf,
install_dir: with_systemd_system_unit_dir,
)

configure_file(
input: 'clr-boot-manager-mount-boot.service.in',
output: 'clr-boot-manager-mount-boot.service',
configuration: data_conf,
install_dir: with_systemd_system_unit_dir,
)

0 comments on commit 5c38faa

Please sign in to comment.