# This script can make a customized bootable image of Windows PE.
#
-# Copyright (C) 2012 Eric Biggers
+# Copyright (C) 2012, 2013 Eric Biggers
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
script_name="$(basename $0)"
PREFIX_REG="::"
-WIMLIB_VERSION=1.2.3
+WIMLIB_VERSION=1.3.0
calc_columns () {
STAT_COL=80
-O, --overlay=DIR Adds all the files in DIR to the Windows PE image.
-t, --tmp-dir=DIR Use DIR as the temporary base of the ISO filesystem.
Defaults to making one using "mktemp -d".
- -a, --arch=ARCH Use ARCH version (x86 or amd64)
- Defaults: x86
+ -a, --arch=ARCH Use the Windows PE version from the WAIK that has
+ the CPU architecture ARCH. Possible values:
+ "x86" or "amd64". Default is "x86".
-h, --help Display this information.
-v, --version Show version information.
if [ "$2" == "x86" ]; then
arch="X86"
arch_id="1"
-
+ # Need to test Itanium images before making it an
+ # option. Note: syslinux is x86 only so can't be used
+ # for the Itanium disk image.
+ #elif [ "$2" == "ia64" ]; then
+ #arch="IA64"
+ #arch_id="2"
elif [ "$2" == "amd64" ]; then
arch="AMD64"
arch_id="3"
-
else
echo "ERROR: $2 is not a valid arch (x86/amd64)"
exit 1
stat_busy "Making ISO image \"$image\""
- mkisofs -sysid "" -A "" -V "Microsoft Windows PE (x86)" -d -N \
+ mkisofs -sysid "" -A "" -V "Microsoft Windows PE ($arch)" -d -N \
-b etfsboot.com -no-emul-boot -c boot.cat -hide etfsboot.com \
-hide boot.cat -quiet -o "$image" "$tmp_dir" || stat_fail