[Bug 1064074] Re: mountall blocks boot
Steve Langasek
steve.langasek at canonical.com
Thu Oct 18 13:41:59 UTC 2012
On Thu, Oct 18, 2012 at 12:56:15PM -0000, Matteo Croce wrote:
> I have no /var/log/upstart/mountall.log
Ok. This is because of the 'console output' line. If you comment this line
out, do you get this log file on reboot?
> script
> . /etc/default/rcS
> [ -f /forcefsck ] && force_fsck="--force-fsck"
> [ "$FSCKFIX" = "yes" ] && fsck_fix="--fsck-fix"
>
> # set $LANG so that messages appearing in plymouth are translated
> if [ -r /etc/default/locale ]; then
> . /etc/default/locale
> export LANG LANGUAGE LC_MESSAGES LC_ALL
> fi
>
> mkdir /dev/shm /dev/pts
> ln -s /proc/self/fd /dev/
The above two lines are not part of the standard mountall job. Why are they
here?
> exec mountall --daemon $force_fsck $fsck_fix
Ok, so currently this line doesn't show either --verbose or the redirection,
so it's not surprising that no log is created in /run on boot. Did you try
the line I had suggested?:
exec mountall --daemon $force_fsck $fsck_fix --verbose >
/run/mountall.log 2>&1
In asking for a copy of this job file, I was hoping to confirm that this
change was made correctly.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mountall in Ubuntu.
https://bugs.launchpad.net/bugs/1064074
Title:
mountall blocks boot
Status in “mountall” package in Ubuntu:
Incomplete
Bug description:
after upgrading to Quantal the system no longer boots.
I've debugged the issue by booting with init=/bin/bash and it seems that mountall fails to spawn a few processes because PATH is wrong.
Here is the strace output:
[pid 3302] execve("swapon", ["swapon", "/dev/sda2"], [/* 9 vars */]) = -1 ENOENT (No such file or directory)
[pid 3302] execve("/bin/swapon", ["swapon", "/dev/sda2"], [/* 9 vars */]) = -1 ENOENT (No such file or directory)
[pid 3302] execve("/usr/bin/swapon", ["swapon", "/dev/sda2"], [/* 9 vars */]) = -1 ENOENT (No such file or directory)
[pid 3302] write(2, "mountall: swapon /dev/sda2 [3302"..., 61mountall: swapon /dev/sda2 [3302]: No such file or directory
) = 61
[pid 3302] write(15, "!", 1) = 1
[pid 3277] <... read resumed> "!", 1) = 1
[pid 3277] close(14) = 0
[pid 3302] exit_group(0) = ?
here mountall fails to spawn swapon, but the same happens to fsck.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/1064074/+subscriptions
More information about the foundations-bugs
mailing list