[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH] build: Live-CD
* build: Die Skripte fuer die Erstellung von CD-ROMs umgestellt, so dass
jetzt ein Festplattenimage auf die CD kopiert wird, das per ramoverlay
auch temporaer beschreibbar ist.
Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
build/config/grub_cdrom.cfg | 4 +++-
build/config/image_cdrom.sh | 1 +
build/root-hd/config/servmgr/mount/cmd | 2 +-
build/scripts/image_cdrom | 16 ++++++++++++++++
4 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/build/config/grub_cdrom.cfg b/build/config/grub_cdrom.cfg
index fc71ef7..008c828 100644
--- a/build/config/grub_cdrom.cfg
+++ b/build/config/grub_cdrom.cfg
@@ -3,6 +3,8 @@ kernel /tyndur debug=s
module /init boot=file:/
module /ata
module /iso9660
+module /ramoverlay
+module /ext2
module /console servmgr:/term servmgr:/term
-module /servmgr ata:/atapi10|iso9660:/ vterm:/vterm8/out ata iso9660 console
+module /servmgr ata:/atapi10|iso9660:/hd.img|ramoverlay:/cached|ext2:/ vterm:/vterm8/out ata iso9660 console ramoverlay ext2
boot
diff --git a/build/config/image_cdrom.sh b/build/config/image_cdrom.sh
index 3e3e67f..faffc5e 100644
--- a/build/config/image_cdrom.sh
+++ b/build/config/image_cdrom.sh
@@ -1,2 +1,3 @@
IMAGE_PATH="build/images/cdrom.img"
FLOPPY_IMAGE_PATH="build/images/cdrom_floppy.img"
+HD_IMAGE_PATH="build/images/hd.img"
diff --git a/build/root-hd/config/servmgr/mount/cmd b/build/root-hd/config/servmgr/mount/cmd
index 2d53391..0c9cb8a 100644
--- a/build/root-hd/config/servmgr/mount/cmd
+++ b/build/root-hd/config/servmgr/mount/cmd
@@ -1 +1 @@
-/modules/file mount file:/ ata:/ata00_p0|ext2:/
+/modules/file mount file:/ $ROOT
diff --git a/build/scripts/image_cdrom b/build/scripts/image_cdrom
index d569b4e..3cfe5c8 100755
--- a/build/scripts/image_cdrom
+++ b/build/scripts/image_cdrom
@@ -49,6 +49,21 @@ source config.sh
export MTOOLSRC=lostmtools.conf
+# Festplattenpartition kopieren
+if [ ! -f $HD_IMAGE_PATH ]; then
+ echo "Benoetige ein Festplattenimage"
+ exit 1
+fi
+
+
+PARTITIONS="`build/scripts/get_partition $HD_IMAGE_PATH`"
+PART_START=`echo $PARTITIONS | awk '{print $1}'`
+
+dd if=$HD_IMAGE_PATH of=$ROOT_CDROM/hd.img skip=$PART_START
+
+
+# CD bauen
+
if [ -f $STAGE2_ELTORITO ]; then # Eltorito
mkdir -p $ROOT/boot/grub
@@ -106,6 +121,7 @@ mcopy -D o build/config/grub_cdrom.cfg l:/boot/grub/menu.lst
# Die noetigsten Treiber auf das Floppy-Image packen
mcopy -D o $ROOT/boot/tyndur $ROOT/modules/init $ROOT/modules/console l:/
mcopy -D o $ROOT/modules/ata $ROOT/modules/iso9660 $ROOT/modules/servmgr l:/
+mcopy -D o $ROOT/modules/ext2 $ROOT/modules/ramoverlay l:/
# Konfigurationsdatei fuer mtools wieder loeschen
rm -f $MTOOLSRC
--
1.6.0.2