Skip to content
Snippets Groups Projects
  1. Jan 31, 2021
  2. Jan 28, 2021
  3. Jan 27, 2021
  4. Jan 26, 2021
    • nl6720's avatar
      configs/releng: move the mirror uncommenting sed command from... · 4f4047a3
      nl6720 authored
      configs/releng: move the mirror uncommenting sed command from customize_airootfs.sh to a pacman hook
      
      After pacman-mirrorlist is installed, /etc/pacman.d/hooks/uncomment-mirrors.hook will run a sed command which uncomments all Server lines in /etc/pacman.d/mirrorlist.
      This brings us another step closer to the complete removal of customize_airootfs.sh.
      
      Related to #21 .
      4f4047a3
    • Christian Hesse's avatar
      archiso_pxe_common: remove resolv.conf before copy · a2c8dd31
      Christian Hesse authored and David Runge's avatar David Runge committed
      Booting via PXE we want to keep our DNS configuration. So remove
      /etc/resolv.conf in new root before copying the current file.
      
      Without this systemd-resolved fallback nameservers are used and we see an
      error message when the root ships a symbolic link to systemd-resolved's
      stub-resolv.conf:
      
      cp: not writing through dangling symlink '/new_root/etc/resolv.conf'
      a2c8dd31
    • Christian Hesse's avatar
      mkarchiso: add version information · b30d1cad
      Christian Hesse authored
      To date the iso version was used for iso volume information and iso file name.
      In my custom builds I do use it a lot more:
      
      * Inside the root fs: The system knows about its own version. I use this to:
        -> report the version to a server (poor man's inventory)
        -> let the system update itself
      
      * On the iso fs: The files are served via rsync, running systems transfer
        version file first to check for available update.
      
      * A grub environment file on the iso fs: Booting the iso from grub allows
        to create cow directory per version:
      
          loopback loop archlinux.iso
          load_env -f (loop)/arch/grubenv
          linux (loop)/arch/boot/x86_64/vmlinuz-linux ... \
              cow_directory=archlinux/${VERSION} ...
      
      So let's just create these files.
      b30d1cad
  5. Jan 23, 2021
  6. Jan 07, 2021
  7. Dec 26, 2020
  8. Dec 01, 2020
  9. Nov 30, 2020
    • David Runge's avatar
      Fix issues with file ownerships/modes · c10004df
      David Runge authored
      archiso/mkarchiso:
      Make sure to always compare absolute paths in `_make_custom_airootfs()` (as `realpath` is used).
      Remove `echo` calls that prevent the setting of actual file ownerships and modes.
      
      configs/releng/profiledef.sh:
      Set file mode of /root/.automated_script.sh to 755.
      
      Fixes #82
    • nl6720's avatar
      Keep all SYSLINUX files in /syslinux · 863247d0
      nl6720 authored
      This gets rid of the duplicate ldlinux.c32 and the useless isolinux.cfg which only points to syslinux.cfg.
      
      Implements archlinux/archiso#46 .
      863247d0
    • nl6720's avatar
      Prevent path traversal outside of $airootfs_dir · 183ae527
      nl6720 authored
      183ae527
    • nl6720's avatar
      Allow specifying ownership and mode of custom airootfs files and directories · 42d9e4f9
      nl6720 authored
      profiledef.sh can now contain an associative array called file_permissions which can be used to set custom ownership and mode of custom airootfs files. The array's keys contain the path and the value is a colon separated list of owner UID, owner GID and access mode.
      For example:
      
          file_permissions=(
            ["/etc/shadow"]="0:0:400"
          )
      
      This means that mkarchiso now copies airootfs files (and directores) without permissions and anything that should be owned by a user other than root and/or if the mode should be something other than 644 for files and 755 for directories must to be listed in ${file_permission[@]} in profiledef.sh.
      
      Fixes archlinux/archiso#61 .
      42d9e4f9
  10. Nov 18, 2020
    • Francois Dupoux's avatar
    • David Runge's avatar
      Fix evaluation bugs in mkarchiso · 3160db0e
      David Runge authored
      archiso/mkarchiso:
      Guard the call to `_mksignature()` in `_prepare_airootfs_image()` by an if statement.
      Using the `&&` logic leads to `_prepare_airootfs_image()` evaluating to false if `$gpg_key` is not set.
      
      Add `_msg_info()` calls to `_set_override()` which prevent the function from evaluating to false if no override is
      being done. Additionally this is great for debugging purposes.
      
      Add `_msg_info()` calls to `_read_profile()` (which is great for debugging purposes).
      
      Fixes #81
      3160db0e
  11. Nov 17, 2020
  12. Nov 14, 2020
  13. Nov 03, 2020
  14. Nov 01, 2020
  15. Oct 31, 2020
  16. Oct 30, 2020
  17. Oct 29, 2020
    • Alexander Epaneshnikov's avatar
      e369ade1
    • David Runge's avatar
      Add accessibility support based on option flag · e748a770
      David Runge authored
      scripts/run_archiso.sh:
      Add the `-a` option flag to add accessibility support on demand for `run_archiso`.
      
      Add accessibility specific options to qemu in `run_image()`.
      
      Not providing the specific braille chardev hardware otherwise blocks running run_archiso with
      `qemu-system-x86_64: -chardev braille,id=brltty: brlapi__openConnection: connect: No such file or directory`.
      
      Fixes #77
      e748a770
    • David Runge's avatar
      Fix linter errors in livecd-sound · 8bb3e8c1
      David Runge authored
      configs/releng/airootfs/usr/local/bin/livecd-sound:
      Replace oldstyle expr with a bash test in `is_numeric()`.
      
      Replace use of `nword()` with call to `wc -w`.
      
      Quote variables in `pick_a_card()`.
      
      Fixes #78
      8bb3e8c1
Loading