[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: initrd trouble with underlying /dev



It is a simple trick:

 mkdir /tmp/r
 mount --bind / /tmp/r
 cd /tmp/r/dev
 <populate with what is needed ... maybe just /dev/null>
 umount /tmp/r

The "mount --bind" remounts a directory so it appears twice, but
without any submounts in the target directory.  So it was exactly what
the doctor ordered.
--
Barak A. Pearlmutter <barak@cs.may.ie>
 Hamilton Institute, NUI Maynooth, Co. Kildare, Ireland
 http://www-bcl.cs.may.ie/~barak/



Reply to: