Skip to content
Snippets Groups Projects
  1. Nov 13, 2024
  2. Sep 28, 2024
  3. Sep 27, 2024
  4. Jul 11, 2024
  5. Jun 25, 2024
  6. Jun 18, 2024
  7. May 29, 2024
  8. May 15, 2024
  9. Mar 20, 2024
  10. Mar 14, 2024
    • Newbyte's avatar
      misc: Also check for .zst-compressed variants of files (MR 49) · dd5cdeac
      Newbyte authored and Clayton Craft's avatar Clayton Craft committed
      Initially I thought of breaking off the Stat + error check call into its
      own function as to reduce repetition, but given that it's only useful in
      this situation where it only happens twice anyway, I'm not sure it
      actually would reduce complexity.
      
      Additionally, this means that .zst-compressed variants of files will be
      searched for in all contexts where this function is used. I'm not sure
      this is desirable.
      
      Tested and works with arrow-db820c. I didn't test it on actual hardware,
      but I verified that the firmware ended up in the initramfs via
      $ pmbootstrap initfs ls. I choose this device because it uses firmware
      from linux-firmware and also needs said firmware present in the
      initramfs.
      
      Closes https://gitlab.com/postmarketOS/postmarketos-mkinitfs/-/issues/39
  11. Jan 29, 2024
  12. Jan 26, 2024
  13. Nov 25, 2023
  14. Oct 13, 2023
  15. Aug 25, 2023
  16. Jun 18, 2023
  17. Apr 11, 2023
  18. Apr 07, 2023
    • Clayton Craft's avatar
      cmd/mkinitfs: Exclude initramfs files from initramfs-extra (MR 34) · 0054fde9
      Clayton Craft authored
      When testing on pmOS with qemu/x86_64, this results in some nice
      reduction in size of the initramfs-extra (gzip'd, default compression):
      
      Before:
              /mkinitfs # ls -la /boot/initramfs-extra
              -rw-r--r--    1 root     root       3544429 Mar 19 23:06 /boot/initramfs-extra
      
      After:
              /mkinitfs # ls -la /boot/initramfs-extra
              -rw-r--r--    1 root     root       2234020 Mar 19 23:08 /boot/initramfs-extra
      
      Fixes #23
      0054fde9
    • Clayton Craft's avatar
      cmd/mkinitfs: unroll generateArchive (MR 34) · dceef201
      Clayton Craft authored
      There's some repetition that's added by unrolling this, but it will
      allow passing the main initramfs archive's filelister to
      archive.AddItemsExclude when generating the initramfs-extra.
      
      I looked at several ways to implement this, this seems like least
      terrible thing to do... The runner-up was to return a FileList from
      archive.AddItems, and pass that around... Eww.
      dceef201
    • Clayton Craft's avatar
      archive: add AddItemsExclude method (MR 34) · 25017f3a
      Clayton Craft authored
      This allows passing a filelister of things to exclude from the archive
      25017f3a
Loading