Changeset 93109 in vbox for trunk/src/VBox/Main/UnattendedTemplates
- Timestamp:
- Dec 31, 2021 2:29:54 AM (3 years ago)
- Location:
- trunk/src/VBox/Main/UnattendedTemplates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/UnattendedTemplates/os2_cid_install.cmd
r93097 r93109 23 23 cd s:\os2image\disk_6 24 24 25 lvm.exe /NEWMBR:1 26 if ERRORLEVEL 0 goto lvm_newmbr_ok 25 lvm.exe /NEWMBR:1 && goto lvm_newmbr_ok 27 26 echo ** error: Writing a new MBR on disk 1 failed. 28 27 goto lvm_failed … … 31 30 lvm.exe "/SETNAME:DRIVE,[ D1 ],BootDrive" 32 31 33 lvm.exe /CREATE:PARTITION,OS2Boot,1,1024,PRIMARY,BOOTABLE 34 if ERRORLEVEL 0 goto lvm_create_partition_ok 32 lvm.exe /CREATE:PARTITION,OS2Boot,1,1024,PRIMARY,BOOTABLE && goto lvm_create_partition_ok 35 33 echo ** error: Creating boot partition on disk 1 failed. 36 34 goto lvm_failed 37 35 :lvm_create_partition_ok 38 36 39 lvm.exe /CREATE:VOLUME,COMPATIBILITY,BOOTOS2,C:,OS2Boot,1,OS2Boot 40 if ERRORLEVEL 0 goto lvm_create_volume_ok 37 lvm.exe /CREATE:VOLUME,COMPATIBILITY,BOOTOS2,C:,OS2Boot,1,OS2Boot && goto lvm_create_volume_ok 41 38 echo ** error: Creating boot volume on disk 1 failed. 42 39 goto lvm_failed 43 40 :lvm_create_volume_ok 44 41 45 lvm.exe /SETSTARTABLE:VOLUME,OS2Boot 46 if ERRORLEVEL 0 goto lvm_set_startable_ok 42 lvm.exe /SETSTARTABLE:VOLUME,OS2Boot && goto lvm_set_startable_ok 47 43 echo ** error: Setting boot volume on disk 1 startable failed. 48 44 goto lvm_failed 49 45 :lvm_set_startable_ok 50 46 51 lvm.exe "/CREATE:PARTITION,Data,1,LOGICAL,NotBootable,[ FS1 ]" 52 if ERRORLEVEL 0 goto lvm_create_data_partition_ok 47 lvm.exe "/CREATE:PARTITION,Data,1,LOGICAL,NotBootable,[ FS1 ]" && goto lvm_create_data_partition_ok 53 48 echo ** error: Creating data partition on disk 1 failed. 54 49 goto lvm_failed 55 50 :lvm_create_data_partition_ok 56 51 57 lvm.exe /CREATE:VOLUME,LVM,D:,Data,1,Data 58 if ERRORLEVEL 0 goto lvm_create_data_volume_ok 52 lvm.exe /CREATE:VOLUME,LVM,D:,Data,1,Data && goto lvm_create_data_volume_ok 59 53 echo ** error: Creating data volume on disk 1 failed. 60 54 goto lvm_failed … … 86 80 s: 87 81 88 FORMAT C: /FS:HPFS /V:OS2Boot < S:\VBoxCID\YES.TXT 89 if ERRORLEVEL 0 goto format_boot_ok 82 FORMAT C: /FS:HPFS /V:OS2Boot < S:\VBoxCID\YES.TXT && goto format_boot_ok 90 83 echo ** error: Formatting C: failed. 91 84 PAUSE 92 85 :format_boot_ok 93 86 94 FORMAT D: /FS:JFS /V:Data < S:\VBoxCID\YES.TXT 95 if ERRORLEVEL 0 goto format_data_ok 87 FORMAT D: /FS:JFS /V:Data < S:\VBoxCID\YES.TXT && goto format_data_ok 96 88 echo ** error: Formatting D: failed. 97 89 PAUSE … … 107 99 copy S:\cid\dll\os2\*.* C:\VBoxCID 108 100 copy S:\os2image\disk_2\inst32.dll C:\VBoxCID 109 copy S:\VBoxCID\*.* C:\VBoxCID 110 if ERRORLEVEL 0 goto copy_ok 101 copy S:\VBoxCID\*.* C:\VBoxCID && goto copy_ok 111 102 echo ** error: Copying CID stuff from CDROM to C: failed. 112 103 PAUSE … … 121 112 cd C:\OS2 122 113 C:\VBoxCID\SEMAINT.EXE /S:S:\os2image /B:C: /L1:C:\VBoxCID\Maint.log /T:C:\OS2 123 REM if ERRORLEVEL 0 goto semaint_ok - doesn't return 0 on success? 124 REM PAUSE 114 REM does not exit with status 0 on success. 115 goto semaint_ok 116 PAUSE 125 117 :semaint_ok 126 118 REM S:\OS2IMAGE\DISK_2\CMD.EXE … … 128 120 cd C:\VBoxCID 129 121 C:\VBoxCID\SEINST.EXE /S:S:\os2image /B:C: /L1:C:\VBoxCID\CIDInst.log /R:C:\VBoxCID\OS2.RSP /T:A:\ 130 if ERRORLEVEL 0 goto seinst_ok 122 REM does not exit with status 0 on success. 123 goto seinst_ok 131 124 PAUSE 132 125 :seinst_ok 133 S:\OS2IMAGE\DISK_2\CMD.EXE126 REM S:\OS2IMAGE\DISK_2\CMD.EXE 134 127 135 128 :step5 … … 137 130 echo Step 5 - Make C: bootable. 138 131 echo . 139 c: 140 cd c:\OS2 141 SYSINSTX C: 142 if ERRORLEVEL 0 goto sysinstx_ok 132 C: 133 cd C:\OS2 134 SYSINSTX C: && goto sysinstx_ok 143 135 pause 144 136 :sysinstx_ok 145 137 146 echo Copying over patched OS2BOOT from A: 147 cd c:\ 148 c: 149 attrib -R -H -S OS2BOOT 150 copy OS2BOOT OS2BOOT.ORG 151 copy a:\OS2BOOT C:\OS2BOOT 152 attrib +R +H +S OS2BOOT 138 echo Copying over patched OS2LDR from A: 139 attrib -R -H -S C:\OS2LDR 140 copy C:\OS2LDR C:\OS2LDR.ORG 141 del C:\OS2LDR 142 copy A:\OS2LDR C:\OS2LDR && goto copy_os2ldr_ok 143 pause 144 :copy_os2ldr_ok 145 attrib +R +H +S C:\OS2LDR 153 146 154 147 echo Copying over final startup.cmd 155 ren C:\STARTUP.CMD C:\STARTUP.ORG148 if exist C:\STARTUP.CMD ren C:\STARTUP.CMD C:\STARTUP.ORG 156 149 copy S:\VBoxCID\STARTUP.CMD C:\STARTUP.CMD 157 150 … … 163 156 echo Step 6 - Cleanup 164 157 echo . 165 echo ** skipped 158 cd C:\ 159 del /N C:\*.bio 160 del /N C:\*.i13 161 del /N C:\*.snp 162 del /N C:\CONFIG.ADD 163 mkdir C:\MMTEMP 2>nul 164 del /N C:\MMTEMP\*.* 165 for %%i in (acpadd2 azt16dd azt32dd csbsaud es1688dd es1788dd es1868dd es1888dd es688dd jazzdd mvprobdd mvprodd sb16d2 sbawed2 sbd2 sbp2d2 sbpd2) do del /N C:\MMTEMP\OS2\DRIVERS\%%i\*.* 166 for %%i in (acpadd2 azt16dd azt32dd csbsaud es1688dd es1788dd es1868dd es1888dd es688dd jazzdd mvprobdd mvprodd sb16d2 sbawed2 sbd2 sbp2d2 sbpd2) do rmdir C:\MMTEMP\OS2\DRIVERS\%%i 167 rmdir C:\MMTEMP\OS2\DRIVERS 168 rmdir C:\MMTEMP\OS2 169 rmdir C:\MMTEMP 170 copy C:\CONFIG.SYS C:\VBoxCID && del /N C:\*.SYS 171 copy C:\VBoxCID\CONFIG.SYS C:\ 166 172 167 173 :step7 168 174 echo . 169 echo Step 7 - Post install actions 175 echo Step 7 - Install guest additions. 176 echo . 177 @@VBOX_COND_IS_INSTALLING_ADDITIONS@@ 178 mkdir C:\VBoxAdd 179 copy S:\VBoxAdditions\OS2\*.* C:\VBoxAdd && goto ga_copy_ok 180 pause 181 :ga_copy_ok 182 echo TODO: Write script editing Config.sys for GAs 183 @@VBOX_COND_ELSE@@ 184 echo Not requested. Skipping. 185 @@VBOX_COND_END@@ 186 187 :step8 188 echo . 189 echo Step 8 - Install the test execution service (TXS). 190 echo . 191 @@VBOX_COND_IS_INSTALLING_TEST_EXEC_SERVICE@@ 192 mkdir C:\ValKit 193 mkdir D:\TestArea 194 copy S:\VBoxValidationKit\*.* C:\VBoxValKit && goto valkit_copy_1_ok 195 pause 196 :valkit_copy_1_ok 197 copy S:\VBoxValidationKit\os2\x86\*.* C:\VBoxValKit && goto valkit_copy_2_ok 198 pause 199 :valkit_copy_2_ok 200 @@VBOX_COND_ELSE@@ 201 echo Not requested. Skipping. 202 @@VBOX_COND_END@@ 203 204 :step9 205 @@VBOX_COND_HAS_POST_INSTALL_COMMAND@@ 206 echo . 207 echo Step 9 - Custom actions: "@@VBOX_INSERT_POST_INSTALL_COMMAND@@" 170 208 echo . 171 209 cd C:\VBoxCID 172 210 C: 173 174 :step8 175 echo . 176 echo Step 8 - Done. 211 @@VBOX_INSERT_POST_INSTALL_COMMAND@@ 212 @@VBOX_COND_END@@ 213 214 215 :done 216 echo . 217 echo Finally Done. Now we reboot. 177 218 echo . 178 219 cd C:\OS2 -
trunk/src/VBox/Main/UnattendedTemplates/os2_response_files.rsp
r93095 r93109 18 18 BREAK=OFF 19 19 20 LIBPATH=.;A:\;S:\OS2IMAGE\DISK_1;S:\OS2IMAGE\DISK_2;S:\OS2IMAGE\DISK_3;S:\OS2IMAGE\DISK_4;S:\OS2IMAGE\DISK_5;S:\OS2IMAGE\DISK_6;S:\OS2IMAGE\DISK_7 21 SET PATH=.;S:\OS2IMAGE\DISK_1;S:\OS2IMAGE\DISK_2;S:\OS2IMAGE\DISK_3;S:\OS2IMAGE\DISK_4;S:\OS2IMAGE\DISK_5;S:\OS2IMAGE\DISK_6;S:\OS2IMAGE\DISK_7 22 SET DPATH=.;A:\; 20 REM Just to be on the safe side, all paths include disk #1 thru #6, omitting #0 21 REM as it doesn't contain much interesting. 22 LIBPATH=.;A:\;S:\OS2IMAGE\DISK_1;S:\OS2IMAGE\DISK_2;S:\OS2IMAGE\DISK_3;S:\OS2IMAGE\DISK_4;S:\OS2IMAGE\DISK_5;S:\OS2IMAGE\DISK_6;S:\OS2IMAGE\DISK_7; 23 SET PATH=.;S:\OS2IMAGE\DISK_1;S:\OS2IMAGE\DISK_2;S:\OS2IMAGE\DISK_3;S:\OS2IMAGE\DISK_4;S:\OS2IMAGE\DISK_5;S:\OS2IMAGE\DISK_6;S:\OS2IMAGE\DISK_7; 24 SET DPATH=.;A:\;S:\OS2IMAGE\DISK_1;S:\OS2IMAGE\DISK_2;S:\OS2IMAGE\DISK_3;S:\OS2IMAGE\DISK_4;S:\OS2IMAGE\DISK_5;S:\OS2IMAGE\DISK_6;S:\OS2IMAGE\DISK_7; 23 25 24 26 COUNTRY=001,COUNT437.SYS … … 47 49 REM PROTSHELL=S:\OS2IMAGE\DISK_2\CMD.EXE 48 50 REM Run the os2_cid_install.cmd file (renamed to VBOXCID.CMD on the ISO). 49 PROTSHELL=S:\OS2IMAGE\DISK_2\CMD.EXE /C S:\VBOXCID \VBOXCID.CMD51 PROTSHELL=S:\OS2IMAGE\DISK_2\CMD.EXE /C S:\VBOXCID.CMD 50 52 51 53 @@VBOX_SPLITTER_END[CONFIG.SYS]@@ … … 63 65 @@VBOX_SPLITTER_START[STARTUP.CMD]@@ 64 66 REM The startup file for C: for use after the successful install. 67 @@VBOX_COND_IS_INSTALLING_ADDITIONS@@ 68 C:\VBoxAdd\VBoxService.exe 69 @@VBOX_COND_END@@ 65 70 dhcpstrt -i lan0 71 @@VBOX_COND_IS_INSTALLING_TEST_EXEC_SERVICE@@ 72 C:\VBoxValKit\TestExecService.exe --scratch=D:\TestArea --cdrom=E:\ --foreground 73 pause 74 @@VBOX_COND_END@@ 75 66 76 @@VBOX_SPLITTER_END[STARTUP.CMD]@@ 67 77
Note:
See TracChangeset
for help on using the changeset viewer.