This is a discussion on Re: BOOT-CD Problem within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> *** post for FREE via your newsreader at post.newsfeed.com *** Hi! I'm back again! It lasted for two weeks, ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| *** post for FREE via your newsreader at post.newsfeed.com *** Hi! I'm back again! It lasted for two weeks, because i wanted to be back and able to say "it works now" and it does! Thanks for the great help to Sami! Details: I don't think that 3.3 was really nessessary but i did it. i copied GENERIC to RAMDISK_CD and tried to get as most of the generic kernel as possible. First i had the same errors. Then i played around with the X-Config-File and figured out that the main reason why it only worked on the "Creating Computer" was the driver of the video hardware, which was a completely different one the other mashines. Not even xf86cfg could overcome this, but my to-be-writen-shell-script which will sort this out and load the proper x-config file on startup. the info which video-card is build in, it will get from dmesg and then it has to search /usr/X11R6/lib/X11/modules/drivers if a driver is there and then it changes the driver line in the X-config-file. (i don't know really how to replace strings in a file with a shell-script, but perl doesn't work, because i decided to save CD-space, but i will try it) the other problem i had i overcame whith a union mount and then a recreation of the X-link which is needed by xinit and startx all because on the CD which was made with mkhybrid there are no symbolic links, just file-copies i don't know with option for mkhybrid is nessessary for links i played around but i didn't find it. with option BUFCACHEPERCENT i need more time to see a difference all other services (printer, samba, router) seem to work fine a bad idea came into my mind: how is it possible to replace the Kernel and rc startup messages with a windoze-like picture? thanx Ewald -----= Posted via Newsfeed.Com, Uncensored Usenet News =----- http://www.newsfeed.com - The #1 Newsgroup Service in the World! -----== 100,000 Groups! - 19 Servers! - Unlimited Download! =----- |
| ||||
| In article <3F157CC4.10661523@yahoo.com>, Ewald Peters wrote: > Thanks for the great help to Sami! No problem, glad if I were of any help. > the info which video-card is build in, it will get from dmesg and > then it has to search /usr/X11R6/lib/X11/modules/drivers if a driver > is there and then it changes the driver line in the X-config-file. > (i don't know really how to replace strings in a file with a > shell-script, but perl doesn't work, because i decided to save > CD-space, but i will try it) Maybe ed(1) could be your friend for that, if you are familiar with vi. With script being something like this: --------------------------------------------------- * * * echo "%s/${OLDVIDEODRIVER}/${NEWVIDEODRIVER}/ \ * * w \ * * q" | ed XF86Config * * * --------------------------------------------------- I think that setting up XFree86 on the fly with just the information from dmesg might prove to be somewhat difficult but I don't say it can't be done. I'll look forward to hearing from your results. Please consider sharing your script with the community when you finish it. One other idea for similar script would be to construct /etc/hostname.${INTERFACE} from dmesg and asking the user for IP or DHCP, something like what OpenBSD install script has. That way you would get a "one-size-fits-all" kind of LiveCD. > the other problem i had i overcame whith a union mount and then a > recreation of the X-link which is needed by xinit and startx all > because on the CD which was made with mkhybrid there are no symbolic > links, just file-copies I don't know if ISO-9660 filesystem even with Rock-Ridge extensions have support for symbolic links. I have the impression (someone correct me if I'm wrong) that you don't necessarily have to have a cd9660 filesystem on the cd, you should be able to create a FFS file system onto the CD. How, if at all, you can do that is beyond me, though. > a bad idea came into my mind: how is it possible to replace the > Kernel and rc startup messages with a windoze-like picture? By hacking the kernel sources? I think (again someone correct me if I am wrong) that FreeBSD/Linsucks would be your choice if you wanted a boot-up image. sami |