Re: apparent failure to mount /root during boot of netboot image
-----BEGIN PGP SIGNED MESSAGE-----
On Fri, Nov 21, 2008 at 02:36:58PM +0100, Andrew Baumann wrote:
> Hi Tomas,
> On Friday 21 November 2008 12.54:53 email@example.com wrote:
> > On Fri, Nov 21, 2008 at 11:46:33AM +0100, Andrew Baumann wrote:
> > > Hi folks,
> > >
> > > I'm trying to build a netboot debian-live image for amd64 systems with a
> > > serial console [...]
> > Hmm Strange. From the error messages down there (e.g. this):
> > > ... cp: cannot create '/root/etc/live.conf': Path does not exist
> I tried this, thanks for the hint. /root exists at the beginning, but is
> completely empty.
This is expected. It is created as a mount point for the later-to-be
root file system.
> It seems that later parts of the script assume
> subdirectories of /root (such as /root/etc) exist. I tried creating /root/etc
> and continuing, and things seem to work better (see below), but commands that
> depend upon locations such as /root/usr fail.
> What is responsible for setting up the directory tree in /root?
The directories are not "made", they just "appear" there by mounting a
file system. Seems this part fails. This happens in mountroot. Try
breaking at "bottom" (that's just after mountroot) and have a look what
is mounted. Your rootfs should be mounted at root. It seems it isn't,
for whatever reason. You might try to mount manually and see whether it
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-----END PGP SIGNATURE-----