Revision 61e43304

b/snf-image-helper/Makefile.am
8 8
dist_doc_DATA = COPYING AUTHORS ChangeLog
9 9
dist_bin_SCRIPTS = snf-image-helper
10 10
dist_scripts_SCRIPTS= snf-passtohash.py
11
dist_common_DATA = common.sh
11
dist_common_DATA = common.sh unattend.xml
12 12

  
13 13
edit = sed \
14 14
	-e 's|@commondir[@]|$(commondir)|g' \
b/snf-image-helper/tasks/40InstallUnattend.in
11 11
. @commondir@/common.sh
12 12

  
13 13
if [ -z "$SNF_IMAGE_TARGET" ]; then
14
	log_error "Target dir: \`$SNF_IMAGE_TARGET' is missing"	
14
    log_error "Target dir: \`$SNF_IMAGE_TARGET' is missing"	
15 15
fi
16 16

  
17 17
if [ "$SNF_IMAGE_TYPE" != "ntfsdump" ]; then
18
	exit 0
18
    exit 0
19 19
fi
20 20

  
21
if [ -e /usr/share/snf-image/unattend.xml ]; then
22
	cat /usr/share/snf-image/unattend.xml > $SNF_IMAGE_TARGET/Unattend.xml
21
if [ -f @commondir@/unattend.xml ]; then
22
    cat @commondir@/unattend.xml > $SNF_IMAGE_TARGET/Unattend.xml
23
else
24
    log_error "File \`@commondir@/unattend.xml' is missing."
23 25
fi
24 26

  
25 27
exit 0
b/snf-image-helper/unattend.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<unattend xmlns="urn:schemas-microsoft-com:unattend">
3
    <settings pass="specialize">
4
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5
            <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
6
            <TimeZone>GTB Standard Time</TimeZone>
7
            <ComputerName>*</ComputerName>
8
            <CopyProfile>true</CopyProfile>
9
            <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
10
        </component>
11
        <component name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
12
            <DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>
13
        </component>
14
        <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
15
            <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
16
        </component>
17
        <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
18
            <RunSynchronous>
19
                <RunSynchronousCommand wcm:action="add">
20
                    <Description>Extend the filesystem</Description>
21
                    <Order>1</Order>
22
                    <Path>diskpart.exe /s C:\Windows\SnfScripts\ExtendFilesystem</Path>
23
                </RunSynchronousCommand>
24
            </RunSynchronous>
25
        </component>
26
    </settings>
27
    <settings pass="oobeSystem">
28
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
29
            <InputLocale>en-US</InputLocale>
30
            <SystemLocale>en-US</SystemLocale>
31
            <UILanguage>en-US</UILanguage>
32
            <UILanguageFallback>en-US</UILanguageFallback>
33
            <UserLocale>el-GR</UserLocale>
34
        </component>
35
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
36
            <Display>
37
                <ColorDepth>24</ColorDepth>
38
                <HorizontalResolution>1024</HorizontalResolution>
39
                <VerticalResolution>768</VerticalResolution>
40
            </Display>
41
            <OOBE>
42
                <HideEULAPage>true</HideEULAPage>
43
            </OOBE>
44
            <UserAccounts>
45
                <AdministratorPassword>
46
                    <Value>Admin1</Value>
47
                    <PlainText>true</PlainText>
48
                </AdministratorPassword>
49
            </UserAccounts>
50
        </component>
51
    </settings>
52
    <cpi:offlineImage cpi:source="catalog:d:/sources/install_windows server 2008 r2 serverstandard.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
53
</unattend>

Also available in: Unified diff