Bug 31200

Summary: Modification of rc.diskless1 needs change in examples/diskless/clone_root
Product: Base System Reporter: Jean-Francois Dockes <jean-francois.dockes>
Component: confAssignee: Brian Dean <bsd>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Jean-Francois Dockes 2001-10-10 16:50:01 UTC
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.

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...
How-To-Repeat: Create a root hierarchy with clone_root and try to boot a diskless workstation using it.
Comment 1 Johan Karlsson freebsd_committer freebsd_triage 2002-08-21 22:07:35 UTC
Responsible Changed
From-To: freebsd-bugs->bsd

Over to Brian who made the change to rc.diskless1
Comment 2 Jens Schweikhardt freebsd_committer freebsd_triage 2002-08-24 10:15:55 UTC
State Changed
From-To: open->closed

Originator reports that this was fixed by revision 1.2.2.2 of 
/usr/share/examples/diskless/clone_root and revision 1.5.2.7 of 
/etc/rc.diskless1. (added /conf/base/etc to be copied before 
/conf/default/etc). Thanks!