Index: branches/blackosx/trunk/package/Scripts/Standard/postinstall =================================================================== --- branches/blackosx/trunk/package/Scripts/Standard/postinstall (revision 195) +++ branches/blackosx/trunk/package/Scripts/Standard/postinstall (revision 196) @@ -304,15 +304,16 @@ echo "*****************************************************" if [ ${disksignature} == "00000000" ]; then + # echo "Windows is not installed so let's change the active partition" + partitionactive=$( fdisk440 -d ${bootrdisk} | grep -n "*" | awk -F: '{print $1}') - echo "${partitionactive}" + echo "Current Active Partition: ${partitionactive}" - if [ -n "${partitionactive}" ]; then - echo "${bootvolume} is flagged as active" - else + if [ ${partitionactive} -ne ${bootslice} ]; then echo "${bootvolume} is not flagged as active, so let's do it." - # // If table is GPT make the first partition active (BadAxe compatibility). - #Ê// [ "${partitiontable}" = "GPT" ] && bootslice=1 + # BadAxe requires EFI partition to be flagged active. + # but it doesn't' hurt to do it for any non-windows partition. + fdisk440 -e ${bootrdisk} <<-MAKEACTIVE print flag ${bootslice} @@ -320,7 +321,11 @@ y quit MAKEACTIVE + else + echo "${bootvolume} is already flagged as active" fi +else + echo "Windows is installed so we let that remain the active partition" fi echo "-----------------------------------------------" echo "" Index: branches/blackosx/trunk/revision =================================================================== --- branches/blackosx/trunk/revision (revision 195) +++ branches/blackosx/trunk/revision (revision 196) @@ -1 +1 @@ -161:162 \ No newline at end of file +195 \ No newline at end of file