1. 15 Oct, 2021 2 commits
    • Karel Koci's avatar
      .gitlab-ci/Dockerfile: remove vim file type specification · d62686ec
      Karel Koci authored
      This is vim specific and we should not pollute files with vim specific
      configuration. That can be done locally in vim configuration without
      having to do this.
      
      For anyone interested, this should cover these files:
       au BufRead,BufNewFile Dockerfile* set filetype=dockerfile
      d62686ec
    • Karel Koci's avatar
      gitlab-ci: build docker image as part of CI run · 0f5f2bbe
      Karel Koci authored
      This implements build of docker image as part of every CI run. The build
      should be most of the time fast as we always pull the latest version and
      thus reuse that if there is no update required.
      0f5f2bbe
  2. 12 Oct, 2021 1 commit
    • Karel Koci's avatar
      githooks/pre-push: allow fast-forward of master to develop · b2620845
      Karel Koci authored
      The original check was that master can be pushed only with develop
      branch. It is what we mostly want but there are cases when we do not
      update develop and only master that are valid as well. The example of
      such operation is merge of develop to master, which is always
      fast-forward due to our workflow.
      
      This halts push only if master commit is not ancestor of develop instead
      of halting it always when develop is not being updated.
      b2620845
  3. 07 Oct, 2021 1 commit
    • Karel Koci's avatar
      foris: install foris only if it is required for pakon · e6fbf420
      Karel Koci authored
      This removes explicit request for foris and installs it only if pakon is
      requested. Any other request for foris package is now only installed if
      foris is going to be.
      
      The stylistic tweak here is removal of condition checks for for_l10n
      function. This function is defined in utils.m4 and thus directly in all
      files so this condition made no sense.
      e6fbf420
  4. 27 Sep, 2021 1 commit
  5. 23 Sep, 2021 3 commits
    • Karel Koci's avatar
      repository: add extra argument pkg_hash_required · c6427c41
      Karel Koci authored
      This increases security by requesting packaages to always have valid
      hash in package index. The OPKG does not require this in default so
      updater does not as well. At the same time OPKG can change hash and
      updater can stay behind and not validating packages at all because of
      that. This prevents that situation.
      
      The tests are tweaked to require this argument to be always set.
      c6427c41
    • Karel Koci's avatar
      tests: update tests to latest updater version · bcdf53c6
      Karel Koci authored
      This upgrades tests to laster version of updater that is used in Turris
      OS 5.2.x. The prevous latest version that was used last in Turris OS
      5.1.10 is kept for backward compatibility check.
      bcdf53c6
    • Karel Koci's avatar
      tests: fix test failure due to immediate replan being used · fdb478f9
      Karel Koci authored
      We use immediate replan since 731b93ce
      to cover missing `request_condition` feature in updater. This was
      introduced in updater version 65.0.
      fdb478f9
  6. 15 Sep, 2021 2 commits
    • Karel Koci's avatar
      drivers/usb: add DUB-1312 Ethernet adapter and PL2303 serial · 65c09fd6
      Karel Koci authored
      The first device is an USB Ethernet and the second device is serial
      port. Both of these are available for broad purchase all around the
      world.
      65c09fd6
    • Karel Koci's avatar
      drivers/usb: move stuff around · d90d7034
      Karel Koci authored
      The Zigbee and Z-Wave are technically a serial devices but they are
      rather separate as they are not intended for connecting serial console
      of other device. They use only serial communication. Instead this just
      creates them a separate sections.
      The serials are also moved after bluetooth because Wi-Fi, Zigbee and
      Z-Wave are kind of same so let's have them together.
      d90d7034
  7. 14 Sep, 2021 1 commit
    • Karel Koci's avatar
      drivers: fix installation of multiple packages · 86e090dc
      Karel Koci authored
      This fixes install requests for those devices requesting multiple
      packages. The issue here is that the second package was being ignored.
      This fixes the issue.
      
      In depth explanation of what was happening:
      The Lua seems to be implementing arguments parsing in such a way that it
      takes value and pushes it to stack of arguments to specific position it
      is parsed from. The `unpack` seems to use this and it simply pushes
      arguments to position it is specified on and upward. Here that is the
      first position and for two packages that is first and second argument.
      The second argument here was `{ priority = 40 }` and as it seems the
      interpreter simply set this dictionary to position of second argument
      thus rewriting the argument injected by `unpack`. Simply said: unpack
      seems to work only if it is the last argument in the function call.
      86e090dc
  8. 15 Aug, 2021 3 commits
  9. 03 Aug, 2021 1 commit
    • Karel Koci's avatar
      lists: immediately replan on updater-ng update · 731b93ce
      Karel Koci authored
      We need to replan immediately after updater-ng update because we depend
      on conditions and without them a lot of packages are skipped and removed
      during the update. We in general prefer to update whole system at once
      but it is not an ideal when part of that system would be removed during
      such update. It would also be better to use `Mode("no_removal")` but
      that is available since version 64.0 and request conditions were
      introduced in 65.0 thus it makes no sense to cover that single version
      with special case. In the future when ever new incompatibility such as
      this is added we should use no removal mode instead.
      731b93ce
  10. 29 Jul, 2021 1 commit
  11. 20 Jul, 2021 4 commits
  12. 13 Jul, 2021 4 commits
    • Karel Koci's avatar
      gitconfig: add missing gitconfig · c2e000ae
      Karel Koci authored
      This should have been part of ed0cd2e4.
      c2e000ae
    • Karel Koci's avatar
      tests: run-test drivers · 89de29ec
      Karel Koci authored
      The default test covers drivers lists only till the check for drivers,
      then it exits. This instead makes sure that whole script works because
      it defines devices and sets them to special value "all" that makes all
      devices available.
      89de29ec
    • Karel Koci's avatar
      drivers: include drivers lists to build as well · a88aabbf
      Karel Koci authored
      This is fix of missing drivers lists in build, they were just missing in
      the build system.
      a88aabbf
    • Karel Koci's avatar
      drivers: add error for invalid usage of drivers lists · 93417997
      Karel Koci authored
      This makes the original fatal error that devices passed to pairs is nil
      to non-fatal. This also gives much more direct message.
      
      Drivers are important but there are optional drivers and thus having
      their invalid usage/setup as fatal makes no sense. They would just not
      be included. It is a regular error only.
      93417997
  13. 12 Jul, 2021 1 commit
  14. 18 Jun, 2021 4 commits
    • Karel Koci's avatar
      lists: move some of the IPv6 protocols to base-min and drop the rest · 6d57dffe
      Karel Koci authored
      There is no reason to have IPv6 separate from other network protocols.
      They should be in same place and installed together.
      
      Preserved protocols:
      * ds-lite: it is widely deployed over the world so it is probably a must
        have.
      * 6in4: common tunneling protocol used to get IPv6 to networks without
        it. As a way to push IPv6 we should include it.
      * 6rd: a replacement for 6to4 in some way. It is a way to provide IPv6
        in IPv4 only network on ISP's network. There seems to be minority of
        ISPs actually using it.
      
      Removed protocols:
      * 6to4: marked as deprecated.
      6d57dffe
    • Karel Koci's avatar
      base: move zone info to base-min · e9fa1093
      Karel Koci authored
      Zone info is required to make local time work. It is not essential but
      not working local time is very weird and in reality this is about two
      megabytes of storage (which is nothing for us). Having it in minimal
      base installation thus is not a burden.
      e9fa1093
    • Karel Koci's avatar
      base-min: move opkg from base-min to base · 0c15fed3
      Karel Koci authored
      With removed updater from base-min the opkg should be removed as well as
      it serves the same purpose and is not essential for hardware
      functionality.
      Again to recapitulate the idea: The only self-updating and thus self
      package installing base is the base. Any other base either have to
      include base.lua or root based on it has to be managed externally (out
      of root in updater or --dest in opkg).
      0c15fed3
    • Karel Koci's avatar
      base-min: remove updater from minimal installation · f98ab48d
      Karel Koci authored
      The minimal installation should be just minimal hardware support. That
      does not include updater. It also makes sense to have updater included
      in base.lua as that is the base script updater-ng uses.
      The full idea of this is that updater can be used to build image and
      externally manage root with any base script but only full base should
      contain self-updating.
      f98ab48d
  15. 10 Jun, 2021 1 commit
  16. 08 Jun, 2021 1 commit
  17. 07 Jun, 2021 1 commit
    • Karel Koci's avatar
      Pull latest version of lists · 6018e489
      Karel Koci authored
      The version lists are updated to:
      31db39a848de5a392a34289cda0b37fde6e20631
      
      This adds immediate replan to latest updater version check. In the
      reality we do not want to use it that much as it can cause issues but we
      need it for migration from Turris 3.x so we can't just globally ignore
      it.
      6018e489
  18. 01 Apr, 2021 5 commits
  19. 27 Jan, 2021 1 commit
  20. 13 Nov, 2020 2 commits