From: maurice <mhilarius@gmail.com>
To: Michal Soltys <soltys@ziu.info>
Cc: maurice <mhilarius@gmail.com>, linux-raid@vger.kernel.org
Subject: Re: Odd booting problem
Date: Wed, 12 Oct 2011 14:55:10 -0600 [thread overview]
Message-ID: <4E95FEAE.1090809@gmail.com> (raw)
In-Reply-To: <4E933557.1040909@ziu.info>
Problem Solved!
Thanks VERY much to Michal Soltys who offered me lots of useful suggestions.
Also thanks to Jim Schatzman who chipped in with some good ideas as well.
In the end, while I tried those suggestions, it did not solve the problem.
I did a lot of reading and some experiments and here is what turned out
to be the problem:
Dracut does the following:
+ [ -d /sysroot/proc ]
+ . /mount/99mount-root.sh
...
+ [ -n block:/dev/md1 -a -z ]
+ mount -t auto -o ro /dev/md1 /sysroot
+ ROOTFS_MOUNTED=yes
So far so good.
BUT: as I found, and for unclear reasons, there was no 'proc' on the
file system present
on /dev/md1 (which was intended as our new /).
So dracut gets into a loop despite of ROOTFS_MOUNTED being already set:
+ [ -d /sysroot/proc ]
+ . /mount/99mount-root.sh
...
+ [ -n block:/dev/md1 -a -z ]
+ mount -t auto -o ro /dev/md1 /sysroot
mount: /dev/md1 already mounted or /sysroot busy
mount: according to mtab, /dev/md1 is already mounted on /sysroot
That is absolutely true but not particularly illuminating.
Eventually this ends, quite late,
+ i=21
+ [ 21 -gt 20 ]
+ flock -s 9
+ emergency_shell Can't mount root filesystem
which is not particularly informative.
Bailing out quite a bit earlier, before everything scrolled off of the
screen with something
like:
"Cannot find /proc on a canditate for a root filesystem; that cannot be
right."
would be quite a bit more helpful.
Alternatively if ROOTFS_MOUNTED is "yes" and that filesystem looks
like a reasonable candidate for /
(say 'etc/issue' and 'sbin' present)
Then why not offer to run 'mkdir -p /sysroot/{dev,proc,sys}'?
Do this after making sysroot writeable and then continue?
That is possibly going too far but a notification with some useful
information
pointing to an error would be much better than "Can't mount".
--
Cheers,
Maurice Hilarius
eMail: /mhilarius@gmail.com/
next prev parent reply other threads:[~2011-10-12 20:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-07 23:33 Odd booting problem maurice
2011-10-10 16:02 ` maurice
2011-10-10 17:19 ` Jim Schatzman
2011-10-11 2:12 ` maurice
2011-10-10 18:11 ` Michal Soltys
2011-10-12 20:55 ` maurice [this message]
2011-10-12 22:41 ` Michal Soltys
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E95FEAE.1090809@gmail.com \
--to=mhilarius@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=soltys@ziu.info \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).