aboutsummaryrefslogtreecommitdiff
path: root/configs/baseline
Commit message (Collapse)AuthorAgeFilesLines
...
* Pass profile directory as parameter to mkarchisoDavid Runge2020-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **archiso/mkarchiso**: Change all override option parameters (i.e. `-A`, `-C`, `-D`, `-L`, `-P` and `-g`) to not directly override the global variable they are tied to, but instead using an `override_` prefixed variable. Add `_set_overrides()` to use `override_` prefixed variables (if set) to override those without a prefix. Remove `-B` (a profile directory) from the list of parameters. The profile directory is now provided as separate non-option parameter. Add a call to `_read_profile()`, `_set_overrides()` and `command_build_profile()` to the fallthrough option of the switch-case checking `command_name` - a non-option parameter to mkarchiso. This effectively provides the possibility to set the profile directory using a non-option parameter, while still maintaining compatibility to legacy named arguments used in the configs' `build.sh` scripts. Extend the warning in regards to legacy `build.sh` based commands to mkarchiso by providing an EOL with archiso v49. Change the help output to reflect the changes and further elaborate on the legacy commands used by `build.sh` scripts. Change help output to be ordered alphabetically. Add help output for `-r` and `-g` options. Call `_set_overrides()` for legacy commands that accept one or more of the overriden options (i.e. `command_init`, `command_install`, `command_prepare` and `command_iso`). Various style fixes. **configs/{baseline,releng}/build.sh**: Change call to mkarchiso to use the profile's directory as a named argument instead of an option-argument. **README.rst**: Fix documentation on how to call mkarchiso with a profile directory. Fix wording and ordering of option arguments for run_archiso documentation. Fixes #52
* Deprecate build.sh scripts and old mkarchiso commandsnl67202020-08-171-110/+3
| | | | | | Replace build.sh scripts with calls to mkarchiso -B "profiledir" build_profile. Fixes https://gitlab.archlinux.org/archlinux/archiso/-/issues/37 .
* archiso/mkarchiso: allow choosing boot modes from profiledef.shnl67202020-08-171-0/+12
| | | | | | | | | | | Boot mode names are: - bios_syslinux.mbr: SYSLINUX in MBR - bios.syslinux.eltorito: SYSLINUX (ISOLINUX) via El Torito - uefi-x64.systemd-boot.esp: systemd-boot on ESP in MBR - uefi-x64.systemd-boot.eltorito: systemd-boot on ESP via El Torito It is not yet possible to create an ISO with only El Torito or only MBR boot modes!
* Install mkinitcpio-archiso-hooks in airootfs instead of copying the hooks ↵nl67202020-07-302-5/+1
| | | | from host
* Build initramfs images only oncenl67202020-07-294-16/+85
| | | | | Place custom mkinitcpio.conf in airootfs. Use a custom mkinitcpio preset to specify generated image file path.
* Add license and basic documentationDavid Runge2020-07-296-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | LICENSE: Add GPL-3.0 license. {{archiso,configs}/*,.editorconfig,.gitlab-ci.yml}: Add SPDX license identifier. Makefile: Add SPDX license identifier. Install the `run_archiso.sh` script as global executable `run_archiso`. Use -D and -t flags to install to install files more generically (without a previous call to install the directory). README.rst: Add README outlining the project's scope, how to build images from the profiles and how to test. AUTHORS.rst: Add list of all direct contributors to the repository. CONTRIBUTING.rst: Add basic contribution guidelines, explaining the linter and the license in use. Closes #7 Closes #3
* Copy files more genericallyDavid Runge2020-07-282-2/+2
| | | | | | | | | | | | | | configs/*: Copy all files that do not need a rename generically (not specifying a destination file name). Do not rename vmlinuz-linux to vmlinuz or vmlinuz.efi (as this serves no purpose and makes the scripts more complicated). Do not rename microcode (i.e. {amd,intel}-ucode.img) when copying them and change all boot loader configuration files that assume a renamed microcode image. Add note and link to Arch Linux wiki to state why memtest.bin is renamed to memtest. Copy license files for {amd,intel}-ucode and memtest more generically by placing them into subdirectories with the same name as the package (to circumenvent overwriting one other). Closes #33
* Set up custom user home directories and their permissionsnl67202020-07-281-0/+14
|
* Install all packages in one go and don't copy pacman.conf to airootfsnl67202020-07-282-15/+13
| | | | | | | | | configs/{baseline,releng}/build.sh: Copy custom files to airootfs before installing packages. Instead of calling `mkarchiso init`, list all required packages in packages.x86_64 and install them all at once with `mkarchiso install`. The mkdir command which `mkarchiso init` performs is now done by make_custom_airootfs. configs/releng/build.sh: Don't copy configs/releng/pacman.conf to airootfs, it is only meant to provide a unmodified pacman.conf durring pacstrap. In airootfs, an unmodified /etc/pacman.conf will be installed with the pacman package.
* Fix baseline profilenl67202020-07-283-0/+118
| | | | | | | Install linux and mkinitcpio packages. Remove root user's password. Fixes https://bugs.archlinux.org/task/64236 .
* Set root user's shell and password with custom /etc/passwd and /etc/shadownl67202020-07-202-0/+12
| | | | Correct shadow file permissions from build.sh.
* Fix unexpected script_path behaviourJustin Kromlinger2020-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When one calls the `build.sh` scripts with bash instead of the shebang `$script_path` contains the filepath, not the parent dir: ``` % cd /path % grep -A2 script_path= build.sh script_path=$(readlink -f "${0%/*}") echo "$script_path" exit 0 % ./build.sh /path % bash build.sh /path/build.sh ``` This commit fixes that: ``` % grep -A2 script_path= build.sh script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )" echo "$script_path" exit 0 % ./build.sh /path % bash build.sh /path ```
* Use /usr/bin/env in shebangsnl67202020-07-111-1/+1
|
* Automatically boot the installation environment from syslinuxnl67202020-07-111-0/+3
| | | | Timeout is 3 seconds to match systemd-boot's configuration.
* Clear the screen after syslinux exitsnl67202020-06-301-0/+1
| | | | Reduce the time where boot loader artifacts linger on screen after the boot loader has done its job.
* Introducing shellcheck in gitlab CIDavid Runge2020-06-291-24/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | archiso/mkarchiso: Quoting all variables. Changing pkg_list to be an array instead of a string for easier handling. Using read to properly populate pkg_list from OPTARG with stripped whitespaces. Not exporting iso_label anymore as there seems to be no reason to do so. Introducing line breaks. .editorconfig: Setting max_line_length to 120. Adding a section for YAML files (e.g. .gitlab-ci.yml). configs/releng/build.sh Quting nearly all variables. Introducing line breaks. configs/baseline/build.sh: Quoting all variables. Introducing line breaks. .gitlab-ci.yml: Adding gitlab CI for shelleck linting of the config build scripts, mkarchiso and startup scripts in releng. Closes #19
* Ensure correct umask for scriptsGerardo Exequiel Pozzi2018-06-231-0/+2
| | | | | | Fix for FS#58473 Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* configs/*: convert to new array-based mkinitcpio varsGerardo Exequiel Pozzi2017-11-021-1/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [configs/*] Install archiso initcpio files in /etc/initcpioGerardo Exequiel Pozzi2014-10-291-2/+4
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [archiso] Rework checksum functionGerardo Exequiel Pozzi2014-06-281-1/+0
|
* [archiso] Drop aitab supportGerardo Exequiel Pozzi2014-06-282-9/+1
| | | | | | | Always create one filesystem of a fixed size (32G), format (ext4) and know name "airootfs". Simplify logic a lot.
* [archiso] Rename root-image to airootfsGerardo Exequiel Pozzi2014-06-282-14/+14
| | | | | | Two purposes: * systemd filename friendly: "-" is used for "/" and must be escaped with "\x20" * ISO9660 filename friendly: "-" is replaced with "_"
* [archiso] changes for syslinux 6Gerardo Exequiel Pozzi2013-10-192-3/+7
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [configs/baseline] Rework build.sh add run_once() like in releng profile and ↵Gerardo Exequiel Pozzi2013-01-021-55/+39
| | | | | | other misc things Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [configs/baseline] Use gzip (default) instead of xzGerardo Exequiel Pozzi2013-01-022-2/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [configs/baseline] Use relative paths for syslinux like in releng profileGerardo Exequiel Pozzi2013-01-022-4/+4
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [configs/baseline] Update mkinitcpio.conf for 0.12Gerardo Exequiel Pozzi2012-12-101-1/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Implement own chroot functions in mkarchisoGerardo Exequiel Pozzi2012-03-161-3/+4
| | | | | | | | | | | | | * Remove devtools dependency. * Better control over what files are touched inside chroot (root-image). Now: NONE :) * Two new commands: + init: To install {base} group and other needed packages (syslinux for now) + run: If we want to run some command inside chroot (mkinitcpio, locale-gen, useradd, etc etc...) * Renamed command: "created" to "install", says much better what does. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] /lib/initcpio -> /usr/lib/initcpioGerardo Exequiel Pozzi2012-03-041-2/+2
| | | | | | | | | | Needs mkinitpcio >= 0.8.4 Next changes will be for mdadm and mkinitcpio-nfs-utils: * /lib/initcpio/udev/11-dm-initramfs.rules * /lib/initcpio/ipconfig , /lib/initcpio/nfsmount Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [configs/*] syslinux: Use UI instead of DEFAULT for *menu.c32Gerardo Exequiel Pozzi2011-12-021-5/+1
| | | | | | | | * UI is more correct than DEFAULT for simple menu system. * Remove TIMEOUT * Remove PROMPT 0, this is the default value. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [configs/*] chroot to root-image for initramfs buildGerardo Exequiel Pozzi2011-11-281-5/+3
| | | | | | | | | | | Avoid issues with -b BASEDIR (*). We became independent of the mkinitcpio version of the build environment. (*) For example of a recent issue: http://mailman.archlinux.org/pipermail/arch-projects/2011-November/002202.html http://mailman.archlinux.org/pipermail/arch-projects/2011-November/002205.html Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] install hook cleanupsGerardo Exequiel Pozzi2011-11-051-1/+1
| | | | | | | | * Remove IDE stuff. * Remove modules that can be added via relevant hooks. * Replace sata with virtio in baseline profile. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Unify ->Gerardo Exequiel Pozzi2011-10-121-1/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Switch from cdrkit to libisoburnGerardo Exequiel Pozzi2011-08-291-0/+1
| | | | | | | | | | * Preparing terrain for UEFI support. * Also make isohybrid hack in one step. * Removed UDF layer, since xorriso does not support it. * Removed unsupported options by xorriso (-uid/-gid/-allow-limited-size) * Removed option already default in xorriso (-input-charset utf-8) Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Use -w <work_dir> instead of cmd <work>, add -o <out_dir>Gerardo Exequiel Pozzi2011-08-291-5/+6
| | | | | | | | | | | | | | Default (if not specified) -w work -o out. -o <out_dir> is only used by 'iso' command. Adjust build.sh of releng and baseline profile to reflect this change. <project> - work <- $work_dir - out <- $out_dir Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [configs/*] Rename $name -> $iso_name, $version -> $iso_versionGerardo Exequiel Pozzi2011-08-291-3/+3
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [configs/baseline] Add missing -D param to checksum commandGerardo Exequiel Pozzi2011-08-181-1/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Add checksum= boot paramGerardo Exequiel Pozzi2011-08-151-0/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [configs/*] Use $script_path for "source" files.Gerardo Exequiel Pozzi2011-08-151-4/+6
| | | | | | Allows to execute directly build.sh from any directory, using it as working dir. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [configs/*] Remove custom fstab, not needed anymore.Gerardo Exequiel Pozzi2011-08-152-11/+0
| | | | | | | | | | re-mount / as rw does not fail since regular file /etc/mtab does not exist at that stage. /etc/mtab was removed from root-image in this commit: 93763a2d8225a92ef99e73478ac118919872ab27 Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Update kernel image name for linux-3.0Gerardo Exequiel Pozzi2011-07-242-3/+3
| | | | | | | Also rename kernel from vmlinuz-linux to vmlinuz to make filename ISO9660 friendly. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Update for mkinitcpio >= 0.7Gerardo Exequiel Pozzi2011-07-091-8/+15
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
* [archiso] Use dm-snapshot instead of aufs2 (A.K.A. "The Big Commit")Gerardo Exequiel Pozzi2011-06-186-0/+120
* Use device mapper + snapshot module, instead union layer filesystem. * A block-level approach vs vfs-level. * No more unofficial (Linux) things. * More memory is needed. * Refactor mkarchiso. * Refactor hooks/archiso. * Fix install/archiso_pxe_nbd (due recent change in mkinitcpio-0.6.15 on checked_modules()/all_modules()) [Thanks Dave for the improved workaround] * New configs/releng to build official images. * Works with a Bash script instead of Makefile. (better control and easy to maintain) * Remove configs/syslinux-iso. * Remove archiso2dual script. Integrate functionality in configs/releng. * New configs/baseline to build the most basic live medium or use as template. * New README (draft). [Thanks Dieter for fixing english grammar] Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>