From 7b26b9a14c77ab0c4802ddfb5dd3d5b849f5e944 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sat, 20 Feb 2010 14:30:29 +0200 Subject: Bug fixes, thinner image --- make_boot/include.txt | 6 +++++- make_boot/makeboot.sh | 12 ++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'make_boot') 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 . -- cgit v1.2.3