incorrectly starts some jobs

Bug #505530 reported by Anand Kumria
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mountall (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: mountall

I'm still experiencing #474907 but in the meantime I notice that both network-manager and avahi-daemon are starting and crashing.

This is because they both rely upon libraries in /usr/lib -- which has not been mounted (and thus I'm thrown into the mountall-shell).

/etc/init/network-manager.conf has a depends on 'local-filesystems'

and

/etc/init/avahi-daemon.conf has a depends on 'filesystem'

But both are started.

Attached are some images

Related branches

Revision history for this message
Anand Kumria (wildfire) wrote :
Revision history for this message
Anand Kumria (wildfire) wrote :

network-manager has libraries that are not in /lib

Revision history for this message
Anand Kumria (wildfire) wrote :

avahi-daemon has libraries not /lib

Revision history for this message
Johan Kiviniemi (ion) wrote :

Please attach your /etc/fstab.

Revision history for this message
Anand Kumria (wildfire) wrote :

Attached. Not sure how relevant it will be though.

Revision history for this message
Johan Kiviniemi (ion) wrote :

It was very relevant. It showed /usr/lib was a bind mount. I’ll take a look at how mountall handles them.

Revision history for this message
Johan Kiviniemi (ion) wrote :

Please change
    exec mountall --daemon $force_fsck $fsck_fix
to
    exec mountall --daemon $force_fsck $fsck_fix --debug >/dev/mountall.log 2>&1
in /etc/init/mountall.conf, boot the system and attach /dev/mountall.log to this bug report.

Revision history for this message
Anand Kumria (wildfire) wrote :

Please find it attached.

It does seem odd that it is deciding to skip mounting /usr/lib and /usr/share (both bind mounts).

Please let me know if there is any other debugging I can do.

Revision history for this message
Johan Kiviniemi (ion) wrote :

Please try the version of mountall in the branch linked to this report. It should fix the bug.

Revision history for this message
Anand Kumria (wildfire) wrote :

Hi Johan,

What is the best way to try that branch? apt-get source mountall and then apply your branch's diff? Or is a binary built from your branch I should download?

Thanks,
Anand

Revision history for this message
Johan Kiviniemi (ion) wrote :

mkdir /tmp/mountall
cd /tmp/mountall
bzr get lp:~ion/ubuntu/lucid/mountall/lucid mountall
cd mountall
sudo apt-get build-dep mountall
debuild -b -us -uc
sudo dpkg --unpack ../*.deb
sudo apt-get -f install

Revision history for this message
Anand Kumria (wildfire) wrote :

Done.

It seems to work.

I no longer get dropped to a mountall-shell but alas something else is now preventing startup from proceeding

I had to boot the system with init=/bin/bash and then execute 'exec /sbin/init -v --debug' to get this logfile (and also cause the mountall.conf upstart job to run 'start tty2' in its' post-script script).

Please find the log file attached.

Thanks,
Anand

Revision history for this message
Johan Kiviniemi (ion) wrote :

It seems the new problem is not in mountall. I might have missed something when reading the log, but it seems mountall is able to successfully mount everything, emit the relevant events and exit.

sulogin.conf in http://upstart.ubuntu.com/wiki/OMGBroken is a good way to get a shell for debugging a system that doesn’t boot properly, btw.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mountall - 2.4

---------------
mountall (2.4) lucid; urgency=low

  * conf/mountall-net.conf: only send SIGUSR1 to the main process, not to
    any pre-start or post-stop script we might have; killing the post-stop
    script with -USR1, though an unlikely race to hit, is definitely wrong.
    LP: #506902.

  [ Johan Kiviniemi ]
  * src/mountall.c: The mount table needs to exist for parse_filesystems
    - parse_filesystems() could call mount_proc(), which would call
      find_mount() and segfault. LP: #503212.
  * src/mountall.c: Handle TAG_UNKNOWN. LP: #505748.
  * src/mountall.c: Ensure boredom_timer is set to NULL when freeing
  * src/mountall.c: Default to no action for boredom query if prompt fails.
    LP: #505530.
 -- Steve Langasek <email address hidden> Thu, 14 Jan 2010 05:30:13 -0800

Changed in mountall (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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