1. 02 Sep, 2020 1 commit
  2. 25 Aug, 2020 2 commits
    • David Runge's avatar
      Add missing declaration of override_install_dir · 4b401931
      David Runge authored
      In d90184a7 the unbound variable `override_install_dir` was introduced by accident.
      It is required to be set to empty string to provide override functionality for `install_dir`.
      Fixes #57
    • David Runge's avatar
      Pass profile directory as parameter to mkarchiso · d90184a7
      David Runge authored
      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.
      Change call to mkarchiso to use the profile's directory as a named argument instead of an option-argument.
      Fix documentation on how to call mkarchiso with a profile directory.
      Fix wording and ordering of option arguments for run_archiso documentation.
      Fixes #52
  3. 21 Aug, 2020 1 commit
    • nl6720's avatar
      archiso/mkarchiso: reduce duplication and add more info messages · e2c5b452
      nl6720 authored
      Fixes to issues introduced in archlinux/archiso!59 :
      - _make_boot_on_fat(): copy initramfs from "${airootfs_dir}/boot/" not "${isofs_dir}/". Otherwise UEFI-only ISOs cannot be built.
      Some general fixes:
      - Replace mkdir with install. Unlike mkdir, install does not complain when the target exists.
      - Reduce excess newlines produced by messages.
      - Ensure FAT image gets unmounted in case the script is interrupted.
      - Create the ext4 image with mkfs.ext4 instead of truncate.
      - Do not rely on user and group names for chown commands. Use numeric UID and GID instead.
      - Minimize the times stderr is redirected to /dev/null.
      - Add missing '?' to getopts.
      - Standardize function definitions by removing spaces between the function name and () .
  4. 18 Aug, 2020 3 commits
  5. 17 Aug, 2020 6 commits
  6. 30 Jul, 2020 2 commits
  7. 29 Jul, 2020 1 commit
    • David Runge's avatar
      Add license and basic documentation · e264b446
      David Runge authored
      Add GPL-3.0 license.
      Add SPDX license identifier.
      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).
      Add README outlining the project's scope, how to build images from the profiles and how to test.
      Add list of all direct contributors to the repository.
      Add basic contribution guidelines, explaining the linter and the license in use.
      Closes #7
      Closes #3
  8. 30 Jun, 2020 1 commit
    • David Runge's avatar
      Fixing issues with variable quoting and arrays · 5e43a63b
      David Runge authored
      Calls to _pacman() need to be done with multiple parameters (e.g. array) instead of one string, as string splitting is
      not done in that function anymore.
      Turning _iso_efi_boot_args from string into an array to have an easier time of passing it to xorriso.
      Calling xorriso within the if statements instead of providing -quiet via variable.
      Fixing command_install() to provide packages separately to _pacman()
      Replacing all newlines when retrieving the packages from packages.x86_64 with spaces so they will be properly provided
      to "mkarchiso install".
  9. 29 Jun, 2020 1 commit
    • David Runge's avatar
      Introducing shellcheck in gitlab CI · 47533fd9
      David Runge authored
      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.
      Setting max_line_length to 120.
      Adding a section for YAML files (e.g. .gitlab-ci.yml).
      Quting nearly all variables.
      Introducing line breaks.
      Quoting all variables.
      Introducing line breaks.
      Adding gitlab CI for shelleck linting of the config build scripts, mkarchiso and startup scripts in releng.
      Closes #19
  10. 03 Sep, 2019 1 commit
  11. 09 Jan, 2019 1 commit
  12. 26 Jul, 2018 1 commit
  13. 25 Jun, 2018 1 commit
  14. 24 Jun, 2018 1 commit
  15. 23 Jun, 2018 1 commit
  16. 17 Jun, 2018 1 commit
  17. 18 Oct, 2017 1 commit
  18. 02 Mar, 2016 1 commit
  19. 28 Feb, 2016 1 commit
  20. 28 Sep, 2015 1 commit
  21. 21 Apr, 2015 1 commit
  22. 27 Jan, 2015 1 commit
    • Gerardo Exequiel Pozzi's avatar
      [archiso] Add optional OverlayFS support · a637bdb8
      Gerardo Exequiel Pozzi authored
      This is the first attemp to test overlayfs in archiso.
      The current dm-snapshot mode is keep and is enabled by default,
      while the new mode is enabled via "-s sfs" to mkarchiso.
      No new boot parameters are added, since archiso hooks detects
      if the .sfs file is for dm-snapshot (airootfs.img inside)
      or for overlayfs.
      Persistence is supported in overlayfs mode using the same options
      (cowlabel or cowdevice), but warning while in dm-snapshot mode,
      only one file is used (airootfs.cow), in overlayfs mode internal
      files for workdir/ and upperdir/ are allocated, so you can not use
      VFAT or NTFS.
      To test this, you need to enable [testing] in pacman.conf from
      releng profile and edit build.sh then add "-s sfs" in make_prepare()
      Look at:
          setarch ${arch} mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" prepare
      Replace with:
          setarch ${arch} mkarchiso ${verbose} -w "${work_dir}" -s sfs -D "${install_dir}" prepare
      The build requires just half of space that the build for dm-snapshot,
      since there is no ext4 img ;)
      Just to remember: there is no space gain in .sfs (just about 2M)
      There is at least one thing during boot with machine-id service:
      Dec 24 03:31:39 archiso systemd-machine-id-commit[183]: Failed to unmount transient /etc/machine-id file in our private namespace: Invalid argument
      Signed-off-by: default avatarGerardo Exequiel Pozzi <vmlinuz386@gmail.com>
  23. 22 Aug, 2014 1 commit
  24. 28 Jun, 2014 8 commits