From f1c10b09c8b254a39099b1dc4099f8921d7e4237 Mon Sep 17 00:00:00 2001 From: Silke Hofstra Date: Sat, 17 Oct 2020 14:17:56 +0200 Subject: [PATCH] Add service for mounting /boot using CBM --- data/clr-boot-manager-mount-boot.service.in | 11 +++++++++++ data/meson.build | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 data/clr-boot-manager-mount-boot.service.in diff --git a/data/clr-boot-manager-mount-boot.service.in b/data/clr-boot-manager-mount-boot.service.in new file mode 100644 index 00000000..c07034de --- /dev/null +++ b/data/clr-boot-manager-mount-boot.service.in @@ -0,0 +1,11 @@ +[Unit] +Description=mount /boot using clr-boot-manager + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=@BINDIR@/clr-boot-manager mount-boot +ExecStop=@BINDIR@/umount /boot + +[Install] +WantedBy=multi-user.target diff --git a/data/meson.build b/data/meson.build index e14f45a4..88309709 100644 --- a/data/meson.build +++ b/data/meson.build @@ -8,3 +8,10 @@ configure_file( 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, +)