ALT Linux Distributions development
 help / color / mirror / Atom feed
From: Evgeny Sinelnikov <sin@altlinux.org>
To: Distributions development <devel-distro@lists.altlinux.org>
Subject: Re: [devel-distro] Включение alterator-postinstall в инсталлятор
Date: Sat, 31 Aug 2019 15:33:20 +0400
Message-ID: <CAK42-Gq=CcOQWreh6XeajXXf1pE3XifUBGBMHK0171t8Znxbvw@mail.gmail.com> (raw)
In-Reply-To: <20190823095031.GC22673@imap.altlinux.org>

пт, 23 авг. 2019 г. в 13:50, Michael Shigorin <mike@altlinux.org>:
>
> On Fri, Aug 23, 2019 at 12:48:34PM +0300, Igor Chudov wrote:
> > Для автоматического развёртывания ОС с использованием
> > функционала autoinstall иногда необходимо выполнить больше
> > действий, чем умеет стандартный инсталлятор. На altwiki описан
> > модуль alterator-postinstall, который мог бы сильно помочь в
> > решении проблем, но, как я понимаю, на данный момент он не
> > включается в установщик.
> >
> > Предлагаю включить данный модуль в стандартный образ,
> > чтобы максимизировать возможности автоматизации.
>
> Это use/install2/autoinstall в mkimage-profiles,
> но он что-то неудобное тащил, помнится.

Да ничего, кроме curl'а и альтератора он, вроде, не тащит.

$ rpm -qpR /home/sin/build/rpm/RPMS/noarch/alterator-postinstall-0.1-alt3.noarch.rpm
alterator >= 4.17-alt1
curl
/bin/sh
alterator-sh-functions
coreutils
libshell
rpmlib(PayloadIsLzma)

$ grep -A3 '^# for autoinstall' features.in/install2/config.mk
# for autoinstall
use/install2/autoinstall:
        @$(call add,INSTALL2_PACKAGES,curl)
        @$(call add,BASE_PACKAGES,alterator-postinstall)

$ grep -A13 "^use/install2:" features.in/install2/config.mk
use/install2: use/stage2 sub/stage2@install2 use/metadata \
        use/cleanup/installer use/install2/autoinstall
        @$(call add_feature)
        @$(call try,INSTALLER,altlinux-generic) # might be replaced later
        @$(call add,INSTALL2_PACKAGES,installer-distro-$$(INSTALLER)-stage2)
        @$(call add,INSTALL2_PACKAGES,branding-$$(BRANDING)-alterator)
        @$(call
add,INSTALL2_PACKAGES,installer-feature-create-ghost-directories)
        @$(call add,BASE_PACKAGES,branding-$$(BRANDING)-release)
        @$(call add,BASE_PACKAGES,installer-common-stage3)
        @$(call add,BASE_PACKAGES,glibc-gconv-modules)  # for guile22
        @$(call add,BASE_LISTS,$(call tags,basesystem))
        @$(call xport,BASE_BOOTLOADER)
        @$(call xport,INSTALL2_CLEANUP_PACKAGES)
        @$(call xport,INSTALL2_CLEANUP_KDRIVERS)

Подозреваю, что для решения данной проблемы достаточно вот такого исправления:
diff --git a/features.in/install2/config.mk b/features.in/install2/config.mk
index aebf0b2b..a70cb584 100644
--- a/features.in/install2/config.mk
+++ b/features.in/install2/config.mk
@@ -51,7 +51,7 @@ use/install2/net: use/install2

 # for autoinstall
 use/install2/autoinstall:
-       @$(call add,INSTALL2_PACKAGES,curl)
+       @$(call add,INSTALL2_PACKAGES,alterator-postinstall)
        @$(call add,BASE_PACKAGES,alterator-postinstall)

 # see also use/vmguest/kvm; qxl included in xorg pkglist

> Осталось вспомнить, что именно меня тогда возмутило...

Вспоминай ;)



-- 
Sin (Sinelnikov Evgeny)

  reply	other threads:[~2019-08-31 11:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-23  9:48 Igor Chudov
2019-08-23  9:50 ` Michael Shigorin
2019-08-31 11:33   ` Evgeny Sinelnikov [this message]
2019-08-31 11:03   ` Evgeny Sinelnikov
2019-08-31 11:33     ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK42-Gq=CcOQWreh6XeajXXf1pE3XifUBGBMHK0171t8Znxbvw@mail.gmail.com' \
    --to=sin@altlinux.org \
    --cc=devel-distro@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-distro


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git