Updated makehaikufloppy script, based on a patch by Rob Judd. I have no idea
if this still works even. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30180 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+14
-14
@@ -53,27 +53,27 @@ if [ $CD = 1 ] ; then
|
|||||||
|
|
||||||
echo "Creating boot image..."
|
echo "Creating boot image..."
|
||||||
|
|
||||||
mkdir -p /tmp/beos/system
|
mkdir -p /tmp/system
|
||||||
cp $BASE/beos/system/kernel_x86 /tmp/beos/system/
|
cp $BASE/system/kernel_x86 /tmp/system/
|
||||||
oldCWD=$(pwd)
|
oldCWD=$(pwd)
|
||||||
|
|
||||||
cd /tmp
|
cd /tmp
|
||||||
tar chf /tmp/boot.tar beos/system/kernel_x86
|
tar chf /tmp/boot.tar system/kernel_x86
|
||||||
rm -r /tmp/beos
|
rm -r /tmp/system
|
||||||
|
|
||||||
cd $oldCWD
|
cd $oldCWD
|
||||||
cd $BASE
|
cd $BASE
|
||||||
pwd
|
pwd
|
||||||
tar rvhf /tmp/boot.tar \
|
tar rvhf /tmp/boot.tar \
|
||||||
beos/system/add-ons/kernel/busses/ide \
|
system/add-ons/kernel/busses/ide \
|
||||||
beos/system/add-ons/kernel/bus_managers \
|
system/add-ons/kernel/bus_managers \
|
||||||
beos/system/add-ons/kernel/file_systems/bfs \
|
system/add-ons/kernel/file_systems/bfs \
|
||||||
beos/system/add-ons/kernel/generic \
|
system/add-ons/kernel/generic \
|
||||||
beos/system/add-ons/kernel/partitioning_systems \
|
system/add-ons/kernel/partitioning_systems \
|
||||||
beos/system/add-ons/kernel/drivers/bin/scsi* \
|
system/add-ons/kernel/drivers/disk/scsi/scsi* \
|
||||||
beos/system/add-ons/kernel/file_systems/bfs \
|
system/add-ons/kernel/file_systems/bfs \
|
||||||
> /dev/null
|
> /dev/null
|
||||||
# beos/system/add-ons/kernel/boot \
|
# system/add-ons/kernel/boot \
|
||||||
gzip -c /tmp/boot.tar > /tmp/boot.tgz
|
gzip -c /tmp/boot.tar > /tmp/boot.tgz
|
||||||
rm /tmp/boot.tar
|
rm /tmp/boot.tar
|
||||||
cd $oldCWD
|
cd $oldCWD
|
||||||
@@ -87,7 +87,7 @@ if [ $CD = 1 ] ; then
|
|||||||
echo "Error creating temporary boot image"
|
echo "Error creating temporary boot image"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
dd if=$BASE/beos/system/zbeos of=/tmp/boot.img conv=notrunc
|
dd if=$BASE/system/haiku_loader of=/tmp/boot.img conv=notrunc
|
||||||
dd if=/tmp/boot.tgz of=/tmp/boot.img bs=192k seek=1 conv=notrunc
|
dd if=/tmp/boot.tgz of=/tmp/boot.img bs=192k seek=1 conv=notrunc
|
||||||
|
|
||||||
echo "Writing boot image to "$IMAGE
|
echo "Writing boot image to "$IMAGE
|
||||||
@@ -106,7 +106,7 @@ else
|
|||||||
# non-CD mode (only writes the bare boot loader)
|
# non-CD mode (only writes the bare boot loader)
|
||||||
|
|
||||||
echo "Writing boot loader..."
|
echo "Writing boot loader..."
|
||||||
dd if=$BASE/beos/system/zbeos of=$IMAGE bs=18k
|
dd if=$BASE/system/haiku_loader of=$IMAGE bs=18k
|
||||||
if [ $? != 0 ] ; then
|
if [ $? != 0 ] ; then
|
||||||
echo "Error creating boot floppy"
|
echo "Error creating boot floppy"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user