On Tue, 30 May 2000, Jay Rogers wrote:
> > From: Hans Lermen <[EMAIL PROTECTED]>
> > On Mon, 29 May 2000, Jay Rogers wrote:
> > > >From the command line, I'd like to override the $_hdimage setting
> > > in dosemu.conf. However the following doesn't work:
> > >
> > > dos -I '$_hdimage = "bootdir.first /dev/hda1:ro"'
> > >
> > > Can someone please explain the correct syntax?
> >
> > Its the same you find in global.conf (README-tech). '-I' needs basic
> > configuration statements, $_hdimage has already been parsed and
> > will not be parsed again.
>
> Okay, so what's the command line args to use, using the default
> global.conf that came with version 1.0.0, that would override the
> drive settings specfied in dosemu.conf?
Not via -I, this isn't intended to overwrite all settings. There are security
issues involved too. What _I_ do to boot differently is
- have a /etc/dosemu.conf (wrapper) such as
include "dosemu.conf.real"
ifdef u_project1
$_hdimage = "boot1"
endif
ifdef u_project2
$_hdimage = "boot2"
endif
- then start dosemu with
$ dos -u project1
or
$ dos -u project2
or
$ dos
The later will take what you have as default in $_hdimage.
The names projectX, bootX are only an example, you may name them
as you like.
If you use setup-dosemu to change your configuration, then you have to
change '/etc/dosemu.conf' within the 'System wide' button of menu
'DOSEMU run-time Configuration' to '/etc/dosemu.conf.real'.
An other alternative would be to set
$_hdimage = $MY_DOSEMU_HDIMAGE
in normal /etc/dosemu.conf and start DOSEMU such as
$ export MY_DOSEMU_HDIMAGE=myhdimage; dos
However, this /etc/dosemu.conf would not be parseable by setup-dosemu
and you would prefer to have a wrapper anyway such as
include "dosemu.conf.real"
$_hdimage = $MY_DOSEMU_HDIMAGE
And, be _very_ carefull, because you can now have _any_ device/hdimage,
even a wrong one.
> I'm thinking it should be easy to specify a different hard drive
> config on the command line.
if it were that easy, then it also would be dangerous.
... and we try to preserve our users from doing unintentional crashes.
Hans
<[EMAIL PROTECTED]>