aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam McLoughlin <hexxeh@hexxeh.net>2011-08-14 16:48:21 +0100
committerLiam McLoughlin <hexxeh@hexxeh.net>2011-08-14 16:48:21 +0100
commit330f9e967a776c1292361f4d7ebc4986e63988d4 (patch)
treea6ed9801ea1f53765c95e12a89b11b8218342ab0
parentShort tags are bad, change to a full tag (diff)
downloadgentoaster-330f9e967a776c1292361f4d7ebc4986e63988d4.tar.gz
gentoaster-330f9e967a776c1292361f4d7ebc4986e63988d4.tar.bz2
gentoaster-330f9e967a776c1292361f4d7ebc4986e63988d4.zip
Ship SYSLINUX MBR to maintain portability
-rwxr-xr-xcreate_image.sh2
-rw-r--r--res/mbr.binbin0 -> 440 bytes
2 files changed, 1 insertions, 1 deletions
diff --git a/create_image.sh b/create_image.sh
index c3ec7d1..12efa48 100755
--- a/create_image.sh
+++ b/create_image.sh
@@ -270,7 +270,7 @@ sed -i '/MAKEOPTS/ d' etc/make.conf
echo "Step 23: Installing extlinux"
extlinux --heads 255 --sectors 63 --install boot &>> ${LOG_FILE} || handle_error "Error installing extlinux"
-dd if=/usr/lib/extlinux/mbr.bin of=../${IMAGE_NAME} conv=notrunc &>> ${LOG_FILE} || handle_error "Error copying extlinux MBR"
+dd if=${TOOL_RES_PATH}/mbr.bin of=../${IMAGE_NAME} conv=notrunc &>> ${LOG_FILE} || handle_error "Error copying extlinux MBR"
cp ${TOOL_RES_PATH}/extlinux.conf boot/ || handle_error "Error copying extlinux configuration"
cd ..
cleanup_mounts
diff --git a/res/mbr.bin b/res/mbr.bin
new file mode 100644
index 0000000..8592b59
--- /dev/null
+++ b/res/mbr.bin
Binary files differ