DELTA 275030 2301 34 SVNhc y >=_*>xSRCS= init.c getmntopts.c# Needed for getmntopts.c MOUNT= ${.CURDIR}/../../sbin/mount CFLAGS+=-I${MOUNT} .PATH: ${MOUNT}ENDREP DELTA 288446 0 388 SVN-$4"!8`IF!A O_,o 0=0 )H1<EtYlaARP5( SZfx^X[o6~ũ&:NbC>Mq]!e HyK!)Yi.Dw.Tk1Ӫ3mފ4n ^(u )xhBh:nfP!I)d/ࠍ4(8"%OxWo#q_A?<;0hdJR4-CQpd I9ڇѥxoWC 4'g&mxSb Fp͝ 2hqˤYpabԲryQe.S Ffz~oh,%)gZ yȫJb㈠?\M>>{j&cbO`ؼ2w%gbڳ<0T"q+Ƭqfq`{{ujbƚOjY"16$wtN֚ei톩KPiؔ\LXG-Zo7Vcۦm+ ):@Y[XSQ lJM@?Q!vKhO(΂w-"-Ë^le*~m?=4j⩝ZT%j"y5 {u>I{ To!n䝙Qx*m!<+ ]UO4lN 9 iJaq?A}3Nmxʫ}{A1, iݚHmeT6m˜\ۨnīilbrW1c7cP(h"fM2]ˑDXUqWEA^VmNJ]̉1Q222\l 1UZOfCi5ߤ=Q)R1f +4lw3naP.)Y`|P2c6mf2+5e12VbqfDiH$vS۵.yl㍞Aj, hp8BHV6E2c @:q{F.(TMϤ?xSTh6_\N2h~ko՜UMנk{S\)^ \p;hje_P,21|.C}@*Ec5M/ OQo]\b3oo F2QY[Ku6ҷcʬu_;+pjj;{-2Q``k,߶满xdmաUvݍr~*8}R?A }ENDREP DELTA 232977 703 49 SVNtb`` "/var/log/init.log" #define _PATH_SLOGGER "/sbin/session_logger" #define _PATH_RUNCOM "/etc/rc" #define _PATH_RUNDOWN "/etc/rc.shutdown" #define _PATH_REROOT "/dev/reroot" #define _PATH_REROOT_INIT _PATH_REROOT "/init" ENDREP DELTA 213697 0 56 SVNO!@ ;$_ >m$)&>May 22, 2015rIt Fl r The system kills all processes, unmounts all filesystems, mounts the new root filesystem, and begins the usual startup sequence. After changing vfs.root.mountfrom with .Xr kenv 8 , .Nm Fl r can be used to change the root filesystem while preserving kernel stateEXAMPLES Replace current root filesystem with UFS mounted from .Pa /dev/ada0s1a : .Bd -literal -offset indent kenv vfs.root.mountfrom=ufs:/dev/ada0s1a reboot -r .EdENDREP DELTA 228408 0 1365 SVNv'l&n)nW_QaOP\jrr': howto |= RB_REROOT(howto & RB_REROOT) != 0 && howto != RB_REROOT) errx(1, "-r cannot be used with -d, -n, or -pif (howto & RB_REROOT) { openlog("reroot", 0, LOG_AUTH | LOG_CONS); syslog(LOG_CRIT, "reroo * Only init(8) can perform rerooting. */ if (howto & RB_REROOT) { if (kill(1, SIGEMT) == -1) err(1, "SIGEMT init"); return (0); }ENDREP id: aj-1558.1s-1559.r290548/3405 type: file pred: aj-1558.1s-1559.r275030/35894 count: 39 text: 290548 0 145 355 49226f93453f97c248ec7effec6f517b da152d898a7930d58f25667c37ce2f33833442e3 290547-68ib/_4 props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/sbin/init/Makefile copyroot: 1559 /head/sbin/init/Makefile id: aq-1558.1v-1559.r290548/3734 type: file pred: aq-1558.1v-1559.r288446/1128 count: 84 text: 290548 173 1973 44818 b665f26afc68f822a6fbe305acaf5549 26957735e1ed4fa200f77364dc1687ba83a79805 290547-68ib/_5 props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/sbin/init/init.c copyroot: 1559 /head/sbin/init/init.c id: as-1558.1w-1559.r290548/4063 type: file pred: as-1558.1w-1559.r232977/5977 count: 5 text: 290548 2172 246 2036 cd4fb9ca6ae8f65f258d962a803b8f78 e22f8d3605013a103a7fd1f7bbb675ef3168e9cc 290547-68ib/_6 props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/sbin/init/pathnames.h copyroot: 1559 /head/sbin/init/pathnames.h PLAIN K 8 Makefile V 33 file aj-1558.1s-1559.r290548/3405 K 15 Makefile.depend V 32 file 1f6-284345.0.r284481/131719 K 5 NOTES V 32 file am-1558.1t-1559.r1559/26744 K 6 init.8 V 31 file ao-1558.1u-1559.r285847/79 K 6 init.c V 33 file aq-1558.1v-1559.r290548/3734 K 11 pathnames.h V 33 file as-1558.1w-1559.r290548/4063 END ENDREP id: p-1559.0.r290548/4730 type: dir pred: p-1559.0.r288446/1785 count: 158 text: 290548 4400 317 0 6d08b541a0574e4a8b2f5d3c737be5b6 cpath: /head/sbin/init copyroot: 0 / id: ha-1558.4j-1559.r290548/4900 type: file pred: ha-1558.4j-1559.r213697/83 count: 27 text: 290548 2445 493 4485 578c3707f88c7261e6133ab7bbd56f3f 05928d6cc5173704aea9d5f0a82b34c0264dba1c 290547-68ib/_8 props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/sbin/reboot/reboot.8 copyroot: 1559 /head/sbin/reboot/reboot.8 id: hc-1558.4k-1559.r290548/5234 type: file pred: hc-1558.4k-1559.r228408/1395 count: 33 text: 290548 2963 415 6558 67c92d697fe52fd483087ffe7302cc4b fc58f7a77b7ec0eb35b1c86c73ca2d3b25aee194 290547-68ib/_9 props: 2 314168 38 0 b6b34f029ed66be42751a530d6e4b830 cpath: /head/sbin/reboot/reboot.c copyroot: 1559 /head/sbin/reboot/reboot.c PLAIN K 8 Makefile V 30 file gx-1558.4d-1559.r202195/0 K 15 Makefile.depend V 32 file 1ip-284345.0.r284345/865741 K 11 boot_i386.8 V 33 file h2-1558.4f-1559.r287396/7343 K 10 nextboot.8 V 28 file 3-106415.0.r286660/1434 K 11 nextboot.sh V 26 file 5-97203.0.r231129/763 K 8 reboot.8 V 33 file ha-1558.4j-1559.r290548/4900 K 8 reboot.c V 33 file hc-1558.4k-1559.r290548/5234 END ENDREP id: 1v-1559.0.r290548/5954 type: dir pred: 1v-1559.0.r287396/8065 count: 133 text: 290548 5570 371 0 4e60eaf00da0a20a9fac7c7c812ca358 cpath: /head/sbin/reboot copyroot: 0 / PLAIN K 8 Makefile V 31 file 6b-1558.0-1559.r278070/105 K 14 Makefile.amd64 V 29 file 4-212527.0.r240621/10993 K 12 Makefile.arm V 27 file 6-212527.0.r212527/584 K 13 Makefile.i386 V 29 file 8-212527.0.r240621/11290 K 12 Makefile.inc V 34 file 6e-1558.1-1559.r265420/157343 K 13 Makefile.mips V 28 file c-212527.0.r212527/1379 K 13 Makefile.pc98 V 28 file e-212527.0.r212527/1645 K 16 Makefile.sparc64 V 28 file g-212527.0.r212527/1911 K 9 adjkerntz V 26 dir 2-868.0.r284345/786926 K 3 atm V 26 dir l-39232.0.r290083/7818 K 7 badsect V 27 dir 3-1559.0.r284345/789170 K 8 bsdlabel V 25 dir 2-1558.0.r287396/1874 K 10 camcontrol V 25 dir 2-39214.0.r289916/970 K 7 casperd V 28 dir 2s-258838.0.r289204/1286 K 9 ccdconfig V 28 dir 2-13045.0.r284345/791753 K 4 clri V 27 dir 5-1559.0.r284345/792439 K 10 comcontrol V 25 dir fc-4.0.r284345/793117 K 11 conscontrol V 28 dir 2-85378.0.r284345/793806 K 3 ddb V 29 dir 4-174915.0.r284345/794625 K 4 devd V 28 dir 2-105573.0.r289677/17883 K 5 devfs V 29 dir 4-100206.0.r284345/796336 K 8 dhclient V 27 dir 2-43856.0.r289172/88506 K 5 dmesg V 27 dir 9-1559.0.r284345/799239 K 4 dump V 27 dir b-1559.0.r284345/800372 K 6 dumpfs V 24 dir d-1559.0.r287429/602 K 6 dumpon V 27 dir 2-8478.0.r290494/159279 K 14 etherswitchcfg V 29 dir 4-235289.0.r284345/802565 K 5 fdisk V 23 dir fj-4.0.r287396/3325 K 10 fdisk_pc98 V 27 dir 2-58234.0.r288228/29960 K 7 ffsinfo V 26 dir 4-69800.0.r287396/4007 K 4 fsck V 27 dir j-1559.0.r284345/805459 K 8 fsck_ffs V 26 dir h-1558.0.r289677/19596 K 12 fsck_msdosfs V 28 dir 2-79455.0.r284345/807799 K 4 fsdb V 28 dir 2-12049.0.r284345/808599 K 7 fsirand V 28 dir 4-24149.0.r284345/809274 K 4 gbde V 29 dir 4-105513.0.r284345/810094 K 4 geom V 27 dir 2-129470.0.r289137/9094 K 5 ggate V 27 dir 2-128762.0.r285538/2716 K 6 growfs V 27 dir e-69800.0.r289172/89738 K 6 gvinum V 29 dir 2-130391.0.r284345/827860 K 7 hastctl V 29 dir g-204076.0.r284345/828548 K 5 hastd V 29 dir o-204076.0.r284345/831507 K 8 ifconfig V 25 dir n-1559.0.r290450/2435 K 4 init V 25 dir p-1559.0.r290548/4730 K 3 ipf V 26 dir 2-53643.0.r288477/1413 K 4 ipfw V 27 dir 2-3966.0.r290494/160193 K 9 iscontrol V 29 dir 7-171568.0.r284345/842424 K 9 kldconfig V 28 dir 2-78977.0.r284345/843114 K 7 kldload V 28 dir 2-25540.0.r284345/843794 K 7 kldstat V 28 dir b-25540.0.r284345/844474 K 9 kldunload V 28 dir j-25540.0.r284345/845164 K 8 ldconfig V 27 dir 2m-696.0.r284345/845943 K 3 md5 V 27 dir 2-3996.0.r284345/846622 K 8 mdconfig V 27 dir 2-70448.0.r289172/92972 K 5 mdmfs V 28 dir 2-78447.0.r284345/848031 K 5 mknod V 27 dir r-1559.0.r284345/848724 K 10 mksnap_ffs V 29 dir 4-111716.0.r284345/849410 K 5 mount V 25 dir t-1559.0.r289449/1030 K 12 mount_cd9660 V 27 dir v-1559.0.r284345/851250 K 12 mount_fusefs V 29 dir 5-241519.0.r284345/851950 K 13 mount_msdosfs V 27 dir l-2892.0.r284345/852655 K 9 mount_nfs V 25 dir 13-1559.0.r285804/688 K 12 mount_nullfs V 28 dir 35-1558.0.r284345/854067 K 9 mount_udf V 28 dir 2-94663.0.r284345/854762 K 13 mount_unionfs V 25 dir 4d-1558.0.r287397/692 K 6 nandfs V 28 dir o-235537.0.r275030/46658 K 4 natd V 27 dir 2-26782.0.r289677/21709 K 5 newfs V 26 dir 1i-1559.0.r287396/5723 K 11 newfs_msdos V 26 dir 2-37447.0.r289629/1981 K 12 newfs_nandfs V 29 dir 14-235537.0.r289677/22375 K 6 nfsiod V 28 dir 1o-1559.0.r284345/858733 K 7 nos-tun V 28 dir b-35137.0.r284345/859412 K 11 nvmecontrol V 26 dir 2-240620.0.r285796/958 K 5 pfctl V 27 dir 9-126385.0.r290236/1304 K 6 pflogd V 30 dir 14-126385.0.r284345/862411 K 4 ping V 28 dir 1s-1559.0.r284345/863106 K 5 ping6 V 25 dir o-55163.0.r286834/933 K 10 quotacheck V 28 dir 4l-1558.0.r284345/864589 K 7 rcorder V 27 dir 4-78345.0.r289677/23410 K 6 reboot V 26 dir 1v-1559.0.r290548/5954 K 11 recoverdisk V 29 dir 2-135911.0.r284345/867098 K 10 resolvconf V 29 dir 7-219738.0.r284345/867695 K 7 restore V 28 dir 1x-1559.0.r284345/868818 K 5 route V 25 dir 1z-1559.0.r287920/738 K 6 routed V 27 dir 2-18317.0.r288228/31347 K 5 rtsol V 25 dir w-55163.0.r288963/798 K 8 savecore V 25 dir 21-1559.0.r290520/910 K 7 sconfig V 28 dir 2-123123.0.r288228/32056 K 6 setkey V 26 dir z-55505.0.r286143/3447 K 8 shutdown V 28 dir 25-1559.0.r284345/875344 K 11 spppcontrol V 28 dir 2-30303.0.r284345/876056 K 8 sunlabel V 28 dir 2-110130.0.r288228/32823 K 6 swapon V 25 dir 2b-1559.0.r286445/820 K 6 sysctl V 25 dir 2-1554.0.r290476/1130 K 5 tests V 28 dir k-263220.0.r289172/93515 K 6 tunefs V 28 dir 2d-1559.0.r284345/878883 K 6 umount V 25 dir 2f-1559.0.r284531/744 END ENDREP id: fa-4.0.r290548/10621 type: dir pred: fa-4.0.r290520/5576 count: 7852 text: 290548 6128 4480 0 f9d88305ed7e1571e7a242be7c06c422 props: 290494 164945 708 0 f60eb0f6d73902542981edb7324852b1 cpath: /head/sbin copyroot: 0 / minfo-cnt: 3 minfo-here: y PLAIN K 10 .arcconfig V 26 file 1-265842.0.r285064/64 K 8 .arclint V 27 file 1-266959.0.r281789/766 K 9 COPYRIGHT V 25 file 1-2656.0.r276462/908 K 5 LOCKS V 27 file 1-146890.0.r255635/270 K 11 MAINTAINERS V 26 file 1-94742.0.r290494/414 K 8 Makefile V 31 file 3-1594.0-1595.r290526/5062 K 13 Makefile.inc1 V 27 file 5-38666.0.r290526/5368 K 17 ObsoleteFiles.inc V 28 file 4-148330.0.r290494/1012 K 6 README V 26 file 1-21173.0.r281727/580 K 8 UPDATING V 26 file 1-41806.0.r290501/159 K 3 bin V 22 dir 1-5.0.r290480/2959 K 4 cddl V 28 dir 1-168404.0.r290494/16543 K 7 contrib V 28 dir 1-16755.0.r290494/103213 K 6 crypto V 28 dir 1-25405.0.r290494/105290 K 3 etc V 23 dir 1-38.0.r290515/5109 K 3 gnu V 24 dir 1-3.0.r290494/116620 K 7 include V 26 dir 1-697.0.r290494/124856 K 9 kerberos5 V 27 dir 4q-29815.0.r289251/2370 K 3 lib V 23 dir 6-5.0.r290540/10062 K 7 libexec V 22 dir c-5.0.r290223/5447 K 7 release V 25 dir 1-3027.0.r289337/2953 K 6 rescue V 26 dir 7-117035.0.r289469/882 K 4 sbin V 24 dir fa-4.0.r290548/10621 K 6 secure V 25 dir r-1553.0.r290461/2196 K 5 share V 23 dir e-3.0.r290531/25131 K 3 sys V 23 dir g-5.0.r290547/26990 K 7 targets V 36 dir 2-242818.1-284345.r290494/401866 K 5 tests V 27 dir g-257097.0.r289603/3584 K 5 tools V 27 dir 43-1590.0.r290539/17970 K 7 usr.bin V 23 dir m-3.0.r290517/14954 K 8 usr.sbin V 24 dir q-3.0.r290494/442854 END ENDREP id: 5-1.0.r290548/12247 type: dir pred: 5-1.0.r290547/28617 count: 197366 text: 290548 10872 1362 0 b8d73442bb3701c0d655b45c7ed84143 props: 290494 444421 2180 0 916d858115eb2999ce1d533f1e946c0b cpath: /head copyroot: 0 / minfo-cnt: 166 minfo-here: y PLAIN K 11 ROADMAP.txt V 26 file 0-179453.0.r285589/70 K 4 head V 23 dir 5-1.0.r290548/12247 K 8 projects V 22 dir 6-1.0.r290503/5372 K 7 release V 22 dir 7-1.0.r286717/3051 K 6 releng V 23 dir 8-1.0.r290363/44731 K 6 stable V 23 dir 9-1.0.r290546/67074 K 8 svnadmin V 27 dir 0-179447.0.r290142/1665 K 4 user V 23 dir a-1.0.r290364/32421 K 6 vendor V 23 dir b-1.0.r290069/34249 K 13 vendor-crypto V 25 dir 0-1575.0.r289849/3986 K 10 vendor-sys V 27 dir 0-12116.0.r289561/38604 END ENDREP id: 0.0.r290548/12986 type: dir pred: 0.0.r290547/29355 count: 290548 text: 290548 12498 475 0 9675de58cdd9298f518127db96926399 props: 289270 0 4229 0 20f578acc837c5e58fc64b9eaa493aea cpath: / copyroot: 0 / minfo-cnt: 44705 aj-1558.1s-1559.t290547-68ib modify-file true false /head/sbin/init/Makefile aq-1558.1v-1559.t290547-68ib modify-file true false /head/sbin/init/init.c as-1558.1w-1559.t290547-68ib modify-file true false /head/sbin/init/pathnames.h ha-1558.4j-1559.t290547-68ib modify-file true false /head/sbin/reboot/reboot.8 hc-1558.4k-1559.t290547-68ib modify-file true false /head/sbin/reboot/reboot.c 12986 13211