debootstrap(8) reads:
--cut--
--exclude=alpha,beta
Comma separated list of packages which will be removed from
download and extract lists. WARNING: you can and probably will
exclude essential packages, be careful using this option.
--cut--
However, it seems that it doesn't allow, say, initscripts &
co. to be excluded:
# debootstrap --verbose --variant=minbase \
--exclude=initscripts,sysv{-rc,init{,-utils}},login,mount \
--include=bind9-host,bzip2,gawk,less,psmisc,tree,zip \
--keep-debootstrap-dir \
--print-debs \
lenny \
/tmp/$(date +%s)/ \
file:/com/waterlily.public/debian/
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional base dependencies: debian-archive-keyring gnupg gpgv libbind9-40 libbz2-1.0 libcap2 libdns45 libisc45 libisccc40 libisccfg40 libkeyutils1 libkrb53 liblwres40 libreadline5 libssl0.9.8 libusb-0.1-4 libxml2 readline-common
base-files base-passwd bash bsdutils coreutils debconf debconf-i18n debianutils diff dpkg e2fslibs e2fsprogs findutils gcc-4.2-base gcc-4.3-base grep gzip hostname initscripts libacl1 libattr1 libblkid1 libc6 libcomerr2 libdb4.6 libdevmapper1.02.1 libgcc1 liblocale-gettext-perl libncurses5 libpam-modules libpam-runtime libpam0g libselinux1 libsepol1 libslang2 libss2 libstdc++6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libuuid1 login lsb-base lzma makedev mawk mktemp mount ncurses-base ncurses-bin passwd perl-base procps sed sysv-rc sysvinit sysvinit-utils tar tzdata util-linux zlib1g apt bind9-host bzip2 debian-archive-keyring gawk gnupg gpgv less libbind9-40 libbz2-1.0 libcap2 libdns45 libisc45 libisccc40 libisccfg40 libkeyutils1 libkrb53 liblwres40 libreadline5 libssl0.9.8 libusb-0.1-4 libxml2 psmisc readline-common tree zip
#
--
FSF associate member #7257
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
On Sat, Nov 21, 2009 at 9:43 AM, Ivan Shmakov <iv...@main.uusia.org> wrote:
> --cut--
> --exclude=alpha,beta
> Comma separated list of packages which will be removed from
> download and extract lists. WARNING: you can and probably will
> exclude essential packages, be careful using this option.
> --cut--
>
> However, it seems that it doesn't allow, say, initscripts &
> co. to be excluded:
To you exclude a package you also need to exclude all one that depends
on it otherwise it will be added back into the installation list by
the dependency resolution code.
I'm changing the title of the bug to improve this part of the manpage
since it ought to be cited there to avoid confusion.
--
Otavio Salvador O.S. Systems
E-mail: ota...@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
OS> retitle 557322 Improve manpage to explain that --exclude doesn't
OS> affects dependency resolution thanks
[...]
IS> However, it seems that it doesn't allow, say, initscripts & co. to
IS> be excluded:
>> # debootstrap --verbose --variant=minbase \
>> --exclude=initscripts,sysv{-rc,init{,-utils}},login,mount \
>> --include=bind9-host,bzip2,gawk,less,psmisc,tree,zip \
>> --keep-debootstrap-dir \
>> --print-debs \
>> lenny \
>> /tmp/$(date +%s)/ \
>> file:/com/waterlily.public/debian/
>> I: Retrieving Release
>> I: Retrieving Packages
>> I: Validating Packages
>> I: Resolving dependencies of required packages...
>> I: Resolving dependencies of base packages...
>> I: Found additional base dependencies: debian-archive-keyring gnupg gpgv libbind9-40 libbz2-1.0 libcap2 libdns45 libisc45 libisccc40 libisccfg40 libkeyutils1 libkrb53 liblwres40 libreadline5 libssl0.9.8 libusb-0.1-4 libxml2 readline-common
[...]
OS> To you exclude a package you also need to exclude all one that
OS> depends on it otherwise it will be added back into the installation
OS> list by the dependency resolution code.
Is it really the whole problem? What other package(s) I should
--exclude= as well considering the case above?
OS> I'm changing the title of the bug to improve this part of the
OS> manpage since it ought to be cited there to avoid confusion.
Please note that:
* the ``Found additional base dependencies:'' line doesn't
report any of the `--exclude='d packages among those brought
by the dependencies;
* chroot(8)ing into the system and `apt-get remove'ing the very
same set of packages:
# apt-get remove initscripts sysv{-rc,init{,-utils}} login mount
doesn't remove any package out of this set; (though it
complains on essentiality, of course.)
TIA.
--
FSF associate member #7257
--
On Sun, Nov 22, 2009 at 4:00 AM, Ivan Shmakov <iv...@main.uusia.org> wrote:
> OS> To you exclude a package you also need to exclude all one that
> OS> depends on it otherwise it will be added back into the installation
> OS> list by the dependency resolution code.
>
> Is it really the whole problem? What other package(s) I should
> --exclude= as well considering the case above?
It is added when debootstrap adds the required packages.
I've prepared a patch to allow it to be removed on the required list
however it is added back in dependency resolution code. I didn't play
with it to check the package that depends on that and will leave it to
you.
> Hello Ivan,
>
> On Sun, Nov 22, 2009 at 4:00 AM, Ivan Shmakov <iv...@main.uusia.org> wrote:
>> OS> To you exclude a package you also need to exclude all one that
>> OS> depends on it otherwise it will be added back into the installation
>> OS> list by the dependency resolution code.
>>
>> Is it really the whole problem? What other package(s) I should
>> --exclude= as well considering the case above?
>
> It is added when debootstrap adds the required packages.
>
> I've prepared a patch to allow it to be removed on the required list
> however it is added back in dependency resolution code. I didn't play
> with it to check the package that depends on that and will leave it to
> you.
Please also consider the case of virtual packages. E.g. --exclude
exim4 should not add exim4 back in due to dependencies on
mail-transport-agent. Instead some other MTA should be used, idealy
one added with --include.
MfG
Goswin
On Mon, Nov 23, 2009 at 5:27 AM, Goswin von Brederlow <goswi...@web.de> wrote:
> Please also consider the case of virtual packages. E.g. --exclude
> exim4 should not add exim4 back in due to dependencies on
> mail-transport-agent. Instead some other MTA should be used, idealy
> one added with --include.
If you wish to drop exim4 you can do it but will also need to drop any
package depending on it otherwise it will be added back.
--
Otavio Salvador O.S. Systems
E-mail: ota...@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
--
> Hello,
>
> On Mon, Nov 23, 2009 at 5:27 AM, Goswin von Brederlow <goswi...@web.de> wrote:
>> Please also consider the case of virtual packages. E.g. --exclude
>> exim4 should not add exim4 back in due to dependencies on
>> mail-transport-agent. Instead some other MTA should be used, idealy
>> one added with --include.
>
> If you wish to drop exim4 you can do it but will also need to drop any
> package depending on it otherwise it will be added back.
Please reread what I said. It should not add exim4 back in just
because something depends on mail-transport-agent. Exim4 is also just
an example for a virtual package.
MfG
Goswin