tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Shared-root diskless netboot, critical local/remote mounts, and rc.conf



> Iâ??ve been looking off and on at what it would take to set up NetBSD for "N$
> [...]
> Anyway, has anyone else experimented with this sort of thing or have any fur$

I've done something vaguely similar.

I had a disk which, under different circumstances (the details of
where/how it's being used), could be sd0 or wd0.  I wanted it to
auto-adapt at boot time.  I did it with a custom rc.d script which
mounted a tiny mfs and wrote a symlink into it, with /etc/fstab (and
possibly something else? not sure) being symlinks that went through
that mfs mount.  The biggest resulting headache (and it wasn't all that
big) was that fstab was a broken link when booted single-user.

It sounds as though you might have more than that to do.  But note that
rc.conf is not just a collection of variables; it is a shell script.
It can run programs and probe various things to determine what to set
variables to.

At worst you might have to add code to /etc/rc, though my tendency
would be to look fairly hard at finding ways to avoid that.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index