ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] средства создания chroot'ов в Сизифе
Date: Mon, 29 Oct 2007 12:59:46 +0300
Message-ID: <20071029095946.GH19325@solemn.turbinal> (raw)
In-Reply-To: <20071010113040.GA9731@basalt.office.altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 3171 bytes --]

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
Components: hasher
Processing pkglists... hasher done
Processing srclists...  hasher done
Creating component releases... done
Updating global release file... done
Appending MD5Sum... hasher done
All your base are belong to us!!!
Preparing packages for installation...
altlinux-release-Sisyphus-alt20070101
libreadline-5.1.4-alt3
bash-3.1.17-alt3
bzip2-1.0.4-alt3
chkconfig-1.3.29-alt2
common-licenses-1.3-alt1
diffutils-2.8.7-alt3
libuuid-1.40.2-alt1
libdevmapper-1.02.22-alt1
libblkid-1.40.2-alt1
libcom_err-1.40.2-alt1
libe2fs-1.40.2-alt1
libss-1.40.2-alt1
e2fsprogs-1.40.2-alt1
libtcb-1.0.2-alt1
shadow-convert-4.0.4.1-alt7
nss_tcb-1.0.2-alt1
sed-4.1.5-alt2
findutils-4.2.29-alt1
libpcre3-7.4-alt1
grep-2.5.1a-alt3
control-0.7.4-alt1
pam-config-control-1.4.3.1-alt1
libpasswdqc-1.1.0-alt0.3
pam-config-1.4.3.1-alt1
libpam0-0.99.6.3-alt2
pam0_tcb-1.0.2-alt1
tcb-utils-1.0.2-alt1
pam-0.99.6.3-alt2
pam0_userpass-1.0.2-alt2
pam0_mktemp-1.0.3-alt4
pam0_passwdqc-1.1.0-alt0.3
shadow-utils-4.0.4.1-alt7
etcskel-2.0.11-alt2
gawk-3.1.5-alt3
gzip-1.3.5-alt4
hashalot-0.3-alt1
losetup-2.12r-alt5
perl-base-5.8.8-alt14
rootfiles-alt-alt9.3
libtic-5.6-alt4
termutils-5.6-alt4
msulogin-0.9.1-alt3
SysVinit-2.86-alt1
psmisc-22.3-alt1
service-0.5.14-alt1
libwrap-7.6-alt8
portmap-4.0-alt2
nfs-utils-1.1.1-alt1
mount-2.12r-alt5
libgpm-1.20.1-alt8
libncurses-5.6-alt4
procps-3.2.5-alt7
util-linux-2.12r-alt5
libshhopt-1.1.7-alt4
hwclock-2.24-alt2
module-init-tools-3.3-alt0.5.pre6
startup-0.9.8.17-alt1
tar-1.18-alt3
libattr-2.4.39-alt1
libacl-2.2.45-alt1
vim-minimal-7.1.140-alt1
vitmp-1.0-alt4
mktemp-1.5-alt2
$

Что-то встало многовато.  Надо подумать, насколько там нужен mount
и кое-что ещё.  Но *-devel пакетов тут нет, система вполне себе
минимальная.

$ hsh-run --rooter -- du -hs /     
du: `/.out': Permission denied
du: `/.host': Permission denied
41M     /
$

Кстати есть ещё пакет interactivesystem, который лучше подходит для
конструирования "живых систем", а не чрутов.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-10-29  9:59 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 [this message]
2007-10-29 10:31         ` Dmitry V. Levin
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=20071029095946.GH19325@solemn.turbinal \
    --to=at@altlinux.ru \
    --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