On Mon, Jan 12, 2009 at 6:03 PM, James Harper <james.har...@bendigoit.com.au> wrote: >> Stefan Sorin Nicolin wrote: >> > Hi, >> > >> > I have yet another exclusive configuration need. I'd like to back up > a >> > file _without_ it's contents. I noticed that under Gentoo Linux > /dev/ >> > tty12 takes a lot of useless space. The terminal output is stored >> > there - somethig that I can very well live without in case I have to >> > restore a system from backup. >> > The only way I can imagine it right now is to exclude the file >> > completely and create a dedicated restore jobdef where /dev/tty12 is >> > created per runscript directive. This doesen't feel right though. >> > Any ideas? >> > >> > Thanks much. >> > >> > Stefan Sorin Nicolin >> > http://nicolinux.org >> > >> As /dev is populate by udev I always exclude it completely . >> > > Have you tested a restore? If you are restoring to 'baremetal', then you > might actually need something in /dev before udev starts, which is a bit > tricky as it's 'under' udev... > This should be enough:
[ ! -c /dev/null ] && rm /dev/null [ ! -c /dev/null ] && mknod /dev/null c 1 3 #These are for builds that require a random number generator [ ! -c /dev/random ] && mknod /dev/random c 1 8 [ ! -c /dev/urandom ] && mknod /dev/urandom c 1 9 #This is for initially populating the /dev folder. Without this populated I could not boot the installed system. [ ! -e /dev/console ] && mknod /dev/console c 5 1 [ ! -e /dev/tty ] && mknod /dev/tty c 5 0 [ ! -e /dev/tty0 ] && mknod /dev/tty0 c 4 0 [ ! -e /dev/tty1 ] && mknod /dev/tty1 c 4 1 [ ! -e /dev/tty2 ] && mknod /dev/tty2 c 4 2 [ ! -e /dev/tty3 ] && mknod /dev/tty3 c 4 3 [ ! -e /dev/tty4 ] && mknod /dev/tty4 c 4 4 [ ! -e /dev/tty5 ] && mknod /dev/tty5 c 4 5 [ ! -e /dev/tty6 ] && mknod /dev/tty6 c 4 6 [ ! -e /dev/tty7 ] && mknod /dev/tty7 c 4 7 [ ! -e /dev/tty8 ] && mknod /dev/tty8 c 4 8 [ ! -e /dev/tty9 ] && mknod /dev/tty9 c 4 9 [ ! -e /dev/tty10 ] && mknod /dev/tty10 c 4 10 [ ! -e /dev/tty11 ] && mknod /dev/tty11 c 4 11 [ ! -e /dev/tty12 ] && mknod /dev/tty12 c 4 12 BTW, this is what I use to generate gentoo systems from stage3 builds using metro. http://wiki.github.com/funtoo/metro or my fork of metro: http://wiki.github.com/drescherjm/metro John ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users