Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 5c38faa

Browse files
committed
Add service for mounting /boot using CBM
1 parent 3d18c97 commit 5c38faa

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Unit]
2+
Description=mount @BOOTDIR@ using clr-boot-manager
3+
4+
[Service]
5+
Type=oneshot
6+
RemainAfterExit=yes
7+
ExecStart=@BINDIR@/clr-boot-manager mount-boot
8+
ExecStop=@BINDIR@/umount @BOOTDIR@
9+
10+
[Install]
11+
WantedBy=multi-user.target

data/meson.build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# Write systemd unit
22
data_conf = configuration_data()
33
data_conf.set('BINDIR', path_bindir)
4+
data_conf.set('BOOTDIR', with_boot_dir)
45

56
configure_file(
67
input: 'clr-boot-manager-booted.service.in',
78
output: 'clr-boot-manager-booted.service',
89
configuration: data_conf,
910
install_dir: with_systemd_system_unit_dir,
1011
)
12+
13+
configure_file(
14+
input: 'clr-boot-manager-mount-boot.service.in',
15+
output: 'clr-boot-manager-mount-boot.service',
16+
configuration: data_conf,
17+
install_dir: with_systemd_system_unit_dir,
18+
)

0 commit comments

Comments
 (0)