1. 02 Mar, 2016 1 commit
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 20 Mar, 2014 1 commit
  8. 03 Mar, 2014 1 commit
  9. 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
  10. 22 Jul, 2013 1 commit
  11. 15 Jul, 2013 1 commit
  12. 01 Jul, 2013 1 commit
  13. 17 Jun, 2013 1 commit
    • Michael Shigorin's avatar
      tar2vm: rewrote as tar2fs · d7689f30
      Michael Shigorin authored
      Overview of the changes:
      - ARM support: separate ext2 /boot, no LILO
      - avoid race condition with devmapper
      - trap ERR so that -e in shebang doesn't result in extra cleanup hassle
      - configurable root filesystem type (ext4 by default)
      - jumps through parted hoops
      
      Details:
      
      1. LILO is x86-specific while the rest of the script can be used
         to prepare e.g. Marvell ArmadaXP or CuBox images; we can generally
         count on uboot supporting ext2 for relatively sane platforms but
         not ext4 that would be a better root filesystem performance-wise.
      
      2. Apparently /dev/mapper/loopXpY can be still missing at the time
         when kpartx returns and pop up a bit later... sit there, wait
         and check for it.
      
      3. If something went wrong with any command of the script it would bail out
         due to -e in shebang; it is now better to clean up the loopback device
         and its mappings in this situation either.
      
      4. One size doesn't fit all, really.
      
      5. The parted sizing was sloppy as in broken, now it's just half insane.
         Someone's decision to stick units and auto-alignment knobs into
         a single one was apparently hilarious...
      
         http://www.gnu.org/software/parted/manual/parted.html#unit
      
      Manual loop/dm cleanup is described in documentation just in case.
      
      /boot size meter is suboptimal in terms of additional I/O incurred,
      will be most likely rewritten to make use of advance "du -s".
      d7689f30
  14. 19 Apr, 2013 1 commit
    • Michael Shigorin's avatar
      tar2vm: added xfs note · 6c9ca9af
      Michael Shigorin authored
      The issue at hand is the ability to accomodate boot sector
      payload at the start of the filesystem's underlying block device.
      
      XFS doesn't spare that space.
      
      Thanks vsu@ for the reminder, by the way.
      6c9ca9af
  15. 11 Feb, 2013 1 commit
    • Michael Shigorin's avatar
      fixed mp-commit and its use · ad264c70
      Michael Shigorin authored
      Now this is ugly: instead of commoditizing the repetitive code
      the result ended up working differently by creating several
      repositories for the target subdirs instead of the single one
      for the generated subprofile as a whole.
      
      This results in .disk/profile.tgz being basically useless
      in every image since c4311108.
      ad264c70
  16. 26 Dec, 2012 1 commit
    • Michael Shigorin's avatar
      tags2lists: filter out vim swap files · bad7fb53
      Michael Shigorin authored
      The (funny but somewhat confusing) problem manifests itself as
      
        E: Couldn't find package Binary
      
      during a build run in the profile where a tagged packagelist
      referenced by a specific target being built is open with vim
      (which results in .FILE.sw? temporary file lying aside).
      bad7fb53
  17. 19 Nov, 2012 1 commit
    • Michael Shigorin's avatar
      tar2vm: reworked to use sfdisk · 5e9ba6fb
      Michael Shigorin authored
      The issue (#28002) resulting in vm image build error reading
      
        Syntax error at or above line 5 in file '/etc/lilo-loop.conf'
      
      was caused by fdisk-2.22 changing its "-l" option output format
      to drop the very mention of the long irrelevant crap named "CHS".
      
      The problem is, however, that we still need that crap to piggyback
      a loop device's fake geometry to lilo while installing it there.
      
      Reported by icesik@.
      5e9ba6fb
  18. 03 Sep, 2012 1 commit
  19. 09 Aug, 2012 1 commit
    • Michael Shigorin's avatar
      git usage refactoring · c4311108
      Michael Shigorin authored
      There were heaps of "if type -t git" there already;
      it wasn't an unintentional mishap but rather a moderate
      copy-paste to get the use cases, and now these seem to
      have essentially settled.
      
      So time to scrap some dups.
      
      NB: the scripts in the generated profile can't rely on
      the contents of the metaprofile (these need to be able
      to work in standalone case either), so a bit of crap
      still lurks there.
      c4311108
  20. 17 Jul, 2012 1 commit
  21. 16 Jul, 2012 1 commit
    • Michael Shigorin's avatar
      bin/mktmpdir: grok NFS root · 18f1a636
      Michael Shigorin authored
      "df -l" is going to hurt (or at least spam) if it's a diskless node;
      "df -P" helps maintain output parseability.  So be it.
      18f1a636
  22. 25 Jun, 2012 1 commit
    • Michael Shigorin's avatar
      bashize tar2vm · e355bd7c
      Michael Shigorin authored
      Finally tired of expr(1) quirks,
      and even ash(1) does $((arithmetic-expansion))!
      e355bd7c
  23. 18 Jun, 2012 1 commit
    • Michael Shigorin's avatar
      initial build-vm feature · 75f7c62b
      Michael Shigorin authored
      Yes, mkimage-profiles is now able to build VM disk images.
      So far the support is pretty basic:
      
      - a single hard drive image with a single partition/FS
      - only stock root password is configurable
      - LILO is hardwired as a bootloader
      
      The resulting images tend to boot under qemu/kvm though.
      
      Please see doc/vm.txt for the warning regarding additional
      privileges and setup required.  This was started back in
      February but I still hoped to avoid sudo/privileged helper
      (and libguestfs is almost as undistributable as can be)...
      
      Thanks:
      
      - http://blog.quinthar.com/2008/07/building-1gb-bootable-qemu-image-using.html
      - Alexey Morarash who reworked that as https://github.com/tuxofil/linsygen
      - led@, legion@, vitty@, aen@ for providing advice and inspiration
      75f7c62b
  24. 09 Apr, 2012 1 commit
    • Michael Shigorin's avatar
      READMEs: pkglist related clarification · f4519332
      Michael Shigorin authored
      glebfm@ asked what to do with new package lists: whether these
      belong to features, or to distributions themselves.  This question
      is actually open and up for discussion but there are guidelines
      that can and should be written down already; and so they were.
      
      Added pkgdups utility reference as well.
      f4519332
  25. 02 Apr, 2012 1 commit
  26. 19 Mar, 2012 1 commit
  27. 10 Jan, 2012 1 commit
    • Michael Shigorin's avatar
      bin/mktmpdir: check for filesystem mount options · 5a1065c3
      Michael Shigorin authored
      As was found out by Vladimir Karpinsky (thanks for patience!),
      the autochosen directory might still have too restrictive mount
      options -- nodev and/or noexec.  Hopefully the diags are a bit
      better and faster by now.
      5a1065c3
  28. 06 Jan, 2012 1 commit
    • Michael Shigorin's avatar
      check vigorously the autochosen path prefix either · 87bfa3f6
      Michael Shigorin authored
      It happens that if the host environment isn't particularly
      tuned up for package builds already then bin/mktmpdir might
      come up with a directory outside hasher-allowed prefix list;
      now that's a shame and not a Christmas gift, clearly.
      
      Thanks Vladimir Karpinsky for pointing this problem out too.
      87bfa3f6
  29. 02 Jan, 2012 1 commit
    • Michael Shigorin's avatar
      bin/mktmpdir tweaks · 7738c6a6
      Michael Shigorin authored
      The fallback case of building in a brother directory moved
      from the last line of code to the first one becoming more
      explicit along the way.
      
      Support for slash-containing argument (being a tmpdir name
      template prefix) has been added.
      7738c6a6
  30. 02 Dec, 2011 1 commit
    • Michael Shigorin's avatar
      pkgdups.sh and semi-random tagged pkglists shuffle · 8790a90c
      Michael Shigorin authored
      The bin/pkgdups.sh script comes from m-p-d in considerably optimized
      form and is to be used with the pkglist files of interest passed
      as its arguments to produce a "hall of duplicates" among those.
      
      The tagged lists received some updates along the rescue image lines,
      most of those are actually inspired by http://rescuecd.pld-linux.org/
      and to lesser extent a few articles on rescue/recovery/forensics
      software -- so some newcomers are even employed already.
      8790a90c
  31. 06 Nov, 2011 1 commit
    • Michael Shigorin's avatar
      bin/mktmpdir: lower the space bar · b6438b9c
      Michael Shigorin authored
      With not-that-recent mkimage-profiles development,
      it's no longer apparent that at least a gigabyte
      of free space is required to build something useful
      (at least for the tests, like syslinux.iso).
      
      In short, the guesser cutoff margin is now 256M.
      b6438b9c
  32. 04 Nov, 2011 4 commits
    • Michael Shigorin's avatar
      features.in/Makefile: fixups · ace2ee1f
      Michael Shigorin authored
      src/dst tags might have been empty confusing tags2lists;
      the current implementation is more robust (along with
      slightly better debug within bin/tags2lists itself).
      
      pushd/popd spam tamed too (replaced by nice log messages).
      ace2ee1f
    • Michael Shigorin's avatar
      iso.mk: low space hint on build failure · b474bff4
      Michael Shigorin authored
      Just in case the build.log will be inobvious, and it's easy to diagnose
      automatically.  Thanks Andrey Stroganov for this use case.
      
      Thanks for improving the initial implementation go to raorn@ for kind
      commit lynch and to Yuri Bushmelev for actually suggesting something
      more concise.
      
      BTW the "1024" magic number was taken out of thin air:
      the "no free space" errors are most likely to happen while
      forming/populating a chroot (apt/rpm errors out) and chroots are
      roughly two orders of magnitude heftier than a megabyte.
      b474bff4
    • Michael Shigorin's avatar
      assorted fixups · ace5cb0f
      Michael Shigorin authored
      - more thorough build stages inline doc
      - quieter BUILDDIR instantiation
      - branding-altlinux-sisyphus by default
      - prettify installer selection somewhat
      - mkimage #24669 fixed upstream
      - sub.in/stage1/modules: +drm (as in m-p-d, for KMS)
      - tags2lists: generalize a bit
      ace5cb0f
    • Michael Shigorin's avatar
      tagged lists updates · 62f7ad5b
      Michael Shigorin authored
      tags2lists was tweaked to work on the more natural word boundaries
      than explicit "_", and the lists were renamed accordingly.
      
      Dropped the borrowed pkglists by the way.
      62f7ad5b
  33. 03 Nov, 2011 4 commits