1. 26 Jan, 2021 3 commits
    • 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
      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
  2. 23 Jan, 2021 8 commits
  3. 07 Jan, 2021 1 commit
  4. 26 Dec, 2020 1 commit
  5. 01 Dec, 2020 1 commit
  6. 30 Nov, 2020 4 commits
    • 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
      c10004df
    • 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 #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 #61 .
      42d9e4f9
  7. 18 Nov, 2020 2 commits
    • 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
  8. 17 Nov, 2020 1 commit
  9. 14 Nov, 2020 3 commits
  10. 03 Nov, 2020 1 commit
  11. 01 Nov, 2020 1 commit
  12. 31 Oct, 2020 2 commits
    • David Runge's avatar
      Set syslinux bootloader timeout to 15s · 40ae3ba9
      David Runge authored
      configs/releng/syslinux/archiso_sys.cfg:
      Set the syslinux bootloader timeout to 15s.
      In !97 it has accidentally been set to 1.5s.
      40ae3ba9
    • David Runge's avatar
      Set bootloader timeouts to 15s · ee6c5faa
      David Runge authored
      configs/releng/efiboot/loader/loader.conf,
      configs/releng/syslinux/archiso_sys.cfg:
      
      Set the bootloader timeout to 15s, as they have been set to an overly generous 30s in !79.
      
      Fixes #80
      ee6c5faa
  13. 30 Oct, 2020 1 commit
  14. 29 Oct, 2020 8 commits
  15. 24 Oct, 2020 3 commits