1. 19 Feb, 2013 1 commit
  2. 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
  3. 04 Feb, 2013 2 commits
    • Michael Shigorin's avatar
      ensure that IMAGEDIR exists (thus globbable) · e46c259a
      Michael Shigorin authored
      It appears that manually specified IMAGEDIR, e.g. by adding
      
        IMAGEDIR = ~/out/$(shell date +%Y%m%d)
      
      to ~/.mkimage/profiles.mk, might be problematic due to
      missing globbing.  Let's make sure the paths are globbed
      and directories are created -- since make's wildcard()
      returns an empty string when there's nothing there [yet].
      e46c259a
    • Michael Shigorin's avatar
      kernel: factor the former lib/kernel.mk in · 2d3e5f2b
      Michael Shigorin authored
      It wasn't spotted when introducing the distinct kernel feature;
      will need fixup as we meet packaged ARM/PPC kernels.
      2d3e5f2b
  4. 31 Dec, 2012 1 commit
  5. 03 Dec, 2012 1 commit
  6. 19 Nov, 2012 1 commit
  7. 11 Nov, 2012 1 commit
  8. 31 Oct, 2012 1 commit
  9. 27 Oct, 2012 1 commit
    • Michael Shigorin's avatar
      distro/installer, use/live/x11 += use/firmware · 02791834
      Michael Shigorin authored
      This is thanks to the fact that alterator-based install2 needs
      alterator-browser-qt which needs X11 which needs working device drivers
      -- and at least AMD C60 APU would only yield a nice dotted white screen
      without that firmware.
      
      Roughly the same for X11 bearing LiveCD images.
      02791834
  10. 24 Sep, 2012 1 commit
  11. 03 Sep, 2012 1 commit
  12. 11 Aug, 2012 2 commits
    • Michael Shigorin's avatar
      merged experimental support for opensuse · 23175f00
      Michael Shigorin authored
      This isn't ready for general consumption (just as centos one)
      but the notion of REPO is floating around along with apt-conf
      thoughts, and it might still be useful to someone poking around
      conf.d/test.mk.
      
      Request hasher-pkg-init.spec from mike@ or led@ if interested;
      the experiments were carried out using openSUSE 11.4 repository
      and slightly patched hasher (cpio blacklist for devices).
      23175f00
    • Michael Shigorin's avatar
      complex subprofile delimiter changed ("/" -> "@") · b21353a0
      Michael Shigorin authored
      That sub/stage2/install2 was somewhat clumsy actually as it looked
      like a hierarchical thing while being a substitution thing:
      generic stage2 would get put in place renamed as install2.
      
      This could only get worse with hierarchical features which have
      already been both requested and considered for quite a time,
      and "stage2 at install2" reads much more naturally.
      b21353a0
  13. 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
  14. 30 Jul, 2012 1 commit
    • Michael Shigorin's avatar
      lib/clean.mk: post-build cleanup revisited · 3a8af6b5
      Michael Shigorin authored
      The prerequisites for a cleanup after a successful build
      were somewhat weird at this point; now the rules are:
      - if DEBUG level is more than 1 or CHECK is set, don't do it;
      - otherwise if at least one of the following conditions is true:
        + there's more than one target being built in a row;
        + the build was run by e.g. alterator-mkimage;
        + metaprofile directory is read only
        ...then do a distclean.
      
      If these are still weird or feel unsuitable for profile hacking,
      drop me a note (or a patch).
      3a8af6b5
  15. 21 Jul, 2012 1 commit
  16. 16 Jul, 2012 1 commit
    • Michael Shigorin's avatar
      non-native ARM support via qemu · d31a2555
      Michael Shigorin authored
      mkimage and hasher can make use of qemu to run
      non-native binaries while working on the chroots;
      thanks kas@, manowar@ and sbolshakov@ for implementing
      this functionality as well as providing nice examples
      through mkimage-profiles-arm and mkimage-profile-armrootfs.
      
      This required the architecture check to be added since baking
      a tarball with "arm" as its specified arch and x86_64 inside
      isn't particularly good thing to let slip through; however
      the implementation is quite fragile, bugreports and patches
      are seriously welcome.
      
      NB: APTCONF evaluation order between lazy make and nimble shell
      turned out to be quite a delicate issue in this particular case.
      d31a2555
  17. 09 Jul, 2012 1 commit
    • Michael Shigorin's avatar
      initial native ARM support · 3c26cc86
      Michael Shigorin authored
      The only thing to be fixed was setarch(8) symlinks assumption
      that is correct for x86 but not for ARM.
      
      There's also some hasher(7) setup to be done:
      
        mkdir -p ~/.hasher
        echo >> ~/.hasher/config <<-EOF
        def_target=arm
        #cache_dir=$HOME/tmp	# depends on RAM/storage configuration
        EOF
      
      ...and of course apt(8) should be properly set up too.
      
      An example PoC build on a CM-A510 board (tmpfs):
      
        $ make BRANDING=altlinux-centaurus ve/bare.tar.gz
        ** ARCH: arm
        18:10:45 initializing BUILDDIR: build/
        18:10:45 preparing distro config: build/distcfg.mk
        18:10:46 starting image build: tail -f build/build.log
        18:14:49 done (4:02)
        ** image: $TMP/out/bare-20120706-arm.tar.gz [23M]
      3c26cc86
  18. 06 Jul, 2012 1 commit
  19. 02 Jul, 2012 1 commit
  20. 25 Jun, 2012 2 commits
    • Michael Shigorin's avatar
      factor out openssh packages · 3f21b6b0
      Michael Shigorin authored
      There's no need to repeat the typical openssh-* triade
      all over the place; those who need server and client
      are better off pulling in "openssh" pkglist, and those
      needing a particular package should specify it.
      3f21b6b0
    • Michael Shigorin's avatar
      initial conf.d/vm.mk · 90be07fb
      Michael Shigorin authored
      After we have built a bare virtual machine image successfully
      some variations are due, and these are to be described here.
      90be07fb
  21. 21 Jun, 2012 1 commit
  22. 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
  23. 26 May, 2012 1 commit
    • Michael Shigorin's avatar
      lib/common.mk: avoid using uninitialized variables · 860e20c6
      Michael Shigorin authored
      It somehow managed to evade me that $(TMP) might be uninitialized;
      definitely should be checked before stuffing into sed substitution
      command.
      
      NB: this could be done in pure make but my take was less readable.
      
      Thanks shadowsbrother/gmail for hitting and reporting this.
      860e20c6
  24. 16 May, 2012 1 commit
  25. 14 May, 2012 1 commit
  26. 10 May, 2012 3 commits
    • Michael Shigorin's avatar
      lib/distro.mk: tiny ISO info tweak · 9eae9d7b
      Michael Shigorin authored
      udisks seem to pass up META_VOL_ID;
      let's make it a bit more informative.
      9eae9d7b
    • Michael Shigorin's avatar
      use/installer/kms · e6aa4ecc
      Michael Shigorin authored
      Just like livecd-install, graphical installer KMS support
      looks better as an optional part of install2 feature.
      
      Of course it's optional only if the release manager is fine
      with VESA drivers and not KMS-requiring intel/radeon/nouveau;
      thanks led@ for a confirmation just in case.
      e6aa4ecc
    • Michael Shigorin's avatar
      initial kernel and metadata features · c83cc111
      Michael Shigorin authored
      This further refines the modular build by making
      metadata being a clearly separated feature rather
      than having to rely on runtime tests, and also by
      moving the code which cares for kernel bits of base
      installation (.base list) in a feature of its own.
      
      There's more to it but let's get the ball rolling first.
      c83cc111
  27. 06 May, 2012 1 commit
    • Michael Shigorin's avatar
      no build means *no* build (and less reports), really · 454e7162
      Michael Shigorin authored
      It's hard to tell a successful build from a failed one
      if downstream hides the exit code; it's useless to continue
      a `for' loop if a pipe shoves that to a subshell; well it seems
      that a bashism is worth a thousand quirks with extra fds here.
      Minor regexp enhancements are also due.
      
      reports.mk made a bit more resilient/prudent either.
      454e7162
  28. 24 Apr, 2012 1 commit
  29. 23 Apr, 2012 2 commits
    • Michael Shigorin's avatar
      introduced lib/kernel.mk helper makefile · 305e97d5
      Michael Shigorin authored
      Sometimes it's desirable to provide the kernel supporting
      maximal amount of RAM on the system; bad news is that x86
      has a kludge named PAE, good news is that x86_64 doesn't
      need it at all; but now we must be able to choose between
      those.
      
      BIGRAM will hold the flavour needed.
      305e97d5
    • Michael Shigorin's avatar
      reports.mk: added reports/scripts · 6ada32dc
      Michael Shigorin authored
      This one extracts the exact time-ordered list of script hooks
      run while building the image.
      
      Some commons refactoring is also due.
      6ada32dc
  30. 18 Apr, 2012 1 commit
    • Michael Shigorin's avatar
      virtualbox feature renamed to vm, extended · 48587911
      Michael Shigorin authored
      Initial SPICE support has been added for kvm/libvirt installation
      and boot-up using qxl and spice by default as proposed by shaba@.
      
      VirtualBox part is shifted a level deeper correspondingly
      but otherwise stays the same.
      48587911
  31. 10 Apr, 2012 1 commit
    • Michael Shigorin's avatar
      lib/build.mk: tweaked wreckage filter · a6cc9fa8
      Michael Shigorin authored
      A pretty common issue breaking the image build is inter-package
      file conflict resulting in hsh-install failure down there.
      Let's bring that back to attention conveniently.
      a6cc9fa8
  32. 07 Apr, 2012 1 commit
  33. 03 Apr, 2012 1 commit
    • Michael Shigorin's avatar
      lib/log.mk: check hasher version · 88050c97
      Michael Shigorin authored
      There is at least one known deficiency for mkimage-profiles:
      build.log will be truncated if verbose mode is enabled and
      hasher version is lower than 1.3.22.
      
      The check is done here since it's where the logging is arranged,
      and doing it in image.in/Makefile would result in the warning
      about log-truncating software being truncated by the said software.
      
      Thanks Max Kosmach for reporting this inobviousity.
      88050c97
  34. 02 Apr, 2012 1 commit