I had intended to make an RFE here, about the handling of <CR> within LEAF.CFG...

As mentioned, <LF> alone are the proper way to end lines on a Linux system. Curiously the file isolinux.cfg (syslinux.cfg too?) doesn't seem to have a problem if there are <CR><LF> in it.

My RFE is that perhaps the parsing of LEAF.CFG can be made tolerant of the <CR> characters just as the parsing of isolinux.cfg is?
=-=-=-=-=-=-=-=-
In support of this RFE: it may reduce the stumbles that a new user (DOS/Windows) has, and that it may reduce some tech-support queries posted to this list.


Against this RFE: it'll take someone's time to effect this, and that if not by mucking LEAF.CFG and discovering that <CR>'s don't belong in the Linux world then a new user might well encounter this fact elsewhere, with some other file ... where it is perhaps less obvious and thus more confounding.

In support of this RFE: it is somewhat likely that no files other then sys/isolinux.cfg and leaf.cfg would get edited in DOS since all other files are 'hidden' inside .LRP files and would normally be edited on the LEAF box itself.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Sorry, a correction: that specific error (": not found") appears only if:
  a) one has blank lines in LEAF.CFG and
  b) there are <CF><LF> in this file.

There are other symptoms of <CR><LF> within LEAF.CFG:
(FWIW I have a CD-ROM on hda [boot-device] and a h/d on hdb [unused] - possibly this impacts the reported "03:00" within the "... device 03:00" message?)


- pivot_root: pivot_root: Device or resource busy

- VFS: Can't find a Minix or Minix V2 filesystem on device 03:00.
- FAT: bogus logical sector size 0
- VFS: Can't find a valid FAT filesystem on dev 03:00.

- umount: /initrd: Invalid argument
- freeramdisk: failed ioctl on /dev/ram0: Device or resource busy

- LEAF Bering-uClibc V2.2.0 uClibc-0.9.20 (none) ttyS0
- (none) login:
  - where instead of the firewall name one gets this (none)

- the packages get installed ("LINUXRC: Installing - root: ...") but not loaded or run.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
As always, thanks for LEAF!

scott; canada


freeman groups wrote:

> Found this and figured it out so I thought that I'd share.
>
> This message comes up at bootup if one has <CR><LF>'s in one's
> LEAF.CFG file. I.E. instead of the more proper <LF> only, as used in
> the Linux world.
>
> You probably were editing your LEAF.CFG file in a DOS/Windows
> environment and saved it.
>
> Probably the easiest way to remove the <CR>'s from the <CR><LF>
> combination is the DOS2Unix utility. The best one of those that I have
> found is located here:
> http://gatekeeper.dec.com/pub/micro/pc/simtelnet/msdos/txtutl/dos2unix.zip
>
>
> The nice thing about this version is that it works under pure DOS,
> from 6.22 all the way up to XP.
>
> scott; canada



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to