Re: [PATCH] Fancy rc startup style RFC



On 4/18/06, Coleman Kane <zombyfork@xxxxxxxxx> wrote:

On 4/18/06, M. Warner Losh <imp@xxxxxxxxxx> wrote:

In message: <44452532.40703@xxxxxxxxxxxx>
Eric Anderson <anderson@xxxxxxxxxxxx> writes:
:
: Thanks for the feedback! Looks like I made an erroneous assumption
that
: the wc, expr, and printf tools found in /usr/bin and /bin would be
: available through boot, but that isn't the case on systems with those
: file systems separate from /. I'm not sure how to resolve some of
these
: issues, since I don't know of a way to do those functions in csh
without
: them. I'm open to suggestions here from anyone.

/bin and /sbin are available through the entire boot. Only things in
/usr are suspect because /usr gets mounted early in the boot process,
but not as early as /.

Warner


Nice work!

I too noticed the dependence upon wc, printf, expr. I went ahead and
rewrote these into equivalents in native sh. (attaching new diff).

This diff is against the latest 7-CURRENT rc.subr. I had to manually merge
3 hunks due to some differences.

--
coleman kane


I did some ugly-looking loops to build the space-padding expansion. Does
anybody know of a better, more elegant way to accomplish the same thing with
sh (and/or stuff in /bin,/sbin)?


--
coleman
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: MS 9129 wont boot 5.4CD but will 4.11
    ... Have tried 3 diff versions including the boot only image, ... > formal problem report, or since such problems are tough to debug, ... > version until I could upgrade from the new CD using sysinstall after ...
    (freebsd-questions)
  • Re: FC5 RAID 1 - booting off either drive
    ... fresh install of FC5 with RAID 1 configured at install ... the first 512 bytes on each drive are the boot (perhaps less, ... although diff says they are different, I can boot off either with the ...
    (Fedora)
  • Re: Stability of 2.6.17-rc3?
    ... Though, Joshua, 2.6.17-rc3 seems to be a rock-solid release. ... It's safe enough ... to diff against and boot, if that's what you want to do. ...
    (Linux-Kernel)
  • RE: keyboard failure during post
    ... the dual boot worked fine until about two hours ago. ... the usual...unplugging and plugging, drivers, checking keyboard with diff ... I have tried uninstall and reinstall drivers but that ...
    (microsoft.public.windowsxp.general)