Skip to content

July 19, 2010

Note on creating Ubuntu 10.04 (Lucid) LiveCD from scratch – missing initctl

by Joe Kuan

It’s about time for me to update the LiveCD product, AppQoS Live! (based on Ubuntu 8.04 Hardy) and move on to Lucid 10.04 as more newer hardware having trouble to work with.

I was following the LiveCDCustomizationFromScratch documentation to experiment Ubuntu 10.04 LiveCD. Then I hit a problem when I booted off from the created LiveCD. The boot screen just hangs. Switching to one virtual console, the last few messages on the screen are:

Begin: Running /scripts/init-bottom/ ... 
Done.
init: ureadahead-other main process terminated with status 4
init: ureadahead-other main process terminated with status 4


Other virtual consoles only have a blinking cursor on the top left corner. I have double checked with the documentation that I have followed every step correctly. Googled and read through a lot of Ubuntu forums and still don’t have much progress. I added a few echo statements in init and init-bottom/plymouth scripts in chroot/usr/share/initramfs-tools (rebuilt with ‘update-initramfs -u’) to trace where it was hanging. As far as initramfs concern, the whole init script did run to the end without any problem. However when I pressed CTRL-ALT-DEL to reboot, I noticed several error messages – /sbin/initctl not found. So this is indicating something wrong when the main init process started.

Then I decided to add the following steps during the LiveCD creation, even though the documentation at the time I was reading stated that it is Karmic 9.10 issue.

dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl

After including the steps, the new image is booted fine. In fact, only the dpkg-divert is required for building the LiveCD. The current LiveCDCustomizationFromScratch has been updated to clear the confusion.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments

%d bloggers like this: