[Bug 900526] Re: d-i fails to divert initctl when upgrading packages during install

Colin Watson cjwatson at canonical.com
Tue Jan 3 22:55:45 UTC 2012


Light dawns.

chroot-setup.sh does indeed move aside /sbin/initctl.  However, it
doesn't divert it!  Therefore, if upstart is upgraded, it will put a
real initctl back.  In this case, upstart is upgraded before procps,
hence the bug.

Alarmingly, this means that in such cases the resulting system will end
up with an upgraded version of upstart according to dpkg but will in
fact have an old initctl binary, because d-i will have saved initctl
from the start of its internal upgrade process and then put it back at
the end.  Therefore, we need to fix this bug rather urgently for all
supported releases.

** Package changed: debian-installer (Ubuntu Precise) => debian-
installer-utils (Ubuntu Precise)

** Changed in: debian-installer-utils (Ubuntu Precise)
       Status: Confirmed => Triaged

** Also affects: debian-installer-utils (Ubuntu Hardy)
   Importance: Undecided
       Status: New

** Also affects: debian-installer-utils (Ubuntu Lucid)
   Importance: Undecided
       Status: New

** Also affects: debian-installer-utils (Ubuntu Natty)
   Importance: Undecided
       Status: New

** Also affects: debian-installer-utils (Ubuntu Oneiric)
   Importance: Undecided
       Status: New

** Also affects: debian-installer-utils (Ubuntu Maverick)
   Importance: Undecided
       Status: New

** Changed in: debian-installer-utils (Ubuntu Hardy)
       Status: New => Triaged

** Changed in: debian-installer-utils (Ubuntu Lucid)
       Status: New => Triaged

** Changed in: debian-installer-utils (Ubuntu Maverick)
       Status: New => Triaged

** Changed in: debian-installer-utils (Ubuntu Natty)
       Status: New => Triaged

** Changed in: debian-installer-utils (Ubuntu Oneiric)
       Status: New => Triaged

** Changed in: debian-installer-utils (Ubuntu Hardy)
   Importance: Undecided => High

** Changed in: debian-installer-utils (Ubuntu Lucid)
   Importance: Undecided => High

** Changed in: debian-installer-utils (Ubuntu Maverick)
   Importance: Undecided => High

** Changed in: debian-installer-utils (Ubuntu Natty)
   Importance: Undecided => High

** Changed in: debian-installer-utils (Ubuntu Oneiric)
   Importance: Undecided => High

** Changed in: debian-installer-utils (Ubuntu Hardy)
     Assignee: (unassigned) => Colin Watson (cjwatson)

** Changed in: debian-installer-utils (Ubuntu Lucid)
     Assignee: (unassigned) => Colin Watson (cjwatson)

** Changed in: debian-installer-utils (Ubuntu Maverick)
     Assignee: (unassigned) => Colin Watson (cjwatson)

** Changed in: debian-installer-utils (Ubuntu Natty)
     Assignee: (unassigned) => Colin Watson (cjwatson)

** Changed in: debian-installer-utils (Ubuntu Oneiric)
     Assignee: (unassigned) => Colin Watson (cjwatson)

** Changed in: debian-installer-utils (Ubuntu Lucid)
    Milestone: None => ubuntu-10.04.4

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debian-installer-utils in
Ubuntu.
https://bugs.launchpad.net/bugs/900526

Title:
  d-i fails to divert initctl when upgrading packages during install

Status in “debian-installer-utils” package in Ubuntu:
  Triaged
Status in “debian-installer-utils” source package in Lucid:
  Triaged
Status in “debian-installer-utils” source package in Maverick:
  Triaged
Status in “debian-installer-utils” source package in Natty:
  Triaged
Status in “debian-installer-utils” source package in Oneiric:
  Triaged
Status in “debian-installer-utils” source package in Precise:
  Triaged
Status in “debian-installer-utils” source package in Hardy:
  Triaged

Bug description:
  The SRU verification for bug #771372 in maverick has revealed that
  debian-installer's chroot setup handling when installing/upgrading
  packages at install time is different than the chroot setup used by
  debootstrap.  When initially bootstrapping a maverick system, the
  postinst script of the maverick procps package has its call to 'start'
  successfully intercepted; however, when *upgrading* the procps package
  after debootstrap, the start call is not intercepted, resulting in
  install failures.

  Since this is impossible to fix in the maverick installer post-
  release, I'll backport the fix for bug #602896 in a subsequent procps
  SRU; but investigation is needed here to find out why d-i isn't
  handling initctl correctly and make sure this is properly resolved for
  precise.

  15:03 < cjwatson> chroot-setup.sh is supposed to divert initctl too
  15:08 < cjwatson> slangasek: There is something odd there, indeed.  I don't quite see what; visually, the code seems right
  15:08 < slangasek> cjwatson: should I raise a bug on debian-installer?
  15:08 < cjwatson> slangasek: yes please
  15:09 < slangasek> ok
  15:09 < cjwatson> (probably belongs on either pkgsel or debian-installer-utils, but debian-installer is the place to start)

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: debian-installer (not installed)
  ProcVersionSignature: Ubuntu 3.2.0-2.6-generic 3.2.0-rc3
  Uname: Linux 3.2.0-2-generic x86_64
  ApportVersion: 1.90-0ubuntu1
  Architecture: amd64
  Date: Mon Dec  5 15:19:29 2011
  InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
  MachineType: LENOVO 3249CTO
  MemoryUsage:
   total       used       free     shared    buffers     cached
   Mem:       3908928    3711928     197000          0     101976    1062528
   -/+ buffers/cache:    2547424    1361504
   Swap:      6291452     257140    6034312
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.2.0-2-generic root=/dev/mapper/hostname-root ro pcie_aspm=force quiet splash vt.handoff=7
  SourcePackage: debian-installer
  UpgradeStatus: Upgraded to precise on 2011-11-08 (27 days ago)
  dmi.bios.date: 08/23/2010
  dmi.bios.vendor: LENOVO
  dmi.bios.version: 6QET52WW (1.22 )
  dmi.board.name: 3249CTO
  dmi.board.vendor: LENOVO
  dmi.board.version: Not Available
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Not Available
  dmi.modalias: dmi:bvnLENOVO:bvr6QET52WW(1.22):bd08/23/2010:svnLENOVO:pn3249CTO:pvrThinkPadX201:rvnLENOVO:rn3249CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
  dmi.product.name: 3249CTO
  dmi.product.version: ThinkPad X201
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer-utils/+bug/900526/+subscriptions




More information about the foundations-bugs mailing list