Added build variable HAIKU_DONT_CLEAR_IMAGE. When set and the image does

already exist, it won't be zeroed out. The image will still be
initialized with BFS, though. Handy for installing Haiku on a partition.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22397 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-10-01 17:27:13 +00:00
parent a977fc17e3
commit f515ed5f77
3 changed files with 10 additions and 1 deletions
+4 -1
View File
@@ -11,6 +11,7 @@
# addBuildCompatibilityLibDir
# sourceDirsToCopy
# updateOnly
# dontClearImage
#
# bfsShell
# copyattr
@@ -83,7 +84,9 @@ if [ $isImage ]; then
echo
if [ ! $updateOnly ]; then
echo "Creating image ..."
dd if=/dev/zero of=$imagePath bs=1048576 count=$imageSize
if [ ! -f $imagePath -o ! "$dontClearImage" ]; then
dd if=/dev/zero of=$imagePath bs=1048576 count=$imageSize
fi
$bfsShell --initialize $imagePath Haiku
$makebootable $imagePath
fi