In 14.10 amd64, mountall keeps running, causing init to keep
/var/log/upstart/mountall.log open for writing, which prevents root from
being remounted read-only.

These things are easy to examine by adding a /bin/sh line to /etc/init.d/reboot 
in do_stop() before "reboot -d -f -i". Then when you reboot you can switch to 
virtual console 1 and use lsof and other commands to explore what is going on. 
For example this is the line in lsof output showing the problem:
init         1 root    8w      REG                8,5      613 1062101 
/var/log/upstart/mountall.log

I added a 
/usr/bin/killall mountall 
line to /etc/init.d/umountroot before root is supposed to be remounted 
read-only. That seems to fix the problem. You need the full path because 
/usr/bin isn't in PATH, and don't use -9.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1261730

Title:
  /dev/sda1 must be recovered on every boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1261730/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to