1. 01 Nov, 2019 1 commit
  2. 31 Oct, 2019 1 commit
    • Michael Shigorin's avatar
      bin/check-pkg-list: imported from m-p-d · 0e9bb9a6
      Michael Shigorin authored
      I've long wanted to have this nice helper around in m-p too
      but might have set the bar too high.
      
      The "prorper integration" idea was to have the script check
      just those pkglists which are relevant for a given image IIRC.
      
      Let's toss it in to begin.
      0e9bb9a6
  3. 23 Oct, 2019 1 commit
    • Michael Shigorin's avatar
      bin/archdep-filter: factored out · fab15ba7
      Michael Shigorin authored
      This code started breeding within pkg.in/*/Makefile,
      and it was lacking both E2K (as a generic alias,
      not just "e2k or e2kv4") _and_ the ability to negate
      selection, as in "everywhere but not on any e2k").
      
      Let's fix all of that at once, and parallelize sed
      execution as well; my tests with 1000-line file
      containing "a b c d@!E2K e@e2k f g@!X86 h i@IA32"
      lines show roughly 3x higher CPU load and lower
      execution time (~0.3 sec vs ~0.9 sec on 801-PC).
      
      And turn that code snippet into a proper filter
      with inline edit capability (I've dropped the exit
      trap as failing to mv signals a disaster anyway).
      fab15ba7
  4. 23 Sep, 2019 1 commit
    • Anton Midyukov's avatar
      tar2fs: avoid duplicate fstab entry · 2ac26880
      Anton Midyukov authored
      This commit fixes duplication of root device entry in /etc/fstab
      and changes LABEL=ROOT entry with the proper one if found.
      
      Apparently this didn't hurt qemu images much though...
      2ac26880
  5. 19 Aug, 2019 5 commits
  6. 10 Jun, 2019 2 commits
    • Anton Midyukov's avatar
      tar2fs: implement u-boot support · d571ab54
      Anton Midyukov authored
      d571ab54
    • Michael Shigorin's avatar
      cleanlog, reports.mk: factor the script out · f8ae619b
      Michael Shigorin authored
      Sometimes REPORT=1 just wasn't passed to make, and the build.log
      saved is noisy and harder to compare through diff(1); let's move
      the implementation out of the makefile and into a standalone
      script so it can be reused like this:
      
        BUILDDIR=$(sed -rn "s/^mki-image-scripts: export GLOBAL_BUILDDIR='(.*)'$/\1/p" build/build.log
        bin/cleanlog < build/build.log > build/reports/clean.log
      
      See "export GLOBAL_BUILDDIR=" line in the particular log
      (grabbing that one from stdin is not exactly trivial though).
      f8ae619b
  7. 04 Jun, 2019 2 commits
  8. 04 Mar, 2019 2 commits
  9. 25 Dec, 2018 1 commit
  10. 24 Dec, 2018 1 commit
  11. 29 Oct, 2018 2 commits
  12. 21 May, 2018 2 commits
  13. 07 Aug, 2017 1 commit
    • Michael Shigorin's avatar
      tar2fs: chgrp and failsafe kpartx · aa7f2d84
      Michael Shigorin authored
      The current state made vm images belong to root group,
      no reason to not change those to the primary group of
      the user building an image.
      
      kpartx -d -s could fail in some circumstances,
      make a safety cleanup call more verbose.
      aa7f2d84
  14. 02 Aug, 2017 2 commits
    • Michael Shigorin's avatar
      tar2fs: add e2k arch support · 35dd2008
      Michael Shigorin authored
      Somewhat ARM-like with only the bootloader bits
      standing out; Elbrus 2000 firmware can read ext2
      and boot the kernel directly.
      35dd2008
    • Michael Shigorin's avatar
      build-vm, tar2fs: unify kver handling · 3d7a0c5c
      Michael Shigorin authored
      No need to deduce kernel version again,
      just save it in a temporary file.
      
      The main reason to change what worked is
      that e2k kernel-image package has Linux bits
      named as image-$kver and not vmlinuz-$kver;
      the guessing logic taking all of this into
      account resulted in non-aesthetic patch.
      
      NB: there's a duplicating script within
          kernel feature; it wasn't easy to avoid
          this and it might differ when handling
          multiple kernels, I didn't think much
          about this now as vm images tend to ship
          with the sole one.
      3d7a0c5c
  15. 08 Feb, 2017 1 commit
  16. 29 Jan, 2017 2 commits
    • Michael Shigorin's avatar
      check-recipe: generalize dependency control · a2897267
      Michael Shigorin authored
      An initial (and quite naive) implementation was done
      for conf.d/ files but features do need it as well --
      which became obvious during a casual inspection of
      distro/alt-workstation's target graph (which occured
      broken).
      
      The code is a messy hackery unfortunately, regexes used
      are fragile regarding e.g. [A-Z_] in target names.
      Read with care.
      
      NB: lib/ might need this too but it's rather stable
          and contains some special cases that would obstruct
          the regexes even more...
      a2897267
    • Michael Shigorin's avatar
      report-targets: tweak targets · 949733a9
      Michael Shigorin authored
      There's yet another m-p target class, ve/*; and
      let's put a semicolon after anything else, too.
      949733a9
  17. 26 Dec, 2016 1 commit
    • Michael Shigorin's avatar
      mktmpdir: refer to docs · b3caf70f
      Michael Shigorin authored
      Manual BUILDDIR specification isn't exactly obvious
      from this script (aiming to derive it automatically),
      so at least point those interested at QUICKSTART
      they might have long forgotten already or, gasp,
      not even started reading.
      b3caf70f
  18. 02 Mar, 2016 1 commit
  19. 10 Jan, 2016 1 commit
    • Michael Shigorin's avatar
      QUICKSTART, mktmpdir, build.mk: hasher's /proc · 3b3cf4cc
      Michael Shigorin authored
      Either /etc/hasher-priv/system or /etc/hasher-priv/user.d/$USER
      must contain at least "allowed_mountpoints=/proc" for mkimage
      to work for mkimage-profiles; thanks Daniil Golovanov for
      providing feedback indicating the lack of the corresponding
      checks.
      3b3cf4cc
  20. 07 Sep, 2015 1 commit
    • Michael Shigorin's avatar
      mktmpdir: fixed sort key · 025e6110
      Michael Shigorin authored
      The sort key field value has been off-by-one apparently,
      "6" corresponds to "capacity" field of df -PT output
      while the "available" one was meant:
      
      Filesystem     Type  1024-blocks     Used Available Capacity Mounted on
      /dev/sda9      ext4     15350768 12799972   1747980      88% /
      tmpfs          tmpfs     1967204    27396   1939808       2% /tmp
      
      1              2               3        4         5       6
      
      This lapse has been five years old, looks like it's only
      been masked by lower available space limit *and* filesystem
      ordering by type so far.  It didn't hit me even now, rather
      inspected the code while implementing volumes-profile-starterkit...
      025e6110
  21. 31 May, 2015 1 commit
    • Michael Shigorin's avatar
      tar2fs: fixed broken sfdisk use · 0cdc8a7d
      Michael Shigorin authored
      Yet another age old bug: `sfdisk -l' is mimicking what
      a person does by hand but the script is rather interested
      in what `sfdisk -g' provides, that is, geometry.
      
      And it's stupid enough to only grok C locale.
      0cdc8a7d
  22. 16 Feb, 2015 2 commits
    • Michael Shigorin's avatar
      tar2fs: wait a bit · 5542415e
      Michael Shigorin authored
      Looks like there's a race condition somewhere: this script
      will fail to clean up after itself when considerable background
      load is inflicted upon the host it's running on (e.g. LA ~16
      on a 8-core, single-disk system).
      
      Note that this commit is NOT enough to win that race
      but just a step in the right direction...
      5542415e
    • Michael Shigorin's avatar
      tar2fs: add ahci module · e238973c
      Michael Shigorin authored
      It's unwise to skip the common storage driver,
      and vagrant (which uses virtualbox by default)
      is likely to crash and burn as well.
      e238973c
  23. 02 Feb, 2015 1 commit
    • Michael Shigorin's avatar
      tar2fs: fix check for lilo binary · 7b0501ae
      Michael Shigorin authored
      The check introduced by commit d7689f30 while rewriting tar2vm
      (which presumed x86) was subtly broken: it checked for *host*
      binary before preparing *chroot* configuration file for it.
      
      Wonder how many build servers run lilo over here that this BUG
      has managed to evade attention for almost two years...
      7b0501ae
  24. 20 Mar, 2014 1 commit
  25. 03 Mar, 2014 1 commit
  26. 16 Jan, 2014 1 commit
    • Michael Shigorin's avatar
      tags2lists: skip backup files too · 7c7d74b4
      Michael Shigorin authored
      Seeing tagged/base+rescue~ in build.log isn't particularly
      heart-warming; while other editors but the one leaving tilda
      marked backups and .sw* swap files might exist let's do this
      step at this time.
      
      Wonder what changed though, this used not to happen before.
      7c7d74b4
  27. 22 Jul, 2013 1 commit
  28. 15 Jul, 2013 1 commit