From e9f209efbf344213609d39b652e7bcbbfa14054d Mon Sep 17 00:00:00 2001 From: nl6720 Date: Wed, 12 Aug 2020 18:24:30 +0300 Subject: Deprecate build.sh scripts and old mkarchiso commands Replace build.sh scripts with calls to mkarchiso -B "profiledir" build_profile. Fixes https://gitlab.archlinux.org/archlinux/archiso/-/issues/37 . --- README.rst | 14 +- archiso/mkarchiso | 23 +- configs/baseline/build.sh | 113 +------- configs/releng/airootfs/root/customize_airootfs.sh | 2 +- configs/releng/build.sh | 306 +-------------------- 5 files changed, 22 insertions(+), 436 deletions(-) diff --git a/README.rst b/README.rst index b65db6d..4c17082 100644 --- a/README.rst +++ b/README.rst @@ -32,8 +32,7 @@ Profiles Archiso comes with two profiles: **baseline** and **releng**. While both can serve as starting points for creating custom live media, **releng** is used to create the monthly installation medium. They can be found below `configs/baseline/ `_ and `configs/releng/ `_ -(respectively). Both profiles are defined by files to be placed into overlays (e.g. *airootfs* -> *the image's /*) and -dynamic actions (i.e. *build.sh* scripts). +(respectively). Both profiles are defined by files to be placed into overlays (e.g. *airootfs* -> *the image's /*). Create images ============= @@ -50,28 +49,27 @@ be lost on update). The examples below will assume an unmodified profile in a system location (unless noted otherwise). -It is advised to check the help information of the **build.sh** scripts in the profiles: +It is advised to check the help information of the **mkarchiso**: .. code:: bash - /usr/share/archiso/configs/releng/build.sh --help + mkarchiso -h Create images with packaged archiso ----------------------------------- .. code:: bash - /usr/share/archiso/configs/releng/build.sh -w path/to/work_dir -o path/to/out_dir + mkarchiso -B path/to/profile -w path/to/work_dir -o path/to/out_dir build_profile Create images with local clone ------------------------------ -Clone this repository and make sure to run with the local `mkarchiso `_ script in *PATH* (if it has -been modified): +Clone this repository and run: .. code:: bash - PATH="archiso:$PATH" ./configs/releng/build.sh -w path/to/work_dir -o path/to/out_dir + ./archiso/mkarchiso -B path/to/profile -w path/to/work_dir -o path/to/out_dir build_profile Testing ======= diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 482d934..7602e62 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -92,8 +92,8 @@ _usage () { IFS='' read -r -d '' usagetext < general options: + -B Directory of the archiso profile to build -p PACKAGE(S) Package(s) to install, can be used multiple times - -r Run inside airootfs -C Config file for pacman. Default: '${pacman_conf}' -L