Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto make a livecd from scratch?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Sun Jan 14, 2007 3:24 pm    Post subject: howto make a livecd from scratch? Reply with quote

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
View user's profile Send private message
bLUEbYTE84
Guru
Guru


Joined: 21 Jul 2006
Posts: 566
Location: universe.tar.gz, src/earth.h, struct homo_sapiens_table

PostPosted: Sun Jan 14, 2007 9:06 pm    Post subject: Reply with quote

Have you tried SLAX scripts?
http://www.linux-live.org/
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Mon Jan 15, 2007 9:27 am    Post subject: Reply with quote

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
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Mon Jan 15, 2007 1:24 pm    Post subject: Reply with 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
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Mon Jan 15, 2007 1:42 pm    Post subject: Reply with 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...
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Mon Jan 15, 2007 4:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Mon Jan 15, 2007 11:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Tue Jan 16, 2007 8:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
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