1. 09 Feb, 2024 1 commit
  2. 27 Feb, 2023 1 commit
    • Anton Midyukov's avatar
      Initial feature live-install · 2fcfcf92
      Anton Midyukov authored
      This feature complements the live image of the second stage with installation
      image-specific settings and scripted hooks.
      
      It is recommended to connect using +live-installer to ensure that a typical set
      of installer-related features is included.
      
      Unlike the install2 feature, a separate image of the second stage of 'altinst'
      is not built, but the live image is supplemented with installer packages in
      order to reduce the total volume of the iso image.
      
      Installation consists of two stages:
      1. The live image is unpacked, as in livecd-install
      2. Install additional packages BASE_PACKAGES and package groups THE_GROUPS as in install2.
      
      Unlike install2, only those packages that are not in the live image are placed in the main repository. This is how the size of the iso image is reduced.
      2fcfcf92
  3. 27 Jan, 2023 2 commits
  4. 30 Dec, 2022 1 commit
  5. 02 Sep, 2022 1 commit
  6. 03 Jun, 2022 1 commit
  7. 02 Mar, 2022 1 commit
  8. 19 Jan, 2022 1 commit
    • Anton Midyukov's avatar
      rename empty .gitignore to .empty · 44c60e5c
      Anton Midyukov authored
      When building the rpm package .gitignore is deleted. These files
      are necessary in order for saved profiles when building the image
      from git repository and from installed rpm package have been
      identical.
      44c60e5c
  9. 30 Dec, 2021 1 commit
  10. 10 Dec, 2021 1 commit
  11. 12 Apr, 2021 1 commit
  12. 26 Sep, 2020 1 commit
    • Michael Shigorin's avatar
      stage2: include targets.mk once · 31f280c0
      Michael Shigorin authored
      Partially reverts commit e8f63357
      which has added an overlooked second `include targets.mk' which
      began spamming build.log immediately:
      
        /usr/share/mkimage/targets.mk:23: warning:
          overriding recipe for target `__profile_internal_rule'
        /usr/share/mkimage/targets.mk:23: warning:
          ignoring old recipe for target `__profile_internal_rule'
      
      *sigh*
      31f280c0
  13. 17 Aug, 2020 1 commit
  14. 22 May, 2020 1 commit
  15. 23 May, 2016 1 commit
    • Konstantin A. Lepikhov's avatar
      sub.in/stage2: Added copy-tree to stage2 · e8f63357
      Konstantin A. Lepikhov authored
      stage2 only allows to run certain scripts and install packages, but
      sometimes one need just to copy something to stage2 (like stage1 does).
      
      How to use:
      
      put files under ./files directory with the same structure as on
      resulting image.
      e8f63357
  16. 12 Jan, 2016 1 commit
    • Michael Shigorin's avatar
      stage2: tweak 99-cleanup-boot for efficiency · 37e77285
      Michael Shigorin authored
      Thanks glebfm@ for noticing that Simply (an m-p-d product)
      takes no kernel inside squashfs but relies on livecd-install's
      50-restore-kernel.sh hook to copy the kernel from iso9660
      and regenerate initrd (which is a must anyways but requires
      System.map to be still around).
      
      This saves about 3 Mb in ISO size for a LiveCD using
      kernel-image-std-def-4.1.15-alt1.x86_64.rpm.
      37e77285
  17. 04 Dec, 2015 1 commit
  18. 16 Nov, 2015 1 commit
    • Michael Shigorin's avatar
      image.in, stage2: reworked TCB fixup hook · 5427f3af
      Michael Shigorin authored
      The issue at hand is that:
      
      /etc/tcb/USER/shadow gets USER:auth ownership (OK);
      /etc/tcb/USER/shadow- backup file is root:root (broken);
      /etc/tcb/USER/shadow.lock file is also root:root (broken).
      
      This is observed for all pseudousers created by package installation
      process within working chroots as well as for users created by deflogin
      feature; the problem is that e.g. echo USER:PASS | chpasswd will break.
      
      Looks like the cuplrit might be fakeroot/faked.
      5427f3af
  19. 11 Jul, 2015 1 commit
    • Michael Shigorin's avatar
      stage2: no kernels no go · a277a6cc
      Michael Shigorin authored
      The flexible KFLAVOURS handling has a downside:
      if no packages match the regexp it's silently OK
      until too late, and the error is incomprehensible.
      Let's fix the latter at least.
      a277a6cc
  20. 09 Mar, 2015 1 commit
    • Michael Shigorin's avatar
      stage2, install2: oops, narrow the cleanup back · 7cb477c3
      Michael Shigorin authored
      The former install2-only "bloated binary" purge script
      happened to hit stage2 (which is a lot more than just
      install2); a kind of safety net has been stuck into it
      to guard installable LiveCDs against this particular
      cleanup but seems it was not enought for ildar@ who
      reported this problem almost three years after it was
      introduced.
      
      This change re-places the script back into install2
      section; the binaries in question amount for ca. 8 Mb
      (except openssl ildar@ asked about); if these are deemed
      unneccessary within any other stage2-based subprofiles,
      please step up with details.
      7cb477c3
  21. 19 Sep, 2014 1 commit
    • Michael Shigorin's avatar
      fix kpackages() API · 6f452182
      Michael Shigorin authored
      This function's got its argument order chosen for "aesthetical"
      reason of $(2) following $(1) in the macros but the logical order
      is exactly the opposite: we care for kernel flavour much more than
      for module set (which is dependent upon it).
      
      So while silent dropout of kernel-image if KFLAVOURS is set
      but KMODULES is empty could be fixed by testing for $(2) only,
      it looks like a good time to fix this discrepancy altogether.
      6f452182
  22. 05 Mar, 2014 1 commit
    • Michael Shigorin's avatar
      documentation: use paths relative to toplevel dir · 3f547e25
      Michael Shigorin authored
      This change is done to reduce ambiguity in some cases;
      the previous intention has been to ease navigation when
      staying in a particular directory, now it's been changed
      in favour of convenient toplevel `git grep' in fact.
      
      Both variants have their pros and cons, I just find myself
      leaning to this one by now hence the commit.  Feel free to
      provide constructive criticism :)
      
      Some path-related bitrot has also been fixed while at that.
      3f547e25
  23. 12 Aug, 2013 1 commit
    • Michael Pozhidaev's avatar
      stage2: extend /boot cleaner stoplist · 99a7a972
      Michael Pozhidaev authored
      Minor fix: /boot directory is not cleaned for livecd if there are
      homeros-install or luwrain-install files (in addition to live-install
      and livecd-install being already checked).
      99a7a972
  24. 06 Jan, 2013 1 commit
  25. 31 Oct, 2012 1 commit
  26. 10 Oct, 2012 1 commit
    • Michael Shigorin's avatar
      make-3.82 adaptation · 6f5be918
      Michael Shigorin authored
      The issue actually hit image.in/Makefile: "metadata" target
      in features.in/metadata/lib/50-metadata.mk wasn't reached
      even if features.in/build-distro/lib/90-build-distro.mk
      would ACK that the "whatever" actions included "metadata";
      thus Metadata/pkg-groups.tar wasn't created and the installer
      silently failed to install the .base system.
      
      Let's armour the rest of the cases where the order of inclusion
      might be important as well.
      6f5be918
  27. 03 Sep, 2012 1 commit
    • Michael Shigorin's avatar
      fix root directory permissions · 83fa2544
      Michael Shigorin authored
      hsh-initroot leaves the chroot's root directory permissions
      as 1775 while these should really be 755 at most; let's fix it
      (important for both VE and VM images, useful for rescue/livecd
      ones as well -- especially those with an installer onboard).
      83fa2544
  28. 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
  29. 21 May, 2012 1 commit
  30. 25 Apr, 2012 1 commit
  31. 23 Apr, 2012 2 commits
    • Michael Shigorin's avatar
      cleanup: *support* livecd-install · 50bfea9d
      Michael Shigorin authored
      livecd-install support wasn't added properly;
      fixed (thanks glebfm@ yet again).
      
      Something like fine-grained KEEP_* might be due...
      50bfea9d
    • Michael Shigorin's avatar
      85cleanup-legacy: less cruel one · d0a8ea6b
      Michael Shigorin authored
      The early version considered ISO and KOI encoding families
      as obsolete; the current one is a bit more wise and knows
      these are just /rare/.  Thanks glebfm@ for #27168 research
      and cinnamon by slava@ for ISO-related noises at startup.
      d0a8ea6b
  32. 10 Apr, 2012 1 commit
    • Michael Shigorin's avatar
      implemented {THE,BASE,LIVE}_PACKAGES_REGEXP · 86c42e2d
      Michael Shigorin authored
      There were STAGE1_PACKAGES_REGEXP and MAIN_PACKAGES_REGEXP
      but adding more of those was postponed to avoid bloat and
      bitrot; THE_PACKAGES_REGEXP is needed for use/firmware now
      and looks like BASE_PACKAGES_REGEXP and LIVE_PACKAGES_REGEXP
      will be useful before too long either.
      
      Docs updated to include stage-specific package related vatiables.
      86c42e2d
  33. 09 Apr, 2012 2 commits
    • Gleb Fotengauer-Malinovskiy's avatar
      add dummy distro/livecd-install · 1432bb16
      Gleb Fotengauer-Malinovskiy authored
      sub.in/stage2/image-scripts.d/99cleanup-boot,
      livecd-install need /boot files too
      1432bb16
    • Michael Shigorin's avatar
      stage2: 99-elf-stats for squashfs tuning · c2996cc4
      Michael Shigorin authored
      This kind of test was proposed by led@ to gather statistics
      on chroot's contents going to become squashfs (the script
      optimizations lowering added overhead from ~10 sec down
      to a subsecond range were also proposed by him).
      
      Intentionally not documented in doc/variables.txt due to
      the rather lowlevel nature of the probe (at least so far).
      
      The knobs involved are SQUASHFS (the additional effort kicks
      in only for "tight" case) and GLOBAL_SQUASHFS_SORT (must be
      non-empty for this extra overhead to occur).
      
      Additional experimentation is needed to find out whether
      the difference in squashfs size and performance is worth
      the trouble (seems the impact is non-zero but pretty minor).
      c2996cc4
  34. 31 Mar, 2012 1 commit
    • Michael Shigorin's avatar
      cleanup scripts rehashed · 1b885b3d
      Michael Shigorin authored
      There's much reason for reuse instead of duplication
      among the different stage2-based subprofiles.
      
      In particular, the rather monolithic driver cleanup script
      of the ancient is better done in several clear pieces with
      the final depmod run.
      
      Scripts dropping apt/rpm databases will dump pkglist first.
      
      A script purging /boot/* will honour live-install if present.
      
      Minor inno^Wfixups all over the map too.
      1b885b3d
  35. 19 Dec, 2011 1 commit
    • Michael Shigorin's avatar
      introduced THE_{KMODULES,PACKAGES,LISTS,GROUPS} · d6972a39
      Michael Shigorin authored
      As too many things started duplicating between distros proper
      and (e.g. corresponding) LiveCDs, it became apparent that a class
      of entities which end up working for THE_USER (not a sysadmin,
      and not a developer, just a Linux user) is in need.
      
      So THE_KMODULES will power installed basesystem and live image,
      while THE_PACKAGES, THE_LISTS and THE_GROUPS will participate
      in building those.
      d6972a39
  36. 06 Nov, 2011 2 commits
    • 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-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