misc: support upstart within an initramfs

Bug #491463 reported by ceg
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
upstart
Triaged
Wishlist
Unassigned
initramfs-tools (Ubuntu)
Won't Fix
Wishlist
Unassigned
upstart (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: upstart

Many problems arise from the current initramfs scripts not being event driven or a flexible state machine.

Might it be reasonable to use upstart code and configs within the initramfs to get the rootfs up instead of reimplementing and maintaining initramfs scripts with this functionality?

ceg (ceg)
affects: upstart (Ubuntu) → initramfs-tools (Ubuntu)
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This is one possible future for initramfs-tools. yes

Colin Watson (cjwatson)
Changed in initramfs-tools (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
ceg (ceg) wrote :

First step to allow using upstart in initramfs would probably be an option to copy/run upstart into initramfs by adding an initramfs-hook script to the upstart package.

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/lucid/initramfs-tools/lucid/annotate/head%3A/docs/example_hook

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Bear in mind that Upstart would have to be the initramfs /init just as its the real system /sbin/init - it has to be PID 1

One of the main pre-requisites for this is state passing; so that the upstart in the initramfs would be able to re-exec itself once the root is mounted and then pass its state to the new instance

Changed in upstart (Ubuntu):
status: New → Invalid
Changed in upstart:
status: New → Triaged
importance: Undecided → Wishlist
summary: - upstart init within initramfs
+ misc: support upstart within an initramfs
Revision history for this message
ceg (ceg) wrote :

If we would have a defined state at the and of the initramfs boot, say "rootfs fully set up" implying all its dependencies would we still need state passing? Or could the main upstart take it from there.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 491463] Re: misc: support upstart within an initramfs

On Sun, 2010-04-25 at 08:21 +0000, ceg wrote:

> If we would have a defined state at the and of the initramfs boot, say
> "rootfs fully set up" implying all its dependencies would we still need
> state passing? Or could the main upstart take it from there.
>
I think we should do it properly and pass all state, there may be
services running from the initramfs that match services from the real
system - udev, plymouth, bootchart, etc. are all examples *today* where
we use a hack to pass the pid into Upstart

Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?

Revision history for this message
ceg (ceg) wrote :

Thanks for the insight!

Revision history for this message
Benjamin Drung (bdrung) wrote :

Several years have passed and upstart got replaced by systemd. So marking this bug as Won't Fix.

Changed in initramfs-tools (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.