Add support for *.mount units 46/296646/2
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 2 Aug 2023 08:48:24 +0000 (10:48 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 2 Aug 2023 11:41:53 +0000 (13:41 +0200)
Change-Id: Ib7b0c3ac07d428cb7ad2183d7276cc375237460e

src/systemd_generator/isu-generator

index 06e18fa..c44d6bc 100755 (executable)
@@ -126,6 +126,12 @@ isu_prepare()
                install_units "$srv_path" "$isu_pkg_name"
 
        done
+
+       for srv_path in "$isu_pkg_dir"/${ISU_SERVICES_DIR}/*.mount; do
+               if ! test  -r "$srv_path"; then continue; fi
+               cp -a "$srv_path" "$UNITDIR/"
+       done
+
 }
 
 # assume isu packages are extracted