Filewatcher File Search File Search
Catalog
Content Search
» » » » » » » restorecd-5.0-20090430.tar.gz » Content »
pkg://restorecd-5.0-20090430.tar.gz:138658/restorecd-5.0/  info  downloads

README

See "NetBSD/cobalt Restore CD HOWTO" page for updated info:
http://www.netbsd.org/ports/cobalt/restorecd-howto.html

---
Typical 'restorecd' script invocation:

0. fetch and extract newer restorecd-*.tar.gz

% ftp [URL to path]/restorecd-current-[date].tar.gz
    (or from appropriate server)
% tar zxf restorecd-[date].tar.gz
% cd restorecd-current

  Then just type "make", or try the following procedure:

1. fetch NetBSD binaries and sources (for i386 and cobalt) into download dir
   (use appropriate mirrors; see http://www.NetBSD.org/mirrors/)

 Check daily snapshot status:
  http://releng.NetBSD.org/cgi-bin/builds.cgi
 and specify appropriate date directory.

with rsync:
% mkdir -p download
% rsync -va --files-from=restorecd-fetch.lst \
    rsync://rsync.NetBSD.org/NetBSD-daily/netbsd-5/[snapshot-date] download

with wget:
% mkdir -p download
% wget --base=ftp://ftp.NetBSD.org/pub/NetBSD-daily/netbsd-5/[snapshot-date]/ \
  --no-host-directories --cut-dirs=4 --timestamping --force-directories \
  --directory-prefix=download --input-file=restorecd-fetch.lst)

  (NOTE adjuct --cut-dirs=N by which directory you'll get files)

2. extract NetBSD sources

% tar -zxf download/source/sets/gnusrc.tgz
% tar -zxf download/source/sets/sharesrc.tgz
% tar -zxf download/source/sets/src.tgz
% tar -zxf download/source/sets/syssrc.tgz

2a. rebuild paneld(8)

2a-(1) prepare build environment to make cobalt binaries

% (cd usr/src; \
   sh build.sh -m cobalt -u -U -T tooldir.cobalt -D destdir.cobalt \
   -V OBJMACHINE=1 tools)

   NOTE1: check your TOOLDIR in the build log here.
   NOTE2: make sure /etc/mk.conf not to override $TOOLDIR

% (cd usr/src; \
   tooldir.cobalt/bin/nbmake-cobalt do-distrib-dirs)
% (cd usr/src/destdir.cobalt; \
    tar -zxpf ../../../download/cobalt/binary/sets/base.tgz)
% (cd usr/src/destdir.cobalt; \
    tar -zxpf ../../../download/cobalt/binary/sets/comp.tgz)

2a-(2) build paneld(8) binaries

% tar zxf patch/paneld.tar.gz
% patch -d paneltools -p0 < download/paneld_banner_refresh.diff
% patch -p0 < patch/paneld-20081030.diff

% (cd paneltools/paneld && \
   ../../usr/src/tooldir.cobalt/bin/nbmake-cobalt OBJMACHINE=1 obj && \
   ../../usr/src/tooldir.cobalt/bin/nbmake-cobalt dependall)
% usr/src/tooldir.cobalt/bin/mipsel--netbsd-install -c -r -m 555 \
   paneltools/paneld/obj.cobalt/paneld data/cobalt/install/files/usr/sbin
% usr/src/tooldir.cobalt/bin/mipsel--netbsd-install -c -r -m 555 \
   paneltools/paneld/obj.cobalt/paneld data/cobalt/usr/sbin
% usr/src/tooldir.cobalt/bin/mipsel--netbsd-install -c -r -m 444 \
   paneltools/paneld/paneld.conf.5 \
   data/cobalt/install/files/usr/share/man/man5
% usr/src/tooldir.cobalt/bin/mipsel--netbsd-install -c -r -m 444 \
   paneltools/paneld/obj.cobalt/paneld.conf.cat5 \
   data/cobalt/install/files/usr/share/man/cat5/paneld.conf.0
% usr/src/tooldir.cobalt/bin/mipsel--netbsd-install -c -r -m 444 \
   paneltools/paneld/paneld.8 \
   data/cobalt/install/files/usr/share/man/man8
% usr/src/tooldir.cobalt/bin/mipsel--netbsd-install -c -r -m 444 \
   paneltools/paneld/obj.cobalt/paneld.cat8 \
   data/cobalt/install/files/usr/share/man/cat8/paneld.0

3. execute restorecd script

% sh restorecd server=`pwd`/download \
               client=`pwd`/download \
               source=`pwd`/usr/src  \
               makefs=`pwd`/usr/src/tooldir.cobalt/bin/nbmakefs -v

   NOTE1: use absolute paths to extracted restorecd dir (otherwise it fails)
   NOTE2: use your TOOLDIR path for makefs= arg
          if it isn't .../usr/src/tooldir.cobalt
          (if your host is running NetBSD, you can use /usr/sbin/makefs)

  Now you have an iso image in cd.tmp dir
Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017 FileWatcher.com