ALT Linux Distributions development
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@altlinux.org>
To: devel-distro@lists.altlinux.org
Subject: Re: [devel-distro] Не устанавливается ядро
Date: Fri, 11 Sep 2020 14:23:08 +0300
Message-ID: <20200911112308.GC20087@imap.altlinux.org> (raw)
In-Reply-To: <20200911094551.6884be87@tower>

On Fri, Sep 11, 2020 at 12:45:51PM +0300, Anton V. Boyarshinov wrote:
> > > 11.09.2020 14:39, Sergey V Turchin пишет:
> > > > Я нашёл, как волшебным образом заставить установщик не
> > > > устанавливать ядро.  Достаточно применить прилагаемый патч.    

В смысле тебе надо было не устанавливать kernel-image вовсе,
при этом его что-то вытаскивало?  Интересный вариант, я и впрямь
не предполагал, что кому-то может понадобиться система без ядра
(кроме как в контейнере).

Если несложно -- расскажи, зачем такое понадобилось;
подумаем, как лучше быть.

> > > Во как. Очень интересно.  
> > Ну, с одной стороны, regexp действительно не слишком
> > корректный получается, но почему всё ядро не ставится?

А в чём именно некорректность?  По задаче, которая перед
этой функцией была мной поставлена -- "описать ядро и модули"
-- всё вроде правильно, тут разве что debuginfo могли мешаться
раньше (или если собирать образ с classic + debuginfo).

> > Или оно только за этот регэксп и тянулось?
> > Непорядок, если так...
> А, там ведь ещё замена KMODULES_REGEXP на KMODULES.

Вот тут похоже на диверсию в названии: это KPACKAGES*,
а не KMODULES*, в текущей реализации по сути.

> Тогда не знаю, так как не знаю как это реализовано.
> Но всё равно выдаёт какую-то кривизну "под капотом"

Как-то так (git grep KMODULES_REGEXP и ещё один шаг):

---
# kernel package list generation; see also #24669
NULL :=
SPACE := $(NULL) # the officially documented way of getting a space
COMMA := ,

list2re = $(subst $(SPACE),|,$(strip $(1)))

# args: KFLAVOURS, KMODULES
# NB: $(2) could be empty
kpackages = $(and $(1), \
	^kernel-(image|modules-($(call list2re,$(2))))-($(call list2re,$(1)))$$)
--- image.in/functions.mk

Аналогично там же сделана функция branding, только попроще.

-- 
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info


  reply	other threads:[~2020-09-11 11:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-11  7:39 Sergey V Turchin
2020-09-11  9:10 ` Антон Мидюков
2020-09-11  9:22   ` Sergey V Turchin
2020-09-11  9:43   ` Anton V. Boyarshinov
2020-09-11  9:45     ` Anton V. Boyarshinov
2020-09-11 11:23       ` Michael Shigorin [this message]
2020-09-11 11:38         ` Sergey V Turchin
2020-09-11 12:33           ` Michael Shigorin
2020-09-11 14:39             ` Sergey V Turchin
2020-09-11 15:13               ` Michael Shigorin
2020-09-14  6:15                 ` Sergey V Turchin
2020-09-11 14:42             ` Антон Мидюков
2020-09-11 15:14               ` Michael Shigorin
2020-09-11 15:25                 ` Антон Мидюков
2020-09-11 15:36                   ` [devel-distro] немножко про REPORTS=1 (was: Не устанавливается ядро) Michael Shigorin
2020-09-14  6:16                 ` [devel-distro] Не устанавливается ядро Sergey V Turchin

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=20200911112308.GC20087@imap.altlinux.org \
    --to=mike@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