Accepted debootstrap 0.3.3.3ubuntu4 (source)

Martin Pitt martin.pitt at ubuntu.com
Wed May 30 07:02:19 BST 2007


Hi,

Colin Watson [2007-05-29 18:43 +0100]:
> On Sat, May 26, 2007 at 08:20:15PM -0000, Ubuntu Installer wrote:
> > Changes: 
> >  debootstrap (0.3.3.3ubuntu4) gutsy; urgency=low
> >  .
> >    * {feisty,gutsy}.fakechroot: Remove libdevmapper1 postinst before
> >      configuring packages. It tries to create /dev/mapper which fails with
> >      fakechroot (since /dev/ is a symlink to the real /dev).
> 
> This feels like the wrong fix. Shouldn't libdevmapper1 be changed
> instead to succeed if /dev/mapper already exists? (I appreciate that you
> may not be able to fix feisty at this point.)

The postinst itself is correct, at least in a normal installation. It
does that check already.

The problem is that e. g. on the DC hosts, /dev/mapper does *not*
exist, and neither does /dev/.static/dev. In a chroot used by
fakechroot, /dev is a symlink to the real outside /dev, since you
cannot create any devices as non-root.

So *if* the libdevmapper postinst is justified in the first place,
then I believe my fix is correct. I only question the value of
creating an empty /dev/mapper/ directory in a postinst, since that's
actually what udev is supposed to do; but the last time I asked Scott
about this he believed it to be correct, so I did not make any
inquiries again.

Martin

-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20070530/ba1a945e/attachment.pgp 


More information about the ubuntu-devel mailing list