ALT Linux Distributions development
 help / color / mirror / Atom feed
From: "Антон Мидюков" <midyukov-anton@ya.ru>
To: devel-distro@lists.altlinux.org
Subject: Re: [devel-distro] Fwd: Re: mkimage-profiles 1.4.8-alt1
Date: Sat, 20 Mar 2021 01:05:56 +0700
Message-ID: <53e58c90-6e64-4822-9d74-fba80006dcad@ya.ru> (raw)
In-Reply-To: <20210319154917.GU11787@imap.altlinux.org>

19.03.2021 22:49, Michael Shigorin пишет:
> On Fri, Mar 19, 2021 at 09:29:20PM +0700, Антон Мидюков wrote:
>>>> Убрал вообще -b 262144 -noI и попробовал
>>>> образ собрался и нормально работает и загружается
>>> Возможно, пора это вынести.  Когда писал лет десять назад --
>>> тщательно вымерял и сравнивал, но тогда и сами squashfs-tools
>>> были другими.
>>>
>> Это волшебно, но 03-test-kernel выполняется уже после того, как
>> собрался squash.  Всего лишь нужно было внимательно посмотреть
>> сборочный лог :-)
> 
> То есть в итоге параметры-то писались при порождении BUILDDIR,
> но в какой-то момент применяться стали только при перезапуске
> сборки в сгенерированном профиле.
> 
> Интересно, в какой... но не настолько, чтоб бисектить %)
> 

Что тут бисектить? Нужно было понять причину. А причина в том, что была введена сортировка субпрофилей.
И коммит нашёлся:

commit da65dc2fd9686b02d17241b26ebf7364d946bff8
Author: Michael Shigorin <mike@altlinux.org>
Date:   Mon Jul 15 13:53:44 2013 +0400

    build-distro: skip pseudo subprofiles
    
    rootfs presented a special case when there is no resulting
    directory at all as it gets merged with the target subprofile
    by design.
    
    Still those features adding only rootfs scripts need to depend
    on it but this resulted in an attempt to process a missing subdir.
    
    This is brought back to sanity now.

diff --git a/features.in/build-distro/lib/90-build-distro.mk b/features.in/build-distro/lib/90-build-distro.mk
index 587e2df5c..77bd2a210 100644
--- a/features.in/build-distro/lib/90-build-distro.mk
+++ b/features.in/build-distro/lib/90-build-distro.mk
@@ -1,7 +1,8 @@
 # step 4: build the distribution image
 
-# take the latter part for complex-specified subprofiles like stage2@live
-SUBDIRS = $(SUBPROFILE_DIRS)
+# take the latter part for complex-specified subprofiles like stage2@live;
+# care to exclude non-directories holding no makefiles like rootfs
+SUBDIRS = $(sort $(dir $(wildcard $(addsuffix /Makefile,$(SUBPROFILE_DIRS)))))
 
 # proxy over the ISO metadata collected; see also genisoimagerc(5)
 BOOT_SYSI := $(META_SYSTEM_ID)

В результате stage1 выполняется после сборки install и live. Возможно, что на тот момент они назывались иначе (stage2@install, stage2live, stage2@rescue). Или, если бы они как-то так назывались, то проблемы не было.

-- 
С уважением, Антон Мидюков <antohami@altlinux.org>


      reply	other threads:[~2021-03-19 18:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-17 20:32 ` Антон Мидюков
2021-03-18  9:26   ` Ivan A. Melnikov
2021-03-18 22:43     ` Артём
2021-03-18 23:33     ` Артём
2021-03-19  8:30       ` Ivan A. Melnikov
2021-03-19 11:45         ` Michael Shigorin
2021-03-19 11:43       ` Michael Shigorin
2021-03-19 14:29         ` Антон Мидюков
2021-03-19 15:14           ` Антон Мидюков
2021-03-19 15:56             ` [devel-distro] параметры сжатия squashfs (was: mkimage-profiles 1.4.8-alt1) Michael Shigorin
2021-03-19 19:03               ` Антон Мидюков
2021-03-19 15:49           ` [devel-distro] Fwd: Re: mkimage-profiles 1.4.8-alt1 Michael Shigorin
2021-03-19 18:05             ` Антон Мидюков [this message]

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=53e58c90-6e64-4822-9d74-fba80006dcad@ya.ru \
    --to=midyukov-anton@ya.ru \
    --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