Date: Tue, 4 Jan 2000 14:59:56 +1100 From: Peter Jeremy <jeremyp@gsmx07.alcatel.com.au> To: freefall-gnats@gsmx07.alcatel.com.au Subject: misc/15874: PicoBSD can only update files from within /etc Message-ID: <00Jan4.145957est.40322@border.alcanet.com.au>
next in thread | raw e-mail | index | archive | help
>Number: 15874 >Category: misc >Synopsis: PicoBSD can only update files from within /etc >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: Mon Jan 3 20:10:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Peter Jeremy >Release: FreeBSD 4.0-CURRENT i386 >Organization: >Environment: Found in -stable, but -current should exhibit the same behaviour. >Description: During PicoBSD boot, files in the /etc directory (and sub- directories) of the boot floppy are copied into the MFS. In order to allow port and user configuration files (specifically ssh configuration files and keys for my purposes), it would be useful to also copy files from /root and /usr as well. Also, the size of the startup script (mfs.rc) should not be an issue if it is deleted before the replacement is copied over it (although I haven't confirmed this). >How-To-Repeat: Add files other than in /etc on the floppy disk - they are not copied. >Fix: The following is the change I made to my customised /usr/src/release/picobsd/net/floppy.tree/etc/mfs.rc diff -ur net/floppy.tree/etc/mfs.rc custom/floppy.tree/etc/mfs.rc --- net/floppy.tree/etc/mfs.rc Mon Aug 30 01:53:11 1999 +++ custom/floppy.tree/etc/mfs.rc Thu Sep 16 16:14:51 1999 @@ -23,8 +23,10 @@ echo "" echo "Reading /etc from startup floppy..." mount -o rdonly /dev/fd0a /start_floppy -cd /start_floppy/etc -cp -Rp . /etc/ +rm /etc/rc +for i in etc root usr ; do + cd /start_floppy/$i 2>/dev/null && cp -Rp . /$i/ +done cd /etc pwd_mkdb -p ./master.passwd umount /start_floppy >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?00Jan4.145957est.40322>