Package Search
 
Members: 353 | Topics: 767 | Posts: 3211
We welcome our newest member: ClintBarton
Info
» You aren't logged in, login or registerOnline: No members and 17 guests | Time: 18:10
I'm trying to create livecd with livecd-scripts
paldo Support Forum    paldo    General Discussion
Reply Reply   Subscribe Topic Subscribe Topic
3 posts found.
 I'm trying to create livecd with livecd-scripts
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
I got to the page: www.linux-live.org and downloaded the last livecd-script.

In build 5.5.0 I found this script:

Code[In neuem Fenster öffnen]
#!/bin/bash
# Batch file to create bootable SLAX disk
# usage: make_disk.sh /dev/sda1 # (must be the partition)
# WARNING! boot sector of the device will be OVERWRITTEN!
# author: Tomas M. <http://www.linux-live.org>

if [ "$1" = "" ]; then
echo "usage: $0 partition_device"
echo "example: $0 /dev/sda1"
exit 1
fi

PART="$1"
BOOT="`echo \"$PART\" | sed -r \"s/[0-9]+\\\$//\"`"

TMPDIR=/mnt/makedisk_mount$$
echo "Mounting $PART to $TMPDIR..."
mkdir -p $TMPDIR
mount "$PART" $TMPDIR
if [ $? -ne 0 ]; then exit 1; fi

echo "Copying files..."
cp -a ./* "$TMPDIR"
if [ $? -ne 0 ]; then exit 1; fi
sync

echo "Setting up boot sector in $BOOT..."
echo "boot=$BOOT
compact
lba32
vga=769
prompt
timeout=20
install=text

image=$TMPDIR/boot/vmlinuz
initrd=$TMPDIR/boot/initrd.gz
label=slax
root=/dev/ram0
append=\"max_loop=255 init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444\"
read-write
" >$TMPDIR/lilo.conf
lilo -C $TMPDIR/lilo.conf -m $TMPDIR/lilo.map -s $TMPDIR/origmbr 2>&1 | grep -vi warning
if [ $? -ne 0 ]; then exit 1; fi

umount $TMPDIR
rmdir $TMPDIR
echo "Successfully installed in $1"


Well it's not the best way to install a linux. Now I generate a livecd of my actual installed paldo. Will see if I can boot from it.

Btw. what way do you guys use to create the livecd?
Profile   Private Message   E-Mail
Created: 2007-03-11 12:41 | Modified: 2007-03-11 12:42 by Amnon82
Highlight selected Text   Edit   Delete   Quote Reply
 Re: I'm trying to create livecd with livecd-script
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
It didn't worked. So I deleted the created files.
Profile   Private Message   E-Mail
Created: 2007-03-11 13:35
Highlight selected Text   Edit   Delete   Quote Reply
 Re: I'm trying to create livecd with livecd-script
Administrator
 
 
 
Posts: 426
Registered: 2004-09-09
Zitat
Original erstellt: 2007-03-11 12:41 von Amnon82
Btw. what way do you guys use to create the livecd?


We let upkg build our cd images.

http://www.paldo.org/index.php?section=packages&page=main&query=paldo-live-cd
Profile   Private Message   Web
Created: 2007-03-11 22:09
Highlight selected Text   Edit   Delete   Quote Reply
Subscribe Topic Subscribe Topic
powered by bitron board 1.23a