9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Connecting root fileservers during boot
@ 2023-06-10 15:13 ibrahim via 9fans
  2023-06-10 15:19 ` [9fans] " ibrahim via 9fans
  0 siblings, 1 reply; 2+ messages in thread
From: ibrahim via 9fans @ 2023-06-10 15:13 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]

While embedding root-filesystems to create a live-USB using paqfs I found some interesting behavior :

Starting your user file server with 

*argp++ = "userfsrv";
*argp++ = "-S" ;
*argp++ = "ufsrv" ;
*argp++ = "-f" ;
*argp++ = partition ;
for(i=1; i<bargc; i++)
*argp++ = bargv[i];
*argp = 0;

exec("/boot/userfsrv", arg);
fatal("can't exec userfsrv");

and using :

int nfd=open("#s/ufsrv", ORDWR) ;
return nfd ;


works, while using -i to connect over stdio (-pipes) does lead to a version error in devmnt

Using this method its quite simple to create a bootable USB (install-) live Stick from within 9legacy or 9vx.

I didn't have the time to search for the reason behind this changed behaviour in devmnt.

With this workaround I created a bootable install CD from the 9legacy ISO for devices which don't have CDROM devices.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T78ebc5723f2c00e1-Me9181c9334450bf348bf6ca1
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 2351 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [9fans] Re: Connecting root fileservers during boot
  2023-06-10 15:13 [9fans] Connecting root fileservers during boot ibrahim via 9fans
@ 2023-06-10 15:19 ` ibrahim via 9fans
  0 siblings, 0 replies; 2+ messages in thread
From: ibrahim via 9fans @ 2023-06-10 15:19 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

extended info to my last post in this thread ...

the code fragments have to be placed in 9/boot/xxx.c while xxx.c is the name of your rootfile server file (paq.c embed.c ...).
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T78ebc5723f2c00e1-M51fbf6121270ee09b7f99f87
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 930 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-10 15:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-10 15:13 [9fans] Connecting root fileservers during boot ibrahim via 9fans
2023-06-10 15:19 ` [9fans] " ibrahim via 9fans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).