[Pkg-uml-pkgs] Bug#387938: rootstrap: run apt-get upgrade after
installing sources.list?
Andreas Beckmann
debian at abeckmann.de
Sun Sep 17 15:45:50 UTC 2006
Package: rootstrap
Version: 0.3.23-1
Severity: wishlist
Hi,
might it be useful, to run apt-get upgrade after installing a custom
sources.list? The new sources.list might contain the security updates
source and there may be newer versions available than installed by
debootstrap.
I tried the following:
to rootstrap.conf, section [debian] I added (below apt_force_yes)
# Run apt-get upgrade after updating the package lists, useful e.g.
# after adding the security updates archive using sources= (see above)
apt_upgrade=true
and to modules/debian I added (between 'apt-get update' and
'apt-get install'):
if test "$apt_upgrade" = "true"; then
chroot $TARGET apt-get $apt_options upgrade
fi
One caveat: this currently only works if $install is not empty.
Furthermore I'd like to have the possibility to run 'apt-get update'
after 'apt-get install', again. I have local packages that install new
trusted keys for some local package archive (using apt_force_yes=true).
Running 'apt-get update' again would refresh the package lists using the
newly configured trusted keys.
(The first package list update is only done if $install is not empty,
too.)
Andreas
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable'), (30, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-k7
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages rootstrap depends on:
ii debootstrap 0.3.3 Bootstrap a basic Debian system
ii dpkg 1.13.21 package maintenance system for Deb
ii python 2.4.3-11 An interactive high-level object-o
ii user-mode-linux 2.6.17-1um-2 User-mode Linux (kernel)
Versions of packages rootstrap recommends:
ii uml-utilities 20060323-3 User-mode Linux (utility programs)
-- no debconf information
More information about the Pkg-uml-pkgs
mailing list