1. 21 Nov, 2011 3 commits
    • Michael Shigorin's avatar
      0.5.0-alt1 · 48272c71
      Michael Shigorin authored
      - add_feature for autoregistration (simple but invasive)
      - added features: isomd5sum, repo, systemd
      - changed features: powerbutton -> power
      48272c71
    • Michael Shigorin's avatar
      Makefile: presume a distro by default · 10b9e293
      Michael Shigorin authored
      When ve/ support was introduced, a simple "make icewm.iso"
      had to turn into the more elaborate "make distro/icewm.iso".
      This latter one involves several keystrokes more, which is
      not even (environ)mentally friendly.
      
      This was supposed to get fixed somewhere down the road with
      a fallback but the elegance of IMAGE_* setup waterfall barred
      me from tweaking IMAGE_TARGET at once (and the downstream fixup
      would imply re-tweaking the consequent variables as well which
      is blatantly anti-mkimage-profilic being a brute fork).
      
      OTOH testing for a "directory" part of the goal is going to
      either deadlock on IMAGE_CLASS or duplicate its assignment.
      
      So now when I've had enough typing an extra "distro/",
      I'm going to just bite the bullet and tweak IMAGE_TARGET
      with a test duplicating IMAGE_CLASS assignment indeed
      (testing for e.g. "/" results in a different test,
      which would be worse yet).
      
      Please suggest a more elegant solution if you invent one!
      10b9e293
    • Michael Shigorin's avatar
      lib/build.mk: different colours for different outcomes · b52ff4ef
      Michael Shigorin authored
      As was (quite reasonably) asked by someone and me too,
      why should a successful build yield a *red* line
      (a grep's default)?
      
      So now it's new and improved, 25% free and so forth:
      with a successful build you get a green line, while
      errors from a broke one result in red ones.
      
      Clinically tested in both b/w and w/b colour schemes;
      in case you're not satisfied, please return original
      ANSI_OK and ANSI_FAIL values to the colour dealer
      and pass your favourite ones instead.
      b52ff4ef
  2. 19 Nov, 2011 6 commits
    • Michael Shigorin's avatar
      experimental server-ovz-netinst image · ad687508
      Michael Shigorin authored
      It's now possible to:
      - make distro/server-ovz.iso;
      - make distro/server-ovz-netinst.iso;
      - publish the former image's contents on ftp.linux.kiev.ua;
      - boot the latter (~17M) image and enjoy the netinstall ;-)
      
      The catch is that the stage2 (altinst file) location has to be
      hardwired into syslinux config snippet for things to happen
      automatically -- even if it can be specified manually in case
      of failure.
      
      The other catch is that currently a netinstall image is somewhat
      tied to the particular image it installs since stage1 kernel and
      stage2 modules must correspond strictly (the typical symptoms of
      the glitch would be missing mouse driver and weird "permission
      denied" errors during an attempt to partition the hard drives).
      
      It might be desirable to provide multi-distro netinstall image...
      ad687508
    • Michael Shigorin's avatar
      introduced add_feature function · 9cedefdb
      Michael Shigorin authored
      The features might get copy-pasted (or even copied-and-pruned)
      when initialized; there's an unneccessary duplication of the
      function name in the line adding it to FEATURES list, thus
      prone to being forgotten and causing some havoc later on.
      
      It was wrong in the first place but tackling this with some
      double-colon rules ran into terminality issues, and further
      tortures were considered unneccessary.
      
      The current solution isn't perfect (no completely transparent
      function name registration upon corresponding target being called)
      but at least it is an improvement...
      9cedefdb
    • Michael Shigorin's avatar
      server-ovz: rebase onto server-mini · 781c98bb
      Michael Shigorin authored
      The culprit was missing dhcpcd, although the rest
      of niceties already in server-mini were welcome to
      server-ovz either.
      781c98bb
    • Michael Shigorin's avatar
      tagged scripts breakage partially fixed · c4a5515b
      Michael Shigorin authored
      It appears that features.in/Makefile functioned a bit
      differently by now than was described back then: after
      loops and pushds got rearranged for robustness, it stopped
      to pick up a cleanup feature tagged script.
      
      That particular script is now better de-tagged and simply
      placed as a script to be merged into install2 subprofile.
      
      The tagged scripts still require a bit more comprehension
      to understand the use cases (e.g., do we need per-subprofile
      tagged script subdirs or just a toplevel one should be looked
      at, with script names telling where to put them).
      
      README used to mix up subprofiles and features; fixed.
      c4a5515b
    • Michael Shigorin's avatar
      initial repo feature · ae7139f8
      Michael Shigorin authored
      We've got some parts of it in build-distro feature,
      and some went to dev feature for no real reason.
      
      But a bare installer might go without package base,
      and LiveCDs other than live-builder might find local
      repository useful given aufs2 root overlay.
      
      Now the overall scheme is more straightforward:
      - a distro:
        + asks that a package repo be included
        + cares to further add the packages to it
      - a repo feature:
        + pulls in sub/main for it to happen
        + provides genbasedir script to create repo metadata
        + supplements live feature with repo configuration
      ae7139f8
    • Michael Shigorin's avatar
      initial systemd feature · 7964bccb
      Michael Shigorin authored
      Thanks shaba@ for both the package and a wiki page,
      and dek@ for the inspiration to finally get to it.
      7964bccb
  3. 12 Nov, 2011 1 commit
  4. 11 Nov, 2011 1 commit
    • Michael Shigorin's avatar
      initial isomd5sum feature · 52f68973
      Michael Shigorin authored
      This is a base for "media check" to become available:
      using this feature will implant a checksum into the image
      so that it can be verified during install.
      
      Also added a test/demo distro/live-isomd5sum target.
      For real distros an alterator module is probably due.
      52f68973
  5. 09 Nov, 2011 3 commits
    • Michael Shigorin's avatar
      stage1/modules: added sdhci · f257b8e9
      Michael Shigorin authored
      This might be needed to install onto an SD card in a "native"
      (non-USB-mediated) SD/MMC cardreader; thanks Vladimir Karpinsky
      and gns@ for going over it for liveflash.eeepc case.
      f257b8e9
    • Michael Shigorin's avatar
      image.in/Makefile: phonytize targets · 94d2ca36
      Michael Shigorin authored
      It is a current convention to prefer clearly phony targets
      (see the wiki page) so let's follow it here too.
      94d2ca36
    • Michael Shigorin's avatar
      features.in/power: renamed++ from powerbutton · b85d82c2
      Michael Shigorin authored
      This feature was handling powersave already, so the name
      should be changed already.  Thanks sem@ for cpufreq-simple,
      there's now a compelling reason for that rename.
      
      Tweaked a few distro recipes accordingly.
      b85d82c2
  6. 07 Nov, 2011 6 commits
    • Michael Shigorin's avatar
      gear-store-tags · e2eef6eb
      Michael Shigorin authored
      e2eef6eb
    • Michael Shigorin's avatar
      0.4.3.2-alt1 · 67828082
      Michael Shigorin authored
      - mkimage version required/checked
      67828082
    • Michael Shigorin's avatar
      image.in/Makefile: mkimage version check · 7a8ac9e7
      Michael Shigorin authored
      There's a recommended version (0.2.0+ currently) and also
      the minimal version, 0.1.7, which received the important fixes.
      It was proposed by nice antique@ folks IIRC.
      
      Unfortunately the "suboptimal version" warning is pretty modest,
      and "minimal version" error will be apparent with DEBUG enabled;
      still the latter will terminate the downstream build and leave
      a clear message in build.log at any rate.
      7a8ac9e7
    • Michael Shigorin's avatar
      0.4.3.1-alt1 · b3e4d9af
      Michael Shigorin authored
      - CLEAN by default unless DEBUG
      b3e4d9af
    • Michael Shigorin's avatar
      CLEAN by default (unless DEBUG) · ab70588f
      Michael Shigorin authored
      CLEAN is so useful and fiddling with .work chroots does
      demand knowledge (hsh-shell is handy btw); so unless we
      really get our hands dirty, let's spare ours preciouss
      tmpfss.
      ab70588f
    • Michael Shigorin's avatar
      0.4.3-alt2 · 4313629a
      Michael Shigorin authored
      - include %mpdir/ itself as well
      4313629a
  7. 06 Nov, 2011 14 commits
    • Michael Shigorin's avatar
      gear-store-tags · 0301f08e
      Michael Shigorin authored
      0301f08e
    • Michael Shigorin's avatar
      0.4.3-alt1 · a91acf3d
      Michael Shigorin authored
      - enhancements to logging
      - NICE variable: employ nice(1) and ionice(1) if available
      - features.in/syslinux: banner tweaked to include target name
      - features.in/live: set up unicode locale/consolefont
      a91acf3d
    • Michael Shigorin's avatar
      full-view docs update · ddf0c5b7
      Michael Shigorin authored
      - toplevel README received some long-needed refactoring
        + lowlevel detail moved, well, to lowlevel READMEs
      - reflected more thoroughly that m-p is not about distros anymore
      - dropped features.in/00example/README.en: it's already out-of-date
        a bit, and there's no perceived need in thorough English docs so far
      - wiki article got split into parts and somewhat rewritten, links updated
      - mv doc/{CodingStyle,style.txt}
      ddf0c5b7
    • Michael Shigorin's avatar
      live: set up basic unicode locale · 73f676f9
      Michael Shigorin authored
      This only deals with console output (a text livecd doesn't ask
      the user regarding the preferred language so far).
      
      Refer to these discussions if needed:
      https://bugzilla.altlinux.org/show_bug.cgi?id=25225
      https://lists.altlinux.org/pipermail/devel-conf/2005-August/001785.html
      73f676f9
    • Michael Shigorin's avatar
      downstream postprocessing symlinks tweaked · 3c1bca53
      Michael Shigorin authored
      The bigger goal was being able to set up build in a way
      that would allow for images (with configs and logs) be
      deposited in per-IMAGE_NAME subdirectories of IMAGEDIR;
      that's not done yet but a part of it is ready.
      
      NB: in BUILDDIR, symlinking the just-built image is now
      replaced with symlinking the IMAGEDIR since its location
      is then predictable thus .gitignore-able for further work
      on a generated profile, and more documentable as well.
      It's not a hard change though, if you miss the image link
      just drop me a note (or a commit).
      3c1bca53
    • Michael Shigorin's avatar
      further toplevel logging tweaks · 07fdc6dd
      Michael Shigorin authored
      Essentially some more polishing:
      - image path extracted from downstream build log;
      - extended error/warning regexp a bit so those with
        color grep options get even prettier output.
      
      Notes:
      - "1024" a magic number (briefly explained when introduced)
        moved to a sort of variable;
      - "100 lines" for tail(1) is a rule-of-thumb taking into account
        typical amount of hasher/mkimage exhaust given GLOBAL_VERBOSE.
      07fdc6dd
    • Michael Shigorin's avatar
      tweaked variable logging · cc8982dd
      Michael Shigorin authored
      Preferences might be somewhat interesting too: while the official
      ones shouldn't influence the build result at all, there's no whitelist
      so all kinds of weirdness can be stuffed into local config in principle.
      That should be diagnosable at least.
      cc8982dd
    • Michael Shigorin's avatar
      introduced NICE variable · cd3e47c5
      Michael Shigorin authored
      This one regulates the build wrapper: if the value is non-empty
      then nice(1) and ionice(1) will be attempted so that the build
      behaves better in regard to other tasks running on the system.
      
      A few doc/variables.txt updates along the way.
      cd3e47c5
    • Michael Shigorin's avatar
      syslinux *.cfg: replace banner · 102aa385
      Michael Shigorin authored
      Back then I didn't come up with anything smarter than
      "mkimage-profiles 2.0" (with my tongue in a cheek),
      but as m-p has grown up to 0.4 it's time to fix this.
      
      When done properly, all of the string should be brandable
      (with some sane default value inheriting from image name),
      but let's do it at least bit by bit.
      102aa385
    • Michael Shigorin's avatar
      toplevel build report now timestamped · 30b1aa9b
      Michael Shigorin authored
      Thanks torabora@ for yet again seemingly obvious feature request
      which strangely managed to evade implementation before.
      
      On an afterthought, mass builds would suggest too much coffee
      instead of a progress indicator -- so implemented the latter.
      
      NB: the actual downstream-make-calling rule would expand the "naive"
      $(shell date) too early: the rule is evaluated before starting its
      execution, and as it's the time consuming one the shell evaluation
      was in need, not make's.  The result is less generally available
      (needs to be double quoted and won't work inside e.g. awk programs)
      but way more precise.
      30b1aa9b
    • Michael Shigorin's avatar
      dump sources.list to build.log · 813571cb
      Michael Shigorin authored
      The seemingly obvious feature was proposed by torabora@.
      APTCONF complicates things a bit of course...
      (and was slightly kludgy btw; fixed)
      813571cb
    • Michael Shigorin's avatar
      .gear/mkimage-profiles.spec: initial package · 67a7f68e
      Michael Shigorin authored
      Also added to the live-builder ISO which is now self-hosted
      (sans full repo): one can build an image capable of rebuilding
      itself (which is not that useful) and of building other goodies
      on some temporarily unused RAM-filled hardware (which is the goal).
      67a7f68e
    • Michael Shigorin's avatar
      live-builder distro: your self-hosted livecd · 83392012
      Michael Shigorin authored
      If you make distro/live-builder.iso, the result is an image
      containing almost everything (short of actual full enough
      repository) to rebuild itself.  It will attempt to configure
      eth0 with DHCP and reach http://ftp.altlinux.org for packages.
      
      RAM requirements start with 2Gb, self-build is accomplished
      on a 4Gb host with "make CLEAN=1 distro/live-builder.iso".
      
      Packages required for "make distro/syslinux.iso" get included.
      
      (some due fixups all over the place too)
      83392012
    • 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
  8. 04 Nov, 2011 6 commits
    • Michael Shigorin's avatar
      added doc/apt.conf.sample · 08de7149
      Michael Shigorin authored
      Unfortunately apt configuration is not straightforward at all
      regarding being overridden: one can't just provide sources.list
      but needs a corresponding apt.conf along with it, and that apt.conf
      must disable the SysV-style snippet directories to avoid interesting
      side effects of all the things getting overlaid.
      
      So it's not surprising that torabora has asked for an example...
      (thanks go to boyarsh@ since I asked him for an example long ago)
      08de7149
    • Michael Shigorin's avatar
      BELL support · 895fae7d
      Michael Shigorin authored
      Implemented opportunistic alarm support as proposed by torabora;
      the actual result depends on readline and/or terminal settings
      (read up on "visual bell" vs "audible bell" in case it's wrong).
      
      TODO: this ought to be shifted downstream when proper logging
      framework is there.
      895fae7d
    • Michael Shigorin's avatar
      introduced conf.d/ for distro, ve config snippets · e8306860
      Michael Shigorin authored
      This was asked for by Leo-sp50 and torabora, and seems quite reasonable:
      let's provide means to keep at least some distribution configurations
      a bit apart, so that these can be considered more standalone in terms
      of hard warranted functionality but at the same time enjoying the common
      infrastructure.
      
      Considering lib/distro.mk: it's now experimentally pulled apart so that
      parallel development of different distro families can go on without
      major merge hassles.  *Please* don't abuse with massive copy-paste.
      
      And before you ask: this might get extended to allow for "private"
      out-of-tree configurations being included since apparently there
      are goals with no meaning outside of some very particular context...
      but otherwise I'd like to encourage getting reusable bits in-tree.
      e8306860
    • Michael Shigorin's avatar
      stage2-based debug fixup · 6a280d75
      Michael Shigorin authored
      Employed double colon targets to eliminate
        warning: ignoring old commands for target `debug'
      6a280d75
    • Michael Shigorin's avatar
      features.in/syslinux: tweak 00gfxboot.cfg · 912d86c4
      Michael Shigorin authored
      The same change as in m-p-d f1c5dd0 (discussed in #22486).
      Seems it wasn't the culprit regarding the "BIOS won't boot
      off this DVD" but is also recommended in README.gfxboot.
      912d86c4
    • Michael Shigorin's avatar
      features.in/syslinux: new 10removable.cfg · 812883fa
      Michael Shigorin authored
      Borrowed from wmsmall iso by kostyalamer@.
      812883fa