Ubuntu local loopback device missing [SOLVED]
Jens Dreger
jens.dreger at physik.fu-berlin.de
Fri Jun 22 16:03:45 CEST 2007
On Fri, Jun 22, 2007 at 02:48:20PM +0100, Henning Sprang wrote:
> Jens Dreger wrote:
> >We don't install Ubuntu with FAI anymore,
>
> No ubuntu at all, or just really not with FAI?
> If the latter, why not?
No Ubuntu at all. Had some weired problems with our servers (/etc/mtab
noch correctly written, boot problems...).
> >but when we did, I fixed this
> >using a hook for class UBUNTU (instsoft.UBUNTU):
> >
> ># fix for /var/{run,lock} not being there at initrd-time
> >if cut -f2 -d' ' /proc/mounts | grep -q ^$target/var$; then
> > [ "$verbose" ] && echo "DEBUG: creating /var/{run,lock} on /
> > (\$FAI${0##$FAI})"
> > _varmoved=$(mktemp -d $target/var.XXXXXX)
> > mount --move $target/var $_varmoved
> > mkdir -p $target/var/run $target/var/lock
> > mount --move $_varmoved $target/var
> > unset _varmoved
> >fi
>
> Hmm, looks more complex, but might be more appropriate to solve it
> already in the initrd. Still, as of yet I don't see why my simple
> solution is or should be wrong and it worked well. Are there any reasons
> to prefer one solution over the other?
'mount --move' works even if the fs is in use at that time for some
reason.
Jens.
--
Jens Dreger Freie Universitaet Berlin
dreger at physik.fu-berlin.de Fachbereich Physik - ZEDV
Tel: +49 30 83854774 Arnimallee 14
Fax: +49 30 83855902 14195 Berlin
More information about the linux-fai
mailing list