Skip to content
Snippets Groups Projects
  1. Aug 25, 2020
    • David Runge's avatar
      Pass profile directory as parameter to mkarchiso · d90184a7
      David Runge authored
      **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
  2. Aug 21, 2020
    • 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 () .
      Unverified
      e2c5b452
  3. Aug 18, 2020
  4. Aug 17, 2020
  5. Aug 11, 2020
  6. Jul 30, 2020
  7. Jul 29, 2020
    • nl6720's avatar
      Makefile: do not install mkinitcpio hooks by default · e9303ca1
      nl6720 authored
      They are not required in the host system. See #34 .
      Unverified
      e9303ca1
    • nl6720's avatar
      Build initramfs images only once · ff0c13f9
      nl6720 authored
      Place custom mkinitcpio.conf in airootfs.
      Use a custom mkinitcpio preset to specify generated image file path.
      Unverified
      ff0c13f9
    • nl6720's avatar
      Remove unnecessary files from releng's airootfs · a5886ad7
      nl6720 authored
      configs/releng/airootfs/etc/fstab:
      /etc/fstab shipped by the filesystem package has only comments. There is no reason to replace it with an empty file.
      
      configs/releng/airootfs/etc/systemd/system/default.target:
      There is no harm in booting to graphical.target. releng does not enable (or even install) any service that has {Required,Wanted}By=graphical.target.
      Unverified
      a5886ad7
    • nl6720's avatar
      archiso/initcpio/install/archiso: fix GnuPG home directory permissions · b8dc4484
      nl6720 authored
      Gets rid of a gpg warning:
      gpg: WARNING: unsafe permissions on homedir '/tmp/mkinitcpio.*/root/gpg'
      Unverified
      b8dc4484
    • David Runge's avatar
      Add license and basic documentation · e264b446
      David Runge authored
      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
      Verified
      e264b446
  8. Jul 28, 2020
    • David Runge's avatar
      Copy files more generically · 47e11125
      David Runge authored
      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
      Verified
      47e11125
    • nl6720's avatar
      Copy /etc/skel/ to user's home from build.sh instead of customize_airootfs.sh · ba6b44f8
      nl6720 authored
      Additionally copy the files to all custom user homes, not just root's.
      Unverified
      ba6b44f8
    • nl6720's avatar
    • nl6720's avatar
      Deprecate customize_airootfs.sh · 78fe6560
      nl6720 authored
      Show a deprecation notice if airootfs/root/customize_airootfs.sh is found.
      Unverified
      78fe6560
    • nl6720's avatar
      Install all packages in one go and don't copy pacman.conf to airootfs · df93289b
      nl6720 authored
      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.
      Unverified
      df93289b
    • nl6720's avatar
      Fix baseline profile · c54a41fb
      nl6720 authored
      Install linux and mkinitcpio packages.
      Remove root user's password.
      
      Fixes https://bugs.archlinux.org/task/64236 .
      Unverified
      c54a41fb
  9. Jul 20, 2020
  10. Jul 17, 2020
Loading