From: "Антон Мидюков" <midyukov-anton@ya.ru>
To: devel-distro@lists.altlinux.org
Subject: Re: [devel-distro] Use bootchain in simple profile and copy file to instumental chroot
Date: Wed, 19 Jan 2022 19:18:35 +0700
Message-ID: <59dc79d0-5138-eba8-870c-117e7e5733f3@ya.ru> (raw)
In-Reply-To: <CANM4Ruht=j4O45BZ9p3+4AkrT39b_V=deAE8EUgphvkNAVE8=w@mail.gmail.com>
19.01.2022 18:54, Eugene Prokopiev пишет:
> Здравствуйте!
>
> Хочу использовать bootchain не в m-p, а в более примитивном профиле -
> http://git.altlinux.org/people/enp/packages/mkimage-profile-live-minimal-example.git
>
> Читаю http://git.altlinux.org/people/antohami/packages/mkimage-profiles.git?p=mkimage-profiles.git;a=blob;f=features.in/initrd-bootchain/stage1/scripts.d/80-make-initrd-for-bootchain
> и понимаю, что не знаю, как файл modules протащить в инструментальный
> чрут. В примерах mkimage есть переменная PROPAGATOR_MAR_MODULES =
> modules, а скрипт mki-build-propagator копирует файл, описанный в этой
> переменной, в инструментальный чрут. Но мне-то этот файл нужен на
> стадии run-scripts. Скрипты, исполняемые на этой стадии, уже работают
> в инструментальном чруте. Цель copy-tree кладет файлы в рабочий, а не
> инструментальный чрут. Что же мне делать и как это сделано в m-p?
>
В mkimage-profiles это делается в sub.in/stage1/Makefile:
LIST_MODULES = .work/chroot/.in/modules
prepare-modules:
@echo $(foreach V,$(STAGE1_MODLISTS),$(wildcard modules.d/??-$(V))) \
| xargs -r -- cat >> $(LIST_MODULES)
Вам это нужно делать также в Makefile.
--
С уважением, Антон Мидюков <antohami@altlinux.org>
next prev parent reply other threads:[~2022-01-19 12:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-19 11:54 Eugene Prokopiev
2022-01-19 12:18 ` Антон Мидюков [this message]
2022-01-19 13:19 ` Eugene Prokopiev
2022-01-19 14:22 ` Eugene Prokopiev
2022-01-19 14:27 ` Антон Мидюков
2022-01-21 1:56 ` Leonid Krivoshein
2022-01-19 16:32 ` Michael Shigorin
2022-01-20 3:55 ` Eugene Prokopiev
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=59dc79d0-5138-eba8-870c-117e7e5733f3@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