␉mkdir -p ${1}/Core/Root/usr/sbin␊ |
␉mkdir -p ${1}/Core/Root/usr/local/bin␊ |
␉mkdir -p ${1}/Core/Root/usr/standalone/i386␊ |
␉mkdir -p ${1}/Core/Root/usr/standalone/i386/modules␊ |
␉cp -R ${1%/*}/i386/modules ${1}/Core/Root/usr/standalone/i386␊ |
␉cp -f ${1%/*}/i386/boot ${1}/Core/Root/usr/standalone/i386␊ |
␉cp -f ${1%/*}/i386/boot0 ${1}/Core/Root/usr/standalone/i386␊ |
␉cp -f ${1%/*}/i386/boot0hfs ${1}/Core/Root/usr/standalone/i386␊ |
|
␉cp -f ${1%/*}/i386/chain0 ${1}/Core/Root/usr/standalone/i386␊ |
␉fixperms "${1}/Core/Root/"␊ |
␉cp -f ${pkgroot}/fdisk440 ${1}/Core/Root/usr/sbin␊ |
␉cp -f ${1%/*}/i386/bdmesg ${1}/Core/Root/usr/sbin␊ |
#␉cp -f ${1%/*}/i386/bdmesg ${1}/Core/Root/usr/sbin␊ |
␉local coresize=$( du -hkc "${1}/Core/Root" | tail -n1 | awk {'print $1'} )␊ |
␉echo "␉[BUILD] i386 "␊ |
␉buildpackage "${1}/Core" "/" "0" "start_visible=\"false\" start_selected=\"true\"" >/dev/null 2>&1␊ |
␉buildpackage "${1}/Core" "/tmpcham" "0" "start_visible=\"false\" start_selected=\"true\"" >/dev/null 2>&1␊ |
␊ |
# build Chameleon package␊ |
␉echo "================= Chameleon ================="␊ |
|
␉␉cp -f ${pkgroot}/Scripts/EFI/* ${1}/EFI/Scripts␊ |
␉␉# ditto --arch i386 `which SetFile` ${1}/EFI/Scripts/Tools/SetFile␊ |
␉␉echo "␉[BUILD] EFI "␊ |
␉␉buildpackage "${1}/EFI" "/" "${coresize}" "start_visible=\"systemHasGPT()\" start_selected=\"false\" selected=\"exclusive(choices['Standard']) && exclusive(choices['noboot'])\"" >/dev/null 2>&1␊ |
␉␉buildpackage "${1}/EFI" "/tmpcham" "${coresize}" "start_visible=\"systemHasGPT()\" start_selected=\"false\" selected=\"exclusive(choices['Standard']) && exclusive(choices['noboot'])\"" >/dev/null 2>&1␊ |
␉# End build efi package␊ |
␊ |
␉# build reset choice package ␊ |
|
␉␉outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"␊ |
␉# End build Modules packages␊ |
␊ |
␉# build bdmesg package ␊ |
␉␉mkdir -p ${1}/Bdmesg/Root␊ |
␉␉cp -f ${1%/*}/i386/bdmesg ${1}/Bdmesg/Root␊ |
␉␉fixperms "${1}/Bdmesg/Root/"␊ |
␉␉# echo "␉[BUILD] bdmesg "␊ |
␉␉buildpackage "${1}/Bdmesg" "/usr/sbin/" "0" "start_visible=\"false\" start_selected=\"true\"" >/dev/null 2>&1␊ |
␉# End build bdmesg package ␊ |
␊ |
␉((xmlindent--))␊ |
␉outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"␊ |
# End build Chameleon package␊ |