Ticket #301 (closed enhancement: fixed)

Opened 12 years ago

Last modified 12 years ago

Create policy-rc.d in installer when run from d-i

Reported by: broder Owned by:
Priority: low Milestone: Fall 2009 Release
Component: installer Keywords:
Cc: Fixed in version:
Upstream bug:

Description

Since the debian-installer doesn't still have a /usr/sbin/policy-rc.d when it's running install-debathena.sh, we should create one so that we don't try to startup daemons and such in the debian-installer environment.

Change History

comment:1 Changed 12 years ago by geofft

  • Status changed from new to closed
  • Resolution set to fixed

Presumably fixed in r23944, by using what d-i does anyway to create a policy-rc.d and other useful things. If you're curious, chroot-setup.sh is in the debian-installer-utils source package.

comment:2 Changed 12 years ago by geofft

  • Status changed from closed to reopened
  • Resolution fixed deleted

Whoops. It looks like we package /usr/sbin/policy-rc.d in debathena-reactivate, and d-i's chroot setup scripts assume that they can safely create and remove that file, so this broke cluster installs. Reverted in r23948.

I'm pretty sure d-i is in the right here, not us, because what this implies is that our policy-rc.d is used for most of the Debathena install, starting from when debathena-reactivate gets unpacked. Two good options occur to me:

  1. make our policy-rc.d useful within /target in d-i
  2. don't package a policy-rc.d in /usr/sbin at all, but copy it from somewhere else on the filesystem via a very very early initscript

It's also worth mentioning that chroot_setup does something vaguely resembling diverting start-stop-daemon, which we might also want to do.

comment:3 Changed 12 years ago by broder

I took another crack at this in r23956 using Debathena's Amazing, Patent-Pending Diversions.

It is completely and thoroughly untested at the moment, and I'm not going to deploy the change until it gets tested (which I conveniently can't do from not-MITnet). See also Jon's request for installer freezes over the weekend.

comment:4 Changed 12 years ago by broder

  • Status changed from reopened to closed
  • Resolution set to fixed

I deployed this change and tested it on opus, where it seemed to work.

Note: See TracTickets for help on using tickets.