View previous topic :: View next topic |
Author |
Message |
rmh3093 Advocate
Joined: 06 Aug 2003 Posts: 2138 Location: Albany, NY
|
Posted: Sun Jan 14, 2007 3:24 pm Post subject: howto make a livecd from scratch? |
|
|
Yeah yeah, i know there are howtos out there for making a livecd but non of them give me the information that I am looking for... I can't figure out what is needed to use hwsetup to detect computer hardware and autoload kernel modules.... when ever I run hwsetup I get a segfault.... what is my userland missing? _________________ Do not meddle in the affairs of wizards, for they are subtle and quick to anger. |
|
Back to top |
|
|
bLUEbYTE84 Guru
Joined: 21 Jul 2006 Posts: 566 Location: universe.tar.gz, src/earth.h, struct homo_sapiens_table
|
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Mon Jan 15, 2007 9:27 am Post subject: |
|
|
Quote: | when ever I run hwsetup I get a segfault.... what is my userland missing? |
would be great to know : i have hit the same thing a year ago when i built a tiny (uclibc based ) system where i needed hardware detection.
Finnally used coldplug scripts and it worked great. Nowadays uevents would do the job i guess ...
cheers _________________ Error: Failing not supported by current locale |
|
Back to top |
|
|
rmh3093 Advocate
Joined: 06 Aug 2003 Posts: 2138 Location: Albany, NY
|
Posted: Mon Jan 15, 2007 1:24 pm Post subject: |
|
|
im really trying to avoid the whole, use some script to generate a livecd image type of deal so I will have to tweak the live-linux scripts a little bit but that looks like a good solution _________________ Do not meddle in the affairs of wizards, for they are subtle and quick to anger. |
|
Back to top |
|
|
mdeininger Veteran
Joined: 15 Jun 2005 Posts: 1740 Location: Emerald Isles, observing Dublin's docklands
|
Posted: Mon Jan 15, 2007 1:42 pm Post subject: |
|
|
just to throw some information in: i noticed that a lot of system-level software doesn't like it at all when it doesn't get all the default file descriptors (stdin, stderr and stdout). udevstart, for example, kept segfaulting on me for no apparent reason whatsoever, because i had closed the stdin file descriptor... _________________ "Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland
( Twitter | Blog | GitHub ) |
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Mon Jan 15, 2007 4:51 pm Post subject: |
|
|
Quote: | im really trying to avoid the whole, use some script to generate a livecd image type of deal so I will have to tweak the live-linux scripts a little bit but that looks like a good solution |
i just used portage to build the needed software and then throwed the system into the media i needed, cf, cd, usb-pen or whatever.
Buildroot is awesome too, but i guess you already know about it, and its not what you are looking for.
Quote: | just to throw some information in: i noticed that a lot of system-level software doesn't like it at all when it doesn't get all the default file descriptors (stdin, stderr and stdout). udevstart, for example, kept segfaulting on me for no apparent reason whatsoever, because i had closed the stdin file descriptor... |
could be, i really hadnt time to check wtf was going on ...
cheers _________________ Error: Failing not supported by current locale |
|
Back to top |
|
|
rmh3093 Advocate
Joined: 06 Aug 2003 Posts: 2138 Location: Albany, NY
|
Posted: Mon Jan 15, 2007 11:48 pm Post subject: |
|
|
gringo wrote: | Quote: | im really trying to avoid the whole, use some script to generate a livecd image type of deal so I will have to tweak the live-linux scripts a little bit but that looks like a good solution |
i just used portage to build the needed software and then throwed the system into the media i needed, cf, cd, usb-pen or whatever.
Buildroot is awesome too, but i guess you already know about it, and its not what you are looking for.
Quote: | just to throw some information in: i noticed that a lot of system-level software doesn't like it at all when it doesn't get all the default file descriptors (stdin, stderr and stdout). udevstart, for example, kept segfaulting on me for no apparent reason whatsoever, because i had closed the stdin file descriptor... |
could be, i really hadnt time to check wtf was going on ...
cheers |
i never liked build root too much, somwhere the compile would always seem to break on me, so i always end up reverting to starting from scratch....
i use these commands to create my empty dir skeleton:
Code: | mkdir -pv {bin,boot,etc/opt,home,lib,mnt,opt,sys,proc}
mkdir -pv {media/{floppy,cdrom},sbin,srv,var}
install -dv -m 0750 root
install -dv -m 1777 tmp var/tmp dev
mkdir -pv usr/{,local/}{bin,include,lib,sbin,src}
mkdir -pv usr/{,local/}share/{doc,info,locale,man}
mkdir -v usr/{,local/}share/{misc,terminfo,zoneinfo}
mkdir -pv usr/{,local/}share/man/man{1..8}
for dir in usr usr/local; do
ln -sv share/{man,doc,info} $dir
done
mkdir -v var/{lock,log,mail,run,spool}
mkdir -pv var/{opt,cache,lib/{misc,locate},local}
mknod -m 600 dev/console c 5 1
mknod -m 666 dev/null c 1 3
touch etc/mtab
cat > etc/passwd << "EOF"
root:x:0:0:root:/root:/bin/sh
nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
EOF
cat > etc/group << "EOF"
root:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
tty:x:4:
tape:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
lp:x:9:
dialout:x:10:
audio:x:11:
video:x:12:
utmp:x:13:
usb:x:14:
cdrom:x:15:
nogroup:x:99:
EOF
touch var/run/utmp var/log/{btmp,lastlog,wtmp}
chgrp -v utmp var/run/utmp var/log/lastlog
chmod -v 664 var/run/utmp var/log/lastlog
|
from there install busybox and a kernel.... just need to get the modules to autoprobe and load, this is going right on a usb key.... which technically can be writeable so I dont see a need for using squashfs/unionfs or an initrd if i dont have _________________ Do not meddle in the affairs of wizards, for they are subtle and quick to anger. |
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Tue Jan 16, 2007 8:26 am Post subject: |
|
|
solar has a similar script in his devspace.
Quote: | which technically can be writeable so I dont see a need for using squashfs/unionfs or an initrd if i dont have |
yes, i tried too and it is quite fast but im sure its not healthy for the usbpen
cheers _________________ Error: Failing not supported by current locale |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|