From 88ae87539644c2d5a58bb6ff3b35e8ae2e1eeac3 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Tue, 2 Jan 2024 18:58:06 +0900 Subject: [PATCH] packaging: Add reboot-storage file to mount inform partition Add reboot-staroge file to mount a inform partition. If there is a file under /hal/etc/reboot/, it will be mouting to /mnt/inform while booting time. It has to create a physical partition with inform as label. Change-Id: I2a693716c9adba91961086cb23b5563801abbc84 Signed-off-by: Jaehoon Chung --- packaging/hal-backend-device-generic.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packaging/hal-backend-device-generic.spec b/packaging/hal-backend-device-generic.spec index 25318a5..9010d0e 100644 --- a/packaging/hal-backend-device-generic.spec +++ b/packaging/hal-backend-device-generic.spec @@ -30,6 +30,10 @@ make %{?jobs:-j%jobs} %install %make_install +# Reboot register storage +mkdir -p %{buildroot}%{_hal_sysconfdir}/reboot +touch %{buildroot}%{_hal_sysconfdir}/reboot/register_storage + %post /sbin/ldconfig @@ -39,3 +43,4 @@ make %{?jobs:-j%jobs} %files %manifest %{name}.manifest %{_hal_licensedir}/%{name}/LICENSE.Apache-2.0 +%{_hal_sysconfdir}/reboot/register_storage -- 2.34.1