Commit graph

52 commits

Author SHA1 Message Date
cinap_lenrek d75f5a24ba bootrc: preserve #ec/fs (thanks _sl) 2014-12-10 03:16:36 +01:00
cinap_lenrek 665f0c8e3e bootrc: handle multiple fs and auth addresses in netboot, always set auth= in /net/ndb 2014-12-10 00:30:07 +01:00
cinap_lenrek 17566b4dd3 bootrc: do not pass authserver with -a flag to factotum, handle multiple 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-12-09 22:26:30 +01:00
cinap_lenrek 8d0e4cf37b wpa support for tcp boot, remove duplicate secstore code from factotum
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-04-18 20:55:41 +02:00
Matthew Veety 3f9d92c1a8 similar to my last commit, but combined the two waits for the usb devices. still configurable, but with usbwait. If usbwait is not defined then it defaults to the original 2 seconds. 2014-02-14 00:11:11 -05:00
cinap_lenrek e55d105159 bootrc: +x 2013-10-02 02:01:43 +02:00
ppatience0 84172fc961 bootrc: fix spacing when asking for fs/auth ip 2013-04-28 18:34:47 -04:00
cinap_lenrek c3105131fe bootrc: fix mistake, god damn it 2012-12-06 03:46:22 +01:00
cinap_lenrek 620d6df973 bootrc: reparse all env variables, not just #ec 2012-12-06 02:03:59 +01:00
cinap_lenrek 2c4a77f21f devproc: remove pgrpid == 1 check for notepg open
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-07 18:57:02 +01:00
cinap_lenrek 599dd1c34f make interrupt key (Del) just work in the console
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-11-06 17:19:41 +01:00
cinap_lenrek 1de9ca2de5 bring back il protocol support 2012-05-03 10:47:40 +02:00
cinap_lenrek 02217fa6c2 boot: check nousbrc boot parameter, add delay 2012-03-01 18:55:42 +01:00
cinap_lenrek 9194371eac kbdfs: add -q (quiet) option 2011-09-02 15:16:10 +02:00
cinap_lenrek cd47b3e9d4 bootrc: prefer 9660 filesystem as default on cdboot, restart factotum, delay for usb 2011-08-28 20:37:20 +02:00
cinap_lenrek 9403363364 bootrc: dont try to convert kernel variables, fix quoting 2011-08-27 17:58:20 +02:00
cinap_lenrek 6d9f649c41 bootrc: broke #ec copying, fix it. dontkill: ignore errors 2011-08-27 17:20:42 +02:00
cinap_lenrek ce1915c53e bootrc: simplify by just converting all variables from #ec 2011-08-23 00:24:24 +02:00
cinap_lenrek e1488b2de7 bootrc: use rtc. temporarily. 2011-08-22 11:20:32 +02:00
cinap_lenrek f682600440 serial console stuff 2011-08-16 10:15:36 +02:00
cinap_lenrek f9846213d1 nusb: change usbevent format, put nusbrc in bootfs 2011-07-30 07:23:26 +02:00
cinap_lenrek 12619cb9a5 kbdfs: mouse button 2 emulation by changing mouse buttonmap when shift is pressed 2011-07-17 18:15:29 +02:00
cinap_lenrek 5fa804d69f boot(8): simplify 2011-06-16 17:35:07 +02:00
cinap_lenrek cde40efb0c boot(8): add cfs support 2011-06-15 14:50:29 +02:00
cinap_lenrek c4996be04f boot(8): handle flags and arguments in bootrc 2011-06-14 21:03:03 +02:00
cinap_lenrek 7827e7ae6f cleanup boot(8), replace read(1), fix cpu kernel configs 2011-06-04 08:07:21 +00:00
cinap_lenrek f55d5517ed boot(8): strip bootfs 2011-06-04 07:18:11 +00:00
cinap_lenrek 792b186b3a boot(8): replace bzfs with paqfs 2011-06-04 05:19:29 +00:00
cinap_lenrek 1ac9d6ab0e boot(8): fix null list in concatenation error for ! input 2011-05-21 03:42:13 +00:00
cinap_lenrek 76f99f7cb3 serial console support 2011-05-13 08:53:43 +00:00
cinap_lenrek 2febff5948 boot and namespace cleanup 2011-05-10 09:14:30 +00:00
cinap_lenrek 26c2845917 kbdfs 2011-05-09 08:32:14 +00:00
cinap_lenrek 67856b4507 bootargs=tcp fix 2011-05-06 07:02:22 +00:00
stanley lieber 84fb59d71a bootrc: set sysname 2011-05-04 19:12:02 +00:00
cinap_lenrek fa9a40027b boot(8): merge usb boot method into local 2011-05-02 01:21:55 +00:00
ment d78b83bdfc boot: mountpoint fix 2011-04-30 17:06:05 +02:00
ment 6a4063e245 merge 2011-04-30 16:52:50 +02:00
cinap_lenrek db7290d79e cwfs: fix network listener, relay auth errors. boot(8): split bootargs only on first ! char, prepare /net so cwfs can announce 9fs 2011-05-01 07:07:32 +00:00
cinap_lenrek 064bce0841 boot(8): dont ask for keys every time on cpu kernel 2011-05-01 03:25:02 +00:00
cinap_lenrek 15656fc79d boot(8): fix boot restarting 2011-04-30 20:17:33 +00:00
ment 012dec1119 boot: partitioning USB disks, mounting 9front.iso from FAT partition 2011-04-30 16:43:54 +02:00
cinap_lenrek d719f8946c boot(8): i'm bad at rc :-\ 2011-04-23 18:22:24 +00:00
cinap_lenrek b14bc93a79 boot(8): cleanup enviroment variables before init 2011-04-21 22:22:25 +00:00
cinap_lenrek 1b1fac3874 boot(8): fix it 2011-04-19 05:24:46 +00:00
iru 3029059953 merge 2011-04-17 17:27:47 -03:00
iru b261a0c31b Add /sys/src/9/boot/tread, a tool to read a line with a timeout.
While here, remove boot(8) references to pcload.
2011-04-17 17:25:55 -03:00
cinap_lenrek 6a197909c4 boot(8): usb/usbd might fail when no hubs are detected 2011-04-18 07:17:49 +00:00
cinap_lenrek a455c61024 boot(8): kfs support 2011-04-18 06:33:38 +00:00
cinap_lenrek 0087d42a68 boot(8): add cwfs support to, restart if mount fails, usbd. cwfs: exit code 2011-04-18 05:58:04 +00:00
cinap_lenrek 9d24a107a5 boot(8): changed tread to read, other: fix perms 2011-04-18 01:59:36 +00:00