diff options
author | Filipp Lepalaan <filipp@mac.com> | 2010-02-20 14:30:29 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2010-02-20 14:30:29 +0200 |
commit | 7b26b9a14c77ab0c4802ddfb5dd3d5b849f5e944 (patch) | |
tree | dc6eff9f44c3f6ce6c493239f5f5ef036fdc31eb /make_boot | |
parent | c13136914f3033afb2a373f1d0ba1e0a348b97f0 (diff) | |
download | mtk-7b26b9a14c77ab0c4802ddfb5dd3d5b849f5e944.tar.gz mtk-7b26b9a14c77ab0c4802ddfb5dd3d5b849f5e944.tar.bz2 mtk-7b26b9a14c77ab0c4802ddfb5dd3d5b849f5e944.zip |
Bug fixes, thinner image
Diffstat (limited to 'make_boot')
-rwxr-xr-x | make_boot/include.txt | 6 | ||||
-rwxr-xr-x | make_boot/makeboot.sh | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/make_boot/include.txt b/make_boot/include.txt index b932747..d7a9fc0 100755 --- a/make_boot/include.txt +++ b/make_boot/include.txt @@ -17,6 +17,7 @@ Library/Preferences System/Library/Caches System/Library/Components +System/Library/CoreServices/Finder.app System/Library/CoreServices/CoreTypes.bundle System/Library/CoreServices/KernelEventAgent.bundle System/Library/CoreServices/RemoteManagement @@ -76,7 +77,10 @@ usr/lib/samba usr/lib/sasl2 usr/bin -usr/sbin +usr/sbin/installer +usr/sbin/iostat +usr/sbin/ipconfig + usr/share/sandbox usr/share/terminfo usr/share/zoneinfo diff --git a/make_boot/makeboot.sh b/make_boot/makeboot.sh index 17648c9..cc67b52 100755 --- a/make_boot/makeboot.sh +++ b/make_boot/makeboot.sh @@ -25,14 +25,14 @@ fi SOURCE=$1 VOL_NAME=NetBoot -TMP_MOUNT_POINT_PATH=/tmp/MakeBoot +TMP_MOUNT_POINT_PATH=/tmp/NetBoot mkdir $TMP_MOUNT_POINT_PATH DMG_FILE=./boot.sparseimage echo "Creating disk image..." hdiutil create "${DMG_FILE}" -volname "${VOL_NAME}"\ -size 5G -type SPARSE -fs HFS+ -stretch 10G\ - -uid 0 -gid 80 -mode 775 -layout NONE 2>&1 + -uid 0 -gid 80 -mode 775 -layout NONE -ov 2>&1 chmod 777 "${DMG_FILE}" @@ -42,13 +42,12 @@ hdiutil attach "${DMG_FILE}" -mountpoint "${TMP_MOUNT_POINT_PATH}" echo "Preparing disk image..." mdutil -i off "${TMP_MOUNT_POINT_PATH}" mdutil -E "${TMP_MOUNT_POINT_PATH}" -defaults write "${TMP_MOUNT_POINT_PATH}"/.Spotlight-V100/_IndexPolicy Policy -int 3 - mkdir -p "${TMP_MOUNT_POINT_PATH}/Library/Caches" +defaults write "${TMP_MOUNT_POINT_PATH}"/.Spotlight-V100/_IndexPolicy Policy -int 3 echo "Cloning system (this will take a while)..." /usr/local/bin/rsync\ - --protect-args --fileflags --force-change -avhNHAXxr\ + --protect-args --fileflags --force-change -ahNHAXxr\ --files-from=./include.txt --exclude-from=./exclude.txt\ "${SOURCE}" $TMP_MOUNT_POINT_PATH @@ -65,9 +64,6 @@ find "${TMP_MOUNT_POINT_PATH}"/Applications\ "${TMP_MOUNT_POINT_PATH}"/System/Library/Frameworks\ -type d -name '*.lproj' ! -iname 'en*' -delete -#chflags hidden "${TMP_MOUNT_POINT_PATH}"/mach_kernel -#kextcache -a i386 -s -l -n -z -m /tmp/macnbi-i386/mach.macosx.mkext /System/Library/Extensions - diskutil eject "${TMP_MOUNT_POINT_PATH}" rm -r "${TMP_MOUNT_POINT_PATH}" open . |