1. 15 Oct, 2018 2 commits
    • Michael Shigorin's avatar
      stage2: fix cifs-related bits · 2b3455c2
      Michael Shigorin authored
      sin@ was kind enough to just stick mount.cifs into initrd
      regardless of its presence in the chroot in question;
      let's look first and only add what's found.
      
      This started as a stopgap fix after make-initrd 2.2.0
      which happened to collide with cifs-related m-p commits
      in a somewhat unfortunate manner...
      2b3455c2
    • Evgeny Sinelnikov's avatar
      stage1: fix CIFS installation method · 00a828bc
      Evgeny Sinelnikov authored
      00a828bc
  2. 23 May, 2018 1 commit
  3. 21 May, 2018 1 commit
  4. 28 Jul, 2016 1 commit
  5. 03 Jun, 2016 1 commit
  6. 23 May, 2016 1 commit
  7. 20 Apr, 2015 2 commits
    • Michael Shigorin's avatar
      stage2: added broken-down module lists · e139a5e0
      Michael Shigorin authored
      These were produced off the single sub.in/stage1/modules
      file using this scriptlet to prefix/annotate the names:
      
        grep '\.ko$' modules \
        | grep -v / \
        | while read m; do \
        	echo "$(find /lib/modules/$(uname -r)/kernel/{drivers,fs} \
      		-name "$m" -printf %P $m $(modinfo -d "${m%.ko}" 2>&1)"; \
          done
      
      ...with subsequent sorting and manual separation.
      
      This is meant to be the second stage in monolithic modules
      file split, so the lists themselves are largely unmolested
      otherwise.  The plan is to further split those into prefix-
      and module-specific ones.
      
      Add a note clarifying 10-stage2's status, by the way.
      e139a5e0
    • Michael Shigorin's avatar
      stage1, stage2: moved propagator modules file · 1ee01498
      Michael Shigorin authored
      What was a static sub.in/stage1/modules (and the only one)
      is now features.in/stage2/stage1/modules.d/10-stage2
      (basically a compatibility file that might go some day).
      
      It will be auto-picked as its name corresponds to the
      NN-SUFFIX pattern specified in stage1 subprofile now
      with $(FEATURES) going into default STAGE1_MODLISTS.
      1ee01498
  8. 19 Sep, 2014 1 commit
    • Michael Shigorin's avatar
      kernel, stage2: rearranged initrd hooks · 8faf1407
      Michael Shigorin authored
      stage2 has been thinking it's synonymous with propagator
      and used to usurp kernel's belongings either; carefully
      tear scripts apart so that kernel feature makes sure
      initrd gets generated, and stage2 (which is still all
      about propagator) cares for its bits.
      8faf1407
  9. 12 May, 2014 1 commit
  10. 27 Jan, 2014 1 commit
    • Michael Shigorin's avatar
      stage2: preload ahci before udev/propagator · 9d495f26
      Michael Shigorin authored
      This change tries to force loading the storage driver
      for cases when SecureBoot is "helping" the chainloader
      to fail, see #29705 for details collected so far.
      
      Of course ahci.ko only does AHCI but that's every storage
      controller I've seen on UEFI/SecureBoot systems so far.
      9d495f26
  11. 19 Feb, 2013 1 commit
  12. 03 Dec, 2012 1 commit
  13. 19 Nov, 2012 1 commit
    • Michael Shigorin's avatar
      stage2: updated 80-make-initfs · bd427df7
      Michael Shigorin authored
      propagator-20121109-alt1 obsoleted initfs (and dropped
      mkinitfs script altogether); that was taken into account
      in both make-initrd-propagator and mkimage-profiles-desktop
      but not in mkimage proper, see also discussion in #27976.
      bd427df7
  14. 10 Nov, 2012 1 commit
    • Michael Shigorin's avatar
      80-make-initfs: fix the silliest mistake ever · c30490e2
      Michael Shigorin authored
      *Of course* the "weird" [ ... ] || ... construct meant to avoid
      the non-zero exit status of the whole thing wasn't employed
      where it actually does make the difference!
      
      Thanks ildar@ for hitting and reporting this, as in
      
        + verbose '/usr/lib64/propagator exists'
        + '[' -n '' ']'
        mki-scripts: .../stage1/scripts.d/80-make-initfs: unable to run script.
        make[3]: *** [run-scripts] Error 1
      c30490e2
  15. 15 Oct, 2012 2 commits
    • Michael Shigorin's avatar
      80-make-initfs: fixed silly thinko · 90b8fd49
      Michael Shigorin authored
      The added pdir check was a hillarious(tm) overlooked bug indeed:
      I tried to put .../initfs/initfs instead of .../initfs as the result.
      
      Duly spotted by torabora@, thanks a lot.
      
      Still the kmod+propagator+kernel-image combo needed some tweaking too,
      see #27640
      90b8fd49
    • Michael Shigorin's avatar
      stage2: brevity fix · 944e0341
      Michael Shigorin authored
      A tiny bit less cut-n-paste. :)
      944e0341
  16. 24 Sep, 2012 1 commit
    • Michael Shigorin's avatar
      80-make-initfs: fix for current make-initrd* · 12a2fc98
      Michael Shigorin authored
      Thanks mithraen@ for spotting, boyarsh@ for explaining,
      and legion@ for hearty support :)
      
      The problem would manifest itself like this:
      
        /.host/script.sh: line 20: /usr/lib64/propagator/initfs: \
        No such file or directory
        mki-scripts: .../stage1/scripts.d/80-make-initfs: unable to run script.
      12a2fc98
  17. 14 Jun, 2012 1 commit
    • Michael Shigorin's avatar
      added plymouth feature · 8989fc27
      Michael Shigorin authored
      An initial draft of it was done half a year ago but several tricky
      thingies had kept the code from showing up as it was rather brittle
      and incomplete.
      
      This implementation involves quite a few changes all over the place
      but finally works good enough for live and installer images.
      
      Please pay attention to the versions of these packages:
      - installer-feature-setup-plymouth (0.3.2-alt1+)
      - branding-altlinux-sisyphus (20110706-alt2+ if used)
      - plymouth (0.8.3-alt20.git20110406+)
      
      See also:
      - http://www.altlinux.org/Branding
      - http://www.altlinux.org/Plymouth
      8989fc27
  18. 25 May, 2012 1 commit
  19. 09 Apr, 2012 2 commits
    • Michael Shigorin's avatar
      stage2: squashfs blocksize tweaks · 8d160698
      Michael Shigorin authored
      Looks like the 128k default block size is pretty well chosen:
      it saves ~6% of image size compared to 64k, and subsequent
      differences are ~3% per doubling the block size up to 1M
      (thanks led@ for carrying out the tests).
      
      So we'll stick with 256k for "normal" xz compression (inodes
      uncompressed) and get 512k back for "tight" one (compressed).
      The runtime performance issues are to be examined yet when
      bootchart or the like is deployed, nothing drastic though.
      
      With "fast" (gzip/lzo) squash compression inodes go unmolested.
      
      For the record, tight live-webkiosk builds as 95M image in 3:40,
      and tight live-flightgear.iso builds as 669M image in 6:34.  Nice.
      
      There's no much sense going for 1M block size: e.g. live-webkiosk
      would drop to 93M (3:46) but its load time would increase up to
      2:07 as compared to 1:48 for -b 524288 and 1:42 for -b 262144 -noI
      on a Duron 500/512M system given the very same DVD+RW media.
      8d160698
    • Michael Shigorin's avatar
      stage2: tunable squashfs compression · fe58c46e
      Michael Shigorin authored
      The existing implementation would handle kernel differences
      just fine but a bit too automatically: if it sees xz support,
      that's what will end up being used (and if there's -Xbcj binary
      compression filter available for the target platform, it will
      be applied unequivocally either).
      
      It's perfectly suitabe for getting fine-tuned release images
      but is also a bit too resource-consuming while developing the
      image configuration which has no business with its compression.
      
      The one and only knob is SQUASHFS (see doc/variables.txt);
      to give an idea of the differences, here are some numbers
      for a mostly-binary (43% as per 99-elf-stats) webkiosk livecd
      and a rather less so (18%) flightgear one on a dual quad-core
      X5570 node (each mksquashfs run used up all the cores):
      
      SQUASHFS | live-webkiosk.iso | live-flightgear.iso
      ---------+-------------------+---------------------
      fast     | 3:30 / 130M       | 5:11 / 852M
      normal * | 3:37 / 100M       | 5:35 / 688M
      tight    | 3:50 / 98M        | 6:47 / 683M
      
      Thus if the knob isn't fiddled with, the defaults will allow
      for a reasonably fast build of a pretty slim image; if one is
      building a release or if a particular image is very sensitive
      being close to the media capacity then just add SQUASHFS=tight
      and see it a percent or two down on size.
      
      Please note that lzo/gzip-compressed images are also quicker
      to uncompress thus further helping with test iterations.
      
      Thanks to led@ and glebfm@ for helpful hints and questions.
      fe58c46e
  20. 07 Apr, 2012 1 commit
  21. 18 Jan, 2012 1 commit
    • Michael Shigorin's avatar
      03-test-kernel: tweak squashfs compression · 178a700e
      Michael Shigorin authored
      A larger block size was recommended by led@;
      gns@ seems to concur as the 512k value was borrowed
      from liveflash.eeepc profile (along with -noI).
      
      The other issue is with binary specific compressors:
      x86 was clearly assumed while the data for an educated
      guess are pretty handy.  Please note that using filters
      incurs additional compression attempts for the utility
      to choose the best result.
      178a700e
  22. 26 Dec, 2011 1 commit
    • Michael Shigorin's avatar
      s/subst/sed -i/g · 96e89d00
      Michael Shigorin authored
      Initial openSUSE package base taming effort has shown that
      relatively few things should be fixed; subst has been generalized
      as -i option to sed(1) since its introduction, so let's just fix it.
      96e89d00
  23. 04 Nov, 2011 1 commit
    • Michael Shigorin's avatar
      stage2 based live subprofiles, updated docs · f5a8b893
      Michael Shigorin authored
      - introduced generic stage2 subprofile (non-standalone)
      - ported installer and rescue over to stage2/{install2,rescue}
      - initial stage2/live (needs more work for sure)
      - use make-initrd-propagator
      - updated and somewhat extended doc/
      
      NB: mind #26133, #26134
      f5a8b893