1. 14 Mar, 2021 2 commits
  2. 09 Mar, 2021 2 commits
    • nl6720's avatar
      Support EROFS · bc67933a
      nl6720 authored
      EROFS, like Squashfs, is a read-only file system. It can be used to store airootfs in an image file.
      Its advantage is the support for POSIX ACLs. EROFS downside is that currently it only supports LZ4 compression (LZMA support is not yet fully implemented).
      
      A difference from Squashfs is that, EROFS stores change time (ctime) not modification time (mtime). The reverse is true for Squashfs.
      
      Implements #59
      bc67933a
    • nl6720's avatar
      archiso/initcpio/hooks/archiso: remove redundant /sfs/ from airootfs mount point · 711ab4cd
      nl6720 authored
      Remove /run/archiso/bootmnt directory if nothing is mounted there. An empty directory is just confusing.
      711ab4cd
  3. 16 Feb, 2021 2 commits
  4. 06 Feb, 2021 1 commit
  5. 01 Feb, 2021 1 commit
  6. 31 Jan, 2021 9 commits
  7. 28 Jan, 2021 1 commit
  8. 27 Jan, 2021 4 commits
  9. 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 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
  10. 23 Jan, 2021 8 commits
  11. 07 Jan, 2021 1 commit
  12. 26 Dec, 2020 1 commit
  13. 01 Dec, 2020 1 commit
  14. 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 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 #61 .
      42d9e4f9