1. 21 Sep, 2022 1 commit
  2. 18 Sep, 2022 2 commits
  3. 17 Sep, 2022 1 commit
  4. 09 Sep, 2022 1 commit
  5. 08 Sep, 2022 1 commit
  6. 28 Aug, 2022 1 commit
  7. 27 Aug, 2022 3 commits
  8. 26 Aug, 2022 1 commit
  9. 16 Aug, 2022 2 commits
  10. 15 Aug, 2022 2 commits
  11. 13 Jul, 2022 2 commits
    • Dragan Simic's avatar
      Further improvements · 44a91ccf
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Complete the "no colored output by default" changes started in
      the previous two commits, by extending the color output settings
      to the "paccache" invocations as well.
      
      At the same time, perform some improvements and code cleanups,
      as spotted while going through the source code.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      44a91ccf
    • Dragan Simic's avatar
      Logging improvements · 0da8c56c
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Improve the logging so all messages going to stderr are also
      captured and stored into the generated log files.  Change the
      custom messaging functions in lib/functions.sh to output the
      messages to stdout instead of stderr, because there was no
      real need or benefit from using stderr.
      
      Complete the "no colored output by default" changes started in
      the previous commit, by extending the color output settings to
      "pacman" and "makepkg" themselves.
      
      At the same time, perform some improvements and code cleanups,
      as spotted while going through the source code.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      0da8c56c
  12. 12 Jul, 2022 4 commits
    • Dragan Simic's avatar
      Further improvements · e784c9ca
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Change the logic a bit so the colored output of the utilities
      is turned off by default, which ensures that the generated log
      files don't contain ugly-looking escape sequences.
      
      At the same time, perform some improvements and code cleanups,
      as spotted while going through the source code.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      e784c9ca
    • Dragan Simic's avatar
      More readable log files · a47d31ab
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Make the produced log files much, much more readable by telling
      "pacman" not to display progress bars when downloading files.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      a47d31ab
    • Dan Johansen's avatar
      Merge branch 'bugfix/os-release' into 'master' · 9a1c872d
      Dan Johansen authored
      Make "/etc/os-release" available
      
      See merge request !14
      9a1c872d
    • Dragan Simic's avatar
      Make "/etc/os-release" available · aae9d8f5
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Generating the initramfs images by "mkinitcpio" requires the
      "/etc/os-release" file to be already present as a symlink to
      "/usr/lib/os-release", which is normally performed by systemd
      in the "/usr/lib/tmpfiles.d/etc.conf" file.  Thus, ensure that
      the required symlink already exists in the rootfs directory
      before "pacstrap" or "pacman" are executed.
      
      At the same time, perform some improvements and code cleanups,
      as spotted while going through the source code.  Also, change
      the timestamp format in the generated log filenames to a more
      common (and more readable) format.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      aae9d8f5
  13. 04 Jul, 2022 3 commits
    • Dragan Simic's avatar
      Improve the "rmdir canaries" · 8683f78f
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      A few instances of executing "rm -r" or "rm -rf" on directories
      have been changed to "rmdir" in previous commits, because those
      directories should be empty at that point, which introduced some
      kind of a "canary" for such directories.
      
      Complete those "canaries" by actually aborting the execution of
      a utility if such "rmdir" operations fail.  It's a critical error
      anyway, because it means something went seriously wrong, and it
      should be inspected by hand.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      8683f78f
    • Dragan Simic's avatar
      Create a "build marker" · 3957e7e8
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Create a filesystem "marker" that tells the packages that they're
      installed as part of building an image so they can adjust their
      behavior as required, which is currently used for the /etc/fstab
      adjustments in the "generic-post-install" package only.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      3957e7e8
    • Dragan Simic's avatar
      More cleanups and improvements · 5cf8fcab
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Perform a whole bunch of code cleanups and readability
      improvements, as spotted while going through the code.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      5cf8fcab
  14. 30 Jun, 2022 1 commit
  15. 27 Jun, 2022 10 commits
    • Dan Johansen's avatar
      Merge branch 'add_packages-rework' into 'master' · 37583d92
      Dan Johansen authored
      Various improvements and rewrite local packages function
      
      See merge request !13
      37583d92
    • Dragan Simic's avatar
      More bugfixes · 25f37ef7
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Hopefully, fix the issues with installing local packages by
      saving the list of package files in the check_local_pkgs()
      function and using it later, to avoid issues with the wildcard
      expansion in "pacman -U" invocations.
      
      At the same time, simplify the handling of the absolute path
      in the check_local_pkgs() function a bit.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      25f37ef7
    • Dragan Simic's avatar
      Another bugfix · f7939d70
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Fix the paths to local packages passed to "pacman", and allow
      error handling to do its thing instead of aborting early.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      f7939d70
    • Dragan Simic's avatar
      More fixes and cleanups · 753bf1b5
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      The last commit or two failed to resolve the issues with bind
      mounting directories with the local packages, because the current
      directory was changed somewhere and the directory with the local
      packages no longer matched the real location.  Fix that by saving
      the actual directory early and reusing it later.  Also, change
      a few invocations of "wget" so no current directory changes are
      performed prior to those invocations, in an atttempt to prevent
      similar issues from happening again somewhere else.
      
      At the same time, use the least amount of "force" while removing
      empty temporary directories used as mount points, i.e. use "rmdir"
      to remove them, instead of using "rm -rf".
      
      Perform a few more small cleanups and improvements in the produced
      messages and comments, as well as a bit of code deduplication in
      error handling, as spotted.  Also, remove redundant "-N" parameters
      in a few invocations of "wget".
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      753bf1b5
    • Dragan Simic's avatar
      Another fix · c3fcd2c0
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Fix the way bind mounts are performed by using "mount --bind"
      instead of "mount -o bind".  How did "mount -o bind" actually
      work before in a few places?  Hmm...
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      c3fcd2c0
    • Dragan Simic's avatar
      Small improvement · 444f40dc
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Improve the local package checks so the temporary files are
      created in /tmp instead of in the current directory.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      444f40dc
    • Dragan Simic's avatar
      Another bugfix · 0eeff876
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Fix the way bind mounts are performed by using full filesystem
      paths.  At the same time, add more logged messages, so the work
      performed by the utilities can be monitored more easily.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      0eeff876
    • Dragan Simic's avatar
      Fix a check · afadb669
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Fix a silly bug in one of the early checks performed in the
      check_local_pkgs() function, which caused perfectly valid
      directories with local packages to be rejected.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      afadb669
    • Dragan Simic's avatar
      Documentation update · 4b309ecf
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Update the README.md file so it's in sync with the latest changes
      in the source code.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      4b309ecf
    • Dragan Simic's avatar
      Various improvements · 7dd667bc
      Dragan Simic authored and Dan Johansen's avatar Dan Johansen committed
      
      
      Perform various small cleanups, as spotted, which include
      proper indentation, uniform style of function and variable
      names, some improvements to the produced help messages and
      comments in the code, removal of redundant parameters for
      the "cp -a" invocations, removal of the redundant trailing
      slashes, simplification of redundant "1>" redirections,
      small code readability improvements, and quite a bit of
      other small coding style cleanups.
      
      Perform a rewrite of the entire logic that handles local
      packages that are to be installed to the root filesystem
      in the images.  Previously, that logic was overly complex
      and somewhat broken, more specifically it performed various
      redundants operations, and it did not work under certain
      conditions because it expected the local packages to be
      actually present in the pacman cache, etc.
      
      At the same time, call the verify_local_packages() function
      in "bin/buildemmcinstaller" as well, to have the same check
      as the one that's already performed in the "bin/buildarmimg"
      and "bin/buildarmpkg" files.
      
      Signed-off-by: default avatarDragan Simic <dsimic@manjaro.org>
      7dd667bc
  16. 12 Jun, 2022 1 commit
  17. 06 Jun, 2022 2 commits
  18. 02 Jun, 2022 2 commits