diff options
| author | Luigi Rizzo <luigi@FreeBSD.org> | 2002-03-15 08:00:37 +0000 |
|---|---|---|
| committer | Luigi Rizzo <luigi@FreeBSD.org> | 2002-03-15 08:00:37 +0000 |
| commit | 7071037db03ae4660ab024278e04b25ffd5ccda2 (patch) | |
| tree | 4bc92bcebb6eb5b5f8e34222ba6a4c52a6c4e120 /share/examples | |
| parent | 802b98f82fc4bc8dd1618b35edbc7464bf015092 (diff) | |
Notes
Diffstat (limited to 'share/examples')
| -rwxr-xr-x | share/examples/diskless/clone_root | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/examples/diskless/clone_root b/share/examples/diskless/clone_root index aa15a93e53ac..8733f10f6fc4 100755 --- a/share/examples/diskless/clone_root +++ b/share/examples/diskless/clone_root @@ -104,6 +104,10 @@ update_conf_and_pw() { (cd / ; tar clf - etc ) | (cd ${DEST}/conf/base && tar xvf - ) mkdir -p ${DEST}/conf/etc # used to mount things (cd /etc ; tar cvf - ${PWFILES} ) | (cd ${DEST}/etc ; tar xf - ) + (cd ${DEST}/conf/base ; find etc | cpio --create -H newc | \ + gzip > ${DEST}/conf/base/etc.cpio.gz ) + (cd ${DEST} ; find dev | cpio --create -H newc | \ + gzip > ${DEST}/conf/dev.cpio.gz } update() { |
