From 81582510ab82b21a6d3d876c4a70231f37c21be8 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Fri, 5 Apr 2013 11:03:03 +0200 Subject: [PATCH] woraround sereby copy bug --- builder-targets-cb.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/builder-targets-cb.sh b/builder-targets-cb.sh index 23f8733..da78b4c 100644 --- a/builder-targets-cb.sh +++ b/builder-targets-cb.sh @@ -55,6 +55,30 @@ function create() { # move the Windows 8 dotnet 2 - 3.5 in place mv -v $INST_DIR/CLIENT_DATA/X86/win8dotnet35/sources/sxs $INST_DIR/CLIENT_DATA/Install/NET8 + + # Serby and its hacks workaround (sereby pack wants to copy a file on install but thats not possible on a readonly device in opsi + # move the combined x86/x64 to a common name + mv $INST_DIR/CLIENT_DATA/Install/NET/3.5 $INST_DIR/CLIENT_DATA/Install/NET/35 + # recreate the new dir + mkdir -p $INST_DIR/CLIENT_DATA/Install/NET/3.5 + # move the common dir to the x86 name under the new dir + mv $INST_DIR/CLIENT_DATA/Install/NET/35 $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86 + # remove the copy from the install.bat + sed -e '/^copy/d' -i $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/_Install.bat + # move the package.xml un dir up + mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/package.xml $INST_DIR/CLIENT_DATA/Install/NET/3.5 + # now link copy the x86 dir to x64 + cp -al $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86 $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64 + # do the copy for x86 (seded away erlyer) + mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/vs_setup_x86.msi $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/vs_setup.msi + mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/setup_x86.sdb $INST_DIR/CLIENT_DATA/Install/NET/3.5/x86/setup.sdb + # do the copy for x64 (seded away erlyer) + mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64/vs_setup_x64.msi $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64/vs_setup.msi + mv $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64/setup_x64.sdb $INST_DIR/CLIENT_DATA/Install/NET/3.5/x64/setup.sdb + # create a new install.bat that calls the right setup from the right dir + echo "@echo off" >> $INST_DIR/CLIENT_DATA/Install/NET/3.5/_Install.bat + echo "set arch=%1" >> $INST_DIR/CLIENT_DATA/Install/NET/3.5/_Install.bat + echo "call %~dp0\%arch%\_Install.bat" >> $INST_DIR/CLIENT_DATA/Install/NET/3.5/_Install.bat # sed everything to disabled sed -e "s!\"1\"!\"0\"!g" -e "s!maximized=\"0\"!maximized=\"1\"!" $INST_DIR/CLIENT_DATA/X86/WinPKG.xml > $INST_DIR/CLIENT_DATA/Config/WinPKG.xml