1. 28 Feb, 2019 3 commits
    • Karel Koci's avatar
      transaction: instead of data use files on fs · 5b9b4d2f
      Karel Koci authored
      This replaces problematic data pass in Lua with files saved on disk.
      Original problem is that Lua in some cases like closures duplicates
      environment and that means also all data. If this happens few times
      (from measurements it seems like two or three times in code segment we
      are dropping in this) then we can have few times bigger memory
      requirements.
      
      This also temporally disables test test-sys-pkgupdate-plan-unapproved as
      it does not expect additional files. This is going to be solved in
      following commit.
      5b9b4d2f
    • Karel Koci's avatar
      updater: drop missed content related code · d859ed55
      Karel Koci authored
      This code was here because of package content option but this feature is
      obsoleted and dropped so we can drop this code as well.
      d859ed55
    • Karel Koci's avatar
      Add memory usage test bench · d3bd91ba
      Karel Koci authored
      d3bd91ba
  2. 08 Feb, 2019 2 commits
  3. 06 Feb, 2019 3 commits
  4. 31 Jan, 2019 2 commits
  5. 30 Jan, 2019 3 commits
  6. 29 Jan, 2019 3 commits
  7. 28 Jan, 2019 5 commits
  8. 21 Jan, 2019 8 commits
    • Karel Koci's avatar
      supervisor: update to allow autorun configuration · 91d4fd18
      Karel Koci authored
      This adds possibility to completely configure updater (autorun) trough
      supervisor. Advantage of this is that supervisor is the only place that
      defines uci configuration for updater (at least if we are talking about
      autorun) and because of that same API can be used on top of generally
      different configuration. This is handy because of back compatibility
      with Turris OS 3.x and introduced cleanup in Turris OS 4.x.
      91d4fd18
    • Karel Koci's avatar
      supervisor: rename userlists to pkglists · 3bc6a0c2
      Karel Koci authored
      This is much more appropriate name and this way we are able to integrate
      all Turris specific configuration to same section called turris.
      3bc6a0c2
    • Karel Koci's avatar
      0489976e
    • Karel Koci's avatar
      Rename opkg-trans to pkgtransaction · 196761e1
      Karel Koci authored
      This is huge change but it makes sense. Original name is now pretty
      confusing and it should be clear that this tool is part of updater-ng.
      This new name should signal that.
      This new name also contains whole word "transaction" so it should
      possibly be more clearer what it really does. This also adds comment
      that this tool is dangerous to play with.
      196761e1
    • Karel Koci's avatar
      Drop updater.sh · c836c1ab
      Karel Koci authored
      This file was here for backward compatibility. It is long enough that
      anyone should have already migrated away from it.
      c836c1ab
    • Karel Koci's avatar
      Move journal rescue init script from pkgupdate to supervisor · 9da06052
      Karel Koci authored
      It makes much more sense to have it part of supervisor as a software
      that handles automatic updater execution.
      9da06052
    • Karel Koci's avatar
      localrepo: drop content2localrepo · ca80ded4
      Karel Koci authored
      This script was required for migration between old versions of Turris OS
      3.x. This is no longer required on Turris OS 4.x.
      ca80ded4
    • Karel Koci's avatar
      Fix cppcheck warnings and that way tests · dc0d9766
      Karel Koci authored
      All warning in events are just suppressed because we are planning on
      dropping events.c anyway.
      dc0d9766
  9. 07 Jan, 2019 1 commit
  10. 12 Dec, 2018 5 commits
    • Karel Koci's avatar
      subprocess: fix problem with lost stdout content · 8502ac4b
      Karel Koci authored
      I originally was thinking that Lua is doing something nasty like
      duplicating original file descriptor for stdout but it turns out that
      exec was a culprit. For some reason a call to exec truncates (or at
      least removes unfinished line) from stdout. I have no idea why it
      behaves that way but adding flush just after callback (before exec)
      solves that problem and allows us to correctly use print in callback.
      The weird part is that the same thing does not happen with stderr but
      non the less I also added flush for it.
      8502ac4b
    • Karel Koci's avatar
      subprocess: mark some arguments as not possible to be NULL · a803ad41
      Karel Koci authored
      This also removes possibly hack to run C/Lua code in subprocess without
      providing command. It is overhead but it is more systematic to use
      'true' as a command instead of possibly in code unexpected value NULL.
      a803ad41
    • Karel Koci's avatar
      subprocess: Use BUFSIZ in pipes read · 5a09ba46
      Karel Koci authored
      Instead of pretty small constant lets use system level compilation
      constant BUFSIZ. Thanks to that we should have buffer exactly matched to
      stdio buffer which should somewhat ensure better performance. It is
      minor thing but it is better to do it non the less.
      5a09ba46
    • Karel Koci's avatar
      subprocess: Increase logging about executed processes to debug · dc1bce93
      Karel Koci authored
      This also adds message about termination of subprocess.
      dc1bce93
    • Karel Koci's avatar
      logging: drop unneeded exit code · 48f9ef06
      Karel Koci authored
      I probably had some plan with it but I no longer remember what it was
      suppose to been. Instead I just drop it here. It can be reverted later
      if needed.
      
      This also correctly sets read field for cookie structure. This has no
      effect because we are not reading from it but just to be precise with
      our code we set it to know value NULL which means that read is not
      available.
      48f9ef06
  11. 11 Dec, 2018 5 commits