From 41083cecc07f44ccca74022747aa9c703d8aa9d8 Mon Sep 17 00:00:00 2001 From: Manolis Stamatogiannakis Date: Mon, 24 May 2021 20:44:44 +0200 Subject: [PATCH] Include any SystemRescueModules files present in srm directory in the produced iso. --- README.md | 7 +++++++ build.sh | 7 +++++++ srm/.gitkeep | 0 3 files changed, 14 insertions(+) create mode 100644 srm/.gitkeep diff --git a/README.md b/README.md index d07ddf6..b9697cf 100644 --- a/README.md +++ b/README.md @@ -29,3 +29,10 @@ custom packages can be accessed. The build process can be started by running the build.sh script. It will create a large "work" sub-directory and the ISO file will be written in the "out" sub-directory. + +## Including your SystemRescueModules +If you want to include your own [SystemRescueModules][srm], place their srm files +in the [srm](./srm) directory of the repository before running the build script. + +[srm]: https://www.system-rescue.org/Modules/ + diff --git a/build.sh b/build.sh index 7c0097f..ff89281 100755 --- a/build.sh +++ b/build.sh @@ -239,6 +239,13 @@ make_prepare() { # Build ISO make_iso() { cp ${version_file} ${work_dir}/iso/${install_dir}/ + ( + shopt -s nullglob + rm -vf ${work_dir}/iso/${install_dir}/*.srm + for srm in srm/*.srm; do + cp -vf "$srm" ${work_dir}/iso/${install_dir}/ + done + ) setarch ${arch} mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" -L "${iso_label}" -P "${iso_publisher}" -A "${iso_application}" -o "${out_dir}" iso "${iso_name}-${iso_version}-${arch/x86_64/amd64}.iso" } diff --git a/srm/.gitkeep b/srm/.gitkeep new file mode 100644 index 0000000..e69de29