[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hamm upgrade using dselect



On Wed, 25 Feb 1998, Paul Slootman wrote:

> On Wed 25 Feb 1998, Manoj Srivastava wrote:
> 
> > >>"Sven" == Sven Rudolph <sr1@os.inf.tu-dresden.de> writes:
> > 
> > Sven> No, I used this:
> > Sven> mounted Install from a filesystem which is already mounted.
> > 
> > I think we should obsolete that method. Mountable, which does
> > everything that mounted does, and more, is much nicer, in that it
> > checks MD5SUMS and does more than a simepl dpkg -BORGiE

i agree. mountable is much better than mounted. it needs pkg-order
support and pre-dependancies (which pkg-order will probably give it) but
apart from that, it is perfect for installing from mounted/mountable
filesystems.

> It also demands that the filesystem is not mounted, else it barfs when
> it tries to mount it itself. That's not always an option, and sometimes
> a pain.  Or at least that was when I tried that last.

it certainly doesn't do that now.  

i have my debian mirrors mounted on all machines at all times (as
/debian, /debian-incoming, and /debian-non-US).  I have the following in
my /var/lib/dpkg/methods/mountable/options:

---cut here---
$rootfs='/';
$rootpath='/debian';
$localpath='/debian-non-US';
@dirlist=('dists/unstable/main/binary-i386','dists/unstable/non-free/binary-i386','dists/unstable/contrib/binary-i386');
$logfile='/var/log/dpkg-mountable';
$insttype='manual';
$allowoverwrite=1;
$checkmd5=0;
1;
---cut here---

it works. it doesn't complain about the fs being already mounted, and it
doesn't attempt to unmount it after it's finished it's work (or if it
does, it quietly fails because / is in use).

I had to modify /usr/lib/dpkg/methods/install after dpkg got upgraded to
1.4.0.20 so that the "allowoverwrite=1" option still worked.

--- /usr/lib/dpkg/methods/mountable/install.orig	Thu Feb 26 09:09:55 1998
+++ /usr/lib/dpkg/methods/mountable/install	Thu Feb 26 09:10:11 1998
@@ -329,6 +329,7 @@
 
     my $dpkgargs="--admindir=$vardir --refuse-downgrade --skip-same-version --auto-deconfigure --unpack";
     $dpkgargs = "--refuse-overwrite ".$dpkgargs unless $::allowoverwrite;
+    $dpkgargs = "--force-overwrite ".$dpkgargs if $::allowoverwrite;
     if (!syscmd("$bindir/logcmd -aq -f $::logfile -- dpkg $dpkgargs $flist")) {
 	# parse the list of problematical files, and remove them from our list,
 	# then carry on.


craig

--
craig sanders


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: