#! /bin/bash ### BEGIN TASK INFO # Provides: ResizeMounted # RunBefore: UmountImage # RunAfter: MountImage # Short-Description: Resize filesystem to use all the available space ### END TAST INFO set -e . @commondir@/common.sh if [ ! -d "$SNF_IMAGE_TARGET" ]; then log_error "Target directory \`$SNF_IMAGE_TARGET' is missing" fi if [ "$SNF_IMAGE_TYPE" = "ntfsdump" ]; then # Write a diskpart script to %SystemDrive%\Windows\SnfScripts. Sysprep will # try to execute this script during the specialize pass. mkdir -p "$SNF_IMAGE_TARGET/Windows/SnfScripts" cat > "$SNF_IMAGE_TARGET/Windows/SnfScripts/ExtendFilesystem" <