Date: Wed, 10 Oct 2001 08:49:25 -0700 (PDT) From: Jean-Francois Dockes <jean-francois.dockes@wanadoo.fr> To: freebsd-gnats-submit@FreeBSD.org Subject: conf/31200: Modification of rc.diskless1 needs change in examples/diskless/clone_root Message-ID: <200110101549.f9AFnPn94413@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 31200 >Category: conf >Synopsis: Modification of rc.diskless1 needs change in examples/diskless/clone_root >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 10 08:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Jean-Francois Dockes >Release: 4.4-STABLE >Organization: >Environment: FreeBSD hautmedoc 4.4-STABLE FreeBSD 4.4-STABLE #2: Mon Oct 8 18:44:52 CEST 2001 dockes@hautmedoc:/usr/src/sys/compile/HAUTMEDOC i386 >Description: Revision 1.10 of rc.diskless1 introduced a change where the script now expects a fully populated /conf/default/etc (instead of only override files). /usr/share/examples/diskless/clone_root was not updated to reflect this change, so that the final /etc after startup is missing most files. >How-To-Repeat: Create a root hierarchy with clone_root and try to boot a diskless workstation using it. >Fix: When cloning the root, clone_root should copy the server's /etc directory before copying files from /conf/default/etc. The end result will be the same as what existed before the change in rc.diskless1. The patch follows. tabs are mangled, but I guess that the four added lines are easy enough to copy by hand... *** clone_root.orig Wed Oct 10 16:52:15 2001 --- clone_root Wed Oct 10 17:03:58 2001 *************** *** 99,104 **** --- 99,108 ---- update_conf_and_pw() { echo "+++ Copying files in /conf and password files" (cd ${DEST} ; rm -rf conf ) + # rc.diskless1 expects a fully populated etc in conf/default/etc + mkdir -p ${DEST}/conf/default/etc || exit 1 + (cd /etc ; tar clf - .) | (cd ${DEST}/conf/default/etc ; tar xf -) + # Add diskless-specific files from /conf on the server (cd / ; tar clf - conf ) | (cd ${DEST}; tar xvf - ) mkdir -p ${DEST}/conf/etc # used to mount things (cd /etc ; tar cvf - ${PWFILES} ) | (cd ${DEST}/etc ; tar xf - ) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110101549.f9AFnPn94413>