FreeBSD Bugzilla – Attachment 17223 Details for
Bug 31327
Fixes and improvements for rc.diskless* scripts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.16 KB, created by
Anton Voronin
on 2001-10-17 11:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Anton Voronin
Created:
2001-10-17 11:20:00 UTC
Size:
1.16 KB
patch
obsolete
>--- rc.diskless1.ORIG Wed Oct 17 15:37:18 2001 >+++ rc.diskless1 Wed Oct 17 16:02:42 2001 >@@ -93,13 +93,43 @@ > done > echo "Interface ${bootp_ifc} IP-Address ${bootp_ipa} Broadcast ${bootp_ipbca}" > >+# If there is a global system configuration file, suck it in. >+# >+if [ -r /etc/defaults/rc.conf ]; then >+ . /etc/defaults/rc.conf >+ source_rc_confs >+elif [ -r /etc/rc.conf ]; then >+ . /etc/rc.conf >+fi > >-# Create an MFS /tmp to temporarily hold files from /etc until we >-# can bootstrap /etc as an MFS. >+# Sync password files with server (step 1) >+# Warning: variable sync_diskless_pw must be set via server's rc.conf. >+# >+case ${diskless_sync_pw} in >+[Yy][Ee][Ss]) >+ mount_md 4096 /var 0 >+ chkerr $? "MFS mount on temporary /var" > >+ for pwfile in passwd master.passwd pwd.db spwd.db ; do >+ /bin/cp -p /etc/$pwfile /var >+ done >+ ;; >+esac >+ >+# Create own /etc >+# > mount_md 4096 /etc 0 > chkerr $? "MFS mount on /etc" > /bin/chmod 755 /etc >+ >+# Sync password files with server (step 2). >+# >+case ${diskless_sync_pw} in >+[Yy][Ee][Ss]) >+ /bin/cp -p /var/* /etc >+ /sbin/umount /var >+ ;; >+esac > > /bin/cp -Rp /conf/default/etc/* /etc > chkerr $? "cp /conf/default/etc to /etc MFS"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31327
:
17222
| 17223