[oneiric] Cannot start services on target during autoinstall
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debian-installer (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: debian-installer
To automatically install identical workstations, we use preseeding in conjunction with a netboot. At the end of the installation, we need to configure some host-specific values on the machine. To do so, we use the following construct:
d-i preseed/
[...]
in-target /tmp/set_
"set_hostspecif
Within "set_hostspecif
/etc/init.
/etc/init.d/nis start
In Karmic, this fails. With some digging I found that the portmap start fails with some message about portmap being converted to an upstart service and ends with
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/ upstart: Connection refused
Hence, the NIS start fails as well (as portmap is not running) and ypcat does not work. I have already found some hints at problems with Upstart and chroot environments (which is what the installer uses), so I'm not sure whether this is a bug in Upstart or in the installer. In any case, I would expect this to work in Karmic as it has in Hardy.
For completeness: The workaround in this case is to call /sbin/portmap directly. However, I still think it should be easier to invoke services from the installer.