stux2000 / plan9front

Automatically exported from code.google.com/p/plan9front
0 stars 0 forks source link

post-install system ignores some values from plan9.ini #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some values are not making it from `plan9.ini` into `#ec` and `#e`.

The following is output from a freshly installed terminal:

{{{
term% cat /n/9fat/plan9.ini
bootfile=9pcf
bootargs=local!/dev/sdC0/fscache
sysname=cirno
mouseport=ps2intellimouse
monitor=vesa
vgasize=1280x1024x32
*nomp=

term% ls '#ec'
'#ec/*nomp'
'#ec/bootfile'
'#ec/monitor'
'#ec/mouseport'
'#ec/vgasize'

term% cat '#ec/vgasize'
1280x1024x32

term% ls '#e'
'#e/*'
'#e/0'
'#e/NDBFILE'
'#e/TIMESYNCARGS'
'#e/apid'
'#e/bootargs'
'#e/bootdisk'
'#e/bootfile'
'#e/cflag'
'#e/cpu'
'#e/cpuflag'
'#e/cputype'
'#e/facedom'
'#e/fileserver'
'#e/fn#cd'
'#e/fn#sigexit'
'#e/fn#term%'
'#e/font'
'#e/home'
'#e/ifs'
'#e/init'
'#e/monitor'
'#e/mouseport'
'#e/objtype'
'#e/part'
'#e/parts'
'#e/path'
'#e/pdev'
'#e/pid'
'#e/pids'
'#e/plumbsrv'
'#e/prompt'
'#e/rcname'
'#e/rootdir'
'#e/service'
'#e/site'
'#e/status'
'#e/sysname'
'#e/terminal'
'#e/timezone'
'#e/user'
'#e/vgasize'
'#e/wctl'
'#e/wsys'

term% cat '#e/sysname'
gnot
}}}

This is the relevant portion `/sys/src/9/boot/bootrc`, as it existed when the 
system was built:

{{{
# convert plan9.ini variables
set init
set user
set nvram
set rootdir
set bootargs
set nobootprompt
set sysname
set debugfactotum
set fs
set fsaddr
set auth
set authaddr
}}}

Original issue reported on code.google.com by stanley....@gmail.com on 4 May 2011 at 10:19

GoogleCodeExporter commented 9 years ago
Note: vgasize from plan9.ini is making it into both #ec and #e.

Original comment by stanley....@gmail.com on 4 May 2011 at 10:21

GoogleCodeExporter commented 9 years ago
When booting, the contents of plan9.ini are printed correctly on the screen. At 
the bootargs prompt, drop into a shell with !rc. The $sysname variable is 
empty, #ec/sysname does not exist, and #e/sysname exists but is empty.

Original comment by stanley....@gmail.com on 4 May 2011 at 10:44

GoogleCodeExporter commented 9 years ago
When 'set sysname' is removed from bootrc and the kernel is rebuilt, echoing 
$sysname at the !rc prompt produces non-ascii garbage characters.

Original comment by stanley....@gmail.com on 4 May 2011 at 10:47

GoogleCodeExporter commented 9 years ago
it was me accidently removing rfork e from diskparts

Original comment by cinap_le...@felloff.net on 4 May 2011 at 11:54

GoogleCodeExporter commented 9 years ago

Original comment by a...@phicode.de on 26 May 2011 at 5:20