From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org> Subject: Re: [sisyphus] средства создания chroot'ов в Сизифе Date: Mon, 29 Oct 2007 13:31:34 +0300 Message-ID: <20071029103134.GA32112@basalt.office.altlinux.org> (raw) In-Reply-To: <20071029095946.GH19325@solemn.turbinal> [-- Attachment #1: Type: text/plain, Size: 1566 bytes --] On Mon, Oct 29, 2007 at 12:59:46PM +0300, Alexey Tourbin wrote: > On Wed, Oct 10, 2007 at 03:30:40PM +0400, Dmitry V. Levin wrote: > > > мне категорически не нужен rpm со всеми зависимостями rpmbuild. > > > hasher не удовлетворяет условию, что в чруте не должно быть пакетов, не > > > входящих в список достаточных для удовлетворения зависимостей необходимых > > > пакетов. > > > > псевдокод решения этой задачи: > > > > $ mkaptbox > > $ needed=$(path/to/aptbox/apt-get -y --print-uris install список-нужных-пакетов |sed регвыражение |sort -u) > > $ hsh --ini --pkg-build=, > > $ hsh-install список-нужных-пакетов > > $ installed=$(hsh-run -- rpmquery -a --qf '%{name}\n' |sort -u) > > $ hsh-run --r -- rpmi -e $(comm -23 <(echo "$installed") <(echo "$needed")) > > > > регвыражение можно позаимствовать из > > /usr/bin/hsh-sh-functions:print_uris() > > Что-то я не понял, какой в этом смысл. Этого автор вопроса не раскрыл. > Я бы очень не рекомендовал делать делать какой-либо чрут, в котором > нету пакета basesystem. Я бы даже сказал, что работоспособность > чего-либо без basesystem никто гарантировать не будет. Гарантий работоспособности такого чрута автор вопроса тоже не спрашивал. > Поэтому делать можно, как мне кажется, гораздо проще: > > $ hsh --initroot --pkg-build-list=basesystem Если точно знать узкую цель, то можно и это множество уменьшить. > Что-то встало многовато. Надо подумать, насколько там нужен mount > и кое-что ещё. mount вытягивается по зависимостям пакета startup. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-10-29 10:31 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-10-10 9:01 Peter V. Saveliev 2007-10-10 9:09 ` Alex Gorbachenko 2007-10-10 9:52 ` Peter V. Saveliev 2007-10-10 10:09 ` Andrew Borodin 2007-10-10 10:14 ` Andrew Borodin 2007-10-10 11:30 ` Dmitry V. Levin 2007-10-29 9:59 ` Alexey Tourbin 2007-10-29 10:31 ` Dmitry V. Levin [this message] 2007-10-29 10:52 ` Alexey Tourbin 2007-10-10 9:49 ` Michael Shigorin 2007-10-10 10:19 ` Peter V. Saveliev
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=20071029103134.GA32112@basalt.office.altlinux.org \ --to=ldv@altlinux.org \ --cc=sisyphus@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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git