summaryrefslogtreecommitdiff
path: root/sys/src/9/boot/bootrc
AgeCommit message (Collapse)Author
2022-12-23bootrc: bind devcap and devtls, make /root mount consistent with speccinap_lenrek
2022-12-12bootrc: let /boot/boot run in a more natural namespacecinap_lenrek
Mount /fd, /proc, /srv and /shr in initcode and open /dev/cons instead of #c/cons. This way, /boot/boot could theoretically be a rc-script and there is less reliance on magic device characters.
2022-06-14kernel: bootrc: add bootloop=Jacob Moody
2021-07-27kernel: simplify /boot/boot: 28K down to less than 4K.cinap_lenrek
- avoid print() format routines (saves alot of code) - avoid useless opens of /dev/cons (already done by initcode) - avoid useless binds of /env and /dev (already done by initcode) - do bind of /shr in bootrc, it is not needed by us - we'r pid 1 so kernel will print the exit message for us
2020-10-01bootrc: allow kbmap to be set via plan9.ini (thanks Aaron Bieber)kvik
2020-01-11bootrc: fix comment typo (thanks Robert Ransom)cinap_lenrek
2019-09-21bootrc: unmount devip *before* starting factotumcinap_lenrek
we want devip to get reattached after hostowner has been written. factotum already handles this with a private authdial() routine that mounts devip when it is not present. so we detach devmnt before starting factotum, and attach once factotum finishes.
2019-09-21bootrc: remount devip after /dev/hostowner has been written by factotumcinap_lenrek
devip remembers the attach uname so after we set hostowner we remount devip so future connections have the right owner.
2019-05-05bootrc: fix $rootdir and $rootspec handling (thanks lucio)cinap_lenrek
we did not interpret the $rootdir and $rootspec environment variables right. $rootdir is what gets bound to / (usually /root) and $rootspec is the mountspec of /root.
2018-12-04bootrc: remove $ff references (was old parsed /boot/boot argument list)cinap_lenrek
2018-07-14bootrc: write fatal error message to fd2cinap_lenrek
2018-03-17kernel: let /rc/bin/diskparts attach #k after #S partitions are loaded upqwx
2017-10-29kernel: introduce devswap #¶ to serve /dev/swap and handle swapfile encryptioncinap_lenrek
2017-06-28kernel: pass bootargs also in multiboot command line, retire the bootline ↵cinap_lenrek
mechanism to pass arguments to /boot/boot
2016-05-16kernel: add srvtls and tlsclient to bootfs.proto for encrypting connection ↵cinap_lenrek
to the file server
2016-02-14provide /n and /mnt early in bootrc to allow consistent use in /lib/namespacecinap_lenrek
theres a bootstrap problem: when /bin/init is run, it processes /lib/namespace where we might want to mount or bind resources to /n or /mnt. but mntgen was run later in cpurc/termrc so these mounts would be ignored. we already have mntgen in bootfs, so we can provide these mountpoints early. i keep the termrc/cpurc mntgens where they are, but ignore the error prints. this way old kernels will continue to work.
2015-11-22bootrc: remove usbwait hack, usbd/nusbrc are now synchronous by previous commitcinap_lenrek
2015-08-25fix fuckupglenda
2015-08-25import E script from bell labsmischief
2015-05-13fixed by fuck upMatthew Veety
2015-05-13removed ukill.Matthew Veety
2015-04-09bootrc: simplify bootargs splitting avoiding awkcinap_lenrek
2015-03-25boot: allow alternative proto files per kernel and kernel config for bootfs.paqcinap_lenrek
bootmkfile will now looks for the following proto files in order and pick the first one it finds to build the bootfs.paq file: 1) $CONF.boofs.proto (config specific) 2) bootfs.proto (kernel specific) 3) $BOOTDIR/bootfs.proto (default generic)
2014-12-10bootrc: preserve #ec/fs (thanks _sl)cinap_lenrek
2014-12-10bootrc: handle multiple fs and auth addresses in netboot, always set auth= ↵cinap_lenrek
in /net/ndb
2014-12-09bootrc: do not pass authserver with -a flag to factotum, handle multiple ↵cinap_lenrek
secstore addresses factotum is started in bootrc before the network is setup (as we need it to negotiate wpa key for wifi). once, the network is setup, the bootstrap authservers are passed in /net/ndb, which factotum reads when doing bootstrap authdial. it does this only when no authserver was specified earlier! but we want net.rc to select the proper bootstrap authserver... the $secstore variable takes precedence over $auth. as there is no connection server yet, we have to select the set of servers here and pass them to secstore with -s flag. note that this will work if multiple addresses where specified.
2014-04-18wpa support for tcp boot, remove duplicate secstore code from factotumcinap_lenrek
to run aux/wpa at boot, we need factotum to be running. tho factotum was started only after the network was configured. what we do now is start factotum early, not fetching keys from secstore. once network is available and the auth server is known, we fetch keys from secstore using auth/secstore in bootrc. to pass the authserver for p9 authentication to factotum, we write it in /net/ndb and the special _authdial() in factotum will picks it up. as we are using auth/secstore binary in any case, we remove the duplicated secstore code from factotum and make it just exec auth/secstore to fetch the keys on startup (unless -n or -S is specified).
2014-02-14similar to my last commit, but combined the two waits for the usb devices. ↵Matthew Veety
still configurable, but with usbwait. If usbwait is not defined then it defaults to the original 2 seconds.
2013-10-02bootrc: +xcinap_lenrek
2013-04-28bootrc: fix spacing when asking for fs/auth ipppatience0
2012-12-06bootrc: fix mistake, god damn itcinap_lenrek
2012-12-06bootrc: reparse all env variables, not just #eccinap_lenrek
2012-11-07devproc: remove pgrpid == 1 check for notepg opencinap_lenrek
assuming that this check tried to prevent the hostowner from killing init, it is silly because init would just handle the note. with kbdfs, we actually want to send interrupt note to the initial process group so instead of working arround this with rfork(RFNOTEG|RFNAMEG), we remove the check.
2012-11-06make interrupt key (Del) just work in the consolecinap_lenrek
these changes make the interrupt key available in the console (before rio is started). kbdfs: will now send a "interrupt" note to its invoking process group in cooked mode. bootrc: is now prepared to handle interrupts, mainly to not accidently spawn a new bootargs prompt. init: forwards the interrupt to the cpurc/termrc pgrp. vncs: shields itself from kbdfs notegroup so interrrupt wont kill the whole vnc session.
2012-05-03bring back il protocol supportcinap_lenrek
2012-03-01boot: check nousbrc boot parameter, add delaycinap_lenrek
2011-09-02kbdfs: add -q (quiet) optioncinap_lenrek
2011-08-28bootrc: prefer 9660 filesystem as default on cdboot, restart factotum, delay ↵cinap_lenrek
for usb
2011-08-27bootrc: dont try to convert kernel variables, fix quotingcinap_lenrek
2011-08-27bootrc: broke #ec copying, fix it. dontkill: ignore errorscinap_lenrek
2011-08-23bootrc: simplify by just converting all variables from #eccinap_lenrek
2011-08-22bootrc: use rtc. temporarily.cinap_lenrek
2011-08-16serial console stuffcinap_lenrek
2011-07-30nusb: change usbevent format, put nusbrc in bootfscinap_lenrek
2011-07-17kbdfs: mouse button 2 emulation by changing mouse buttonmap when shift is ↵cinap_lenrek
pressed
2011-06-16boot(8): simplifycinap_lenrek
2011-06-15boot(8): add cfs supportcinap_lenrek
2011-06-14boot(8): handle flags and arguments in bootrccinap_lenrek
2011-06-04cleanup boot(8), replace read(1), fix cpu kernel configscinap_lenrek
2011-06-04boot(8): strip bootfscinap_lenrek