FreeBSD Bugzilla – Attachment 13549 Details for
Bug 25730
[PATCH] mount_mfs is being phased out -> new diskless boot procedure
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.31 KB, created by
krepel
on 2001-03-12 11:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
krepel
Created:
2001-03-12 11:10:01 UTC
Size:
1.31 KB
patch
obsolete
>--- rc.diskless2 Wed Mar 7 18:03:04 2001 >+++ /usr/src/etc/rc.diskless2 Sun Oct 8 19:18:24 2000 >@@ -38,29 +38,28 @@ > . /etc/rc.conf > fi > >-# If the diskless station work without swap use malloc instead of swap >-# >-case ${swap_enable} in >-[Yy][Ee][Ss]) >- mdconfig -a -t swap -s ${varsize:=65536} -u 11 >- ;; >-*) >- mdconfig -a -t malloc -s ${varsize:=65536} -u 11 >- ;; >-esac >- >-disklabel -r -w md11 auto >-newfs /dev/md11c >-mount /dev/md11c /mnt >- >-# cp the pre-build /var dir and make available as /var >+mount_mfs -s ${varsize:=65536} -T qp120at dummy /var >+var_dirs="run dev db msgs tmp spool spool/mqueue spool/lpd spool/output \ >+ spool/output/lpd" >+for i in ${var_dirs} >+do >+ mkdir /var/${i} >+done >+chmod 755 /var/run >+chmod 755 /var/db >+chmod 755 /var/spool >+chmod 1777 /var/tmp >+chown -R root.daemon /var/spool/output >+chgrp daemon /var/spool/lpd > # > # XXX make sure to create one dir for each printer as requested by lpd > # >-cp -Rp /var/* /mnt >-umount /dev/md11c >-mount /dev/md11c /var > > if [ ! -h /tmp -a ! -h /var/tmp ]; then > mount_null /var/tmp /tmp > fi >+ >+# extract a list of device entries, then copy them to a writable partition >+(cd /; find -x dev | cpio -o -H newc) > /tmp/dev.tmp >+mount_mfs -s 4096 -i 512 -T qp120at dummy /dev >+(cd /; cpio -i -H newc -d < /tmp/dev.tmp)
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 25730
:
13548
| 13549 |
13550
|
13551
|
13552