VirtualBox

Ignore:
Timestamp:
Dec 31, 2021 2:29:54 AM (3 years ago)
Author:
vboxsync
Message:

Main/UnattendedOs2Installer: Updates :-)

Location:
trunk/src/VBox/Main/UnattendedTemplates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/UnattendedTemplates/os2_cid_install.cmd

    r93097 r93109  
    2323cd s:\os2image\disk_6
    2424
    25 lvm.exe /NEWMBR:1
    26 if ERRORLEVEL 0 goto lvm_newmbr_ok
     25lvm.exe /NEWMBR:1 && goto lvm_newmbr_ok
    2726echo ** error: Writing a new MBR on disk 1 failed.
    2827goto lvm_failed
     
    3130lvm.exe "/SETNAME:DRIVE,[ D1 ],BootDrive"
    3231
    33 lvm.exe /CREATE:PARTITION,OS2Boot,1,1024,PRIMARY,BOOTABLE
    34 if ERRORLEVEL 0 goto lvm_create_partition_ok
     32lvm.exe /CREATE:PARTITION,OS2Boot,1,1024,PRIMARY,BOOTABLE && goto lvm_create_partition_ok
    3533echo ** error: Creating boot partition on disk 1 failed.
    3634goto lvm_failed
    3735:lvm_create_partition_ok
    3836
    39 lvm.exe /CREATE:VOLUME,COMPATIBILITY,BOOTOS2,C:,OS2Boot,1,OS2Boot
    40 if ERRORLEVEL 0 goto lvm_create_volume_ok
     37lvm.exe /CREATE:VOLUME,COMPATIBILITY,BOOTOS2,C:,OS2Boot,1,OS2Boot && goto lvm_create_volume_ok
    4138echo ** error: Creating boot volume on disk 1 failed.
    4239goto lvm_failed
    4340:lvm_create_volume_ok
    4441
    45 lvm.exe /SETSTARTABLE:VOLUME,OS2Boot
    46 if ERRORLEVEL 0 goto lvm_set_startable_ok
     42lvm.exe /SETSTARTABLE:VOLUME,OS2Boot && goto lvm_set_startable_ok
    4743echo ** error: Setting boot volume on disk 1 startable failed.
    4844goto lvm_failed
    4945:lvm_set_startable_ok
    5046
    51 lvm.exe "/CREATE:PARTITION,Data,1,LOGICAL,NotBootable,[ FS1 ]"
    52 if ERRORLEVEL 0 goto lvm_create_data_partition_ok
     47lvm.exe "/CREATE:PARTITION,Data,1,LOGICAL,NotBootable,[ FS1 ]" && goto lvm_create_data_partition_ok
    5348echo ** error: Creating data partition on disk 1 failed.
    5449goto lvm_failed
    5550:lvm_create_data_partition_ok
    5651
    57 lvm.exe /CREATE:VOLUME,LVM,D:,Data,1,Data
    58 if ERRORLEVEL 0 goto lvm_create_data_volume_ok
     52lvm.exe /CREATE:VOLUME,LVM,D:,Data,1,Data && goto lvm_create_data_volume_ok
    5953echo ** error: Creating data volume on disk 1 failed.
    6054goto lvm_failed
     
    8680s:
    8781
    88 FORMAT C: /FS:HPFS /V:OS2Boot < S:\VBoxCID\YES.TXT
    89 if ERRORLEVEL 0 goto format_boot_ok
     82FORMAT C: /FS:HPFS /V:OS2Boot < S:\VBoxCID\YES.TXT && goto format_boot_ok
    9083echo ** error: Formatting C: failed.
    9184PAUSE
    9285:format_boot_ok
    9386
    94 FORMAT D: /FS:JFS /V:Data < S:\VBoxCID\YES.TXT
    95 if ERRORLEVEL 0 goto format_data_ok
     87FORMAT D: /FS:JFS /V:Data < S:\VBoxCID\YES.TXT && goto format_data_ok
    9688echo ** error: Formatting D: failed.
    9789PAUSE
     
    10799copy S:\cid\dll\os2\*.*            C:\VBoxCID
    108100copy S:\os2image\disk_2\inst32.dll C:\VBoxCID
    109 copy S:\VBoxCID\*.*                C:\VBoxCID
    110 if ERRORLEVEL 0 goto copy_ok
     101copy S:\VBoxCID\*.*                C:\VBoxCID && goto copy_ok
    111102echo ** error: Copying CID stuff from CDROM to C: failed.
    112103PAUSE
     
    121112cd C:\OS2
    122113C:\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
     114REM does not exit with status 0 on success.
     115goto semaint_ok
     116PAUSE
    125117:semaint_ok
    126118REM S:\OS2IMAGE\DISK_2\CMD.EXE
     
    128120cd C:\VBoxCID
    129121C:\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
     122REM does not exit with status 0 on success.
     123goto seinst_ok
    131124PAUSE
    132125:seinst_ok
    133 S:\OS2IMAGE\DISK_2\CMD.EXE
     126REM S:\OS2IMAGE\DISK_2\CMD.EXE
    134127
    135128:step5
     
    137130echo Step 5 - Make C: bootable.
    138131echo .
    139 c:
    140 cd c:\OS2
    141 SYSINSTX C:
    142 if ERRORLEVEL 0 goto sysinstx_ok
     132C:
     133cd C:\OS2
     134SYSINSTX C: && goto sysinstx_ok
    143135pause
    144136:sysinstx_ok
    145137
    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
     138echo Copying over patched OS2LDR from A:
     139attrib -R -H -S C:\OS2LDR
     140copy C:\OS2LDR C:\OS2LDR.ORG
     141del  C:\OS2LDR
     142copy A:\OS2LDR C:\OS2LDR && goto copy_os2ldr_ok
     143pause
     144:copy_os2ldr_ok
     145attrib +R +H +S C:\OS2LDR
    153146
    154147echo Copying over final startup.cmd
    155 ren C:\STARTUP.CMD C:\STARTUP.ORG
     148if exist C:\STARTUP.CMD ren C:\STARTUP.CMD C:\STARTUP.ORG
    156149copy S:\VBoxCID\STARTUP.CMD C:\STARTUP.CMD
    157150
     
    163156echo Step 6 - Cleanup
    164157echo .
    165 echo ** skipped
     158cd C:\
     159del /N C:\*.bio
     160del /N C:\*.i13
     161del /N C:\*.snp
     162del /N C:\CONFIG.ADD
     163mkdir C:\MMTEMP 2>nul
     164del /N C:\MMTEMP\*.*
     165for %%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\*.*
     166for %%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
     167rmdir C:\MMTEMP\OS2\DRIVERS
     168rmdir C:\MMTEMP\OS2
     169rmdir C:\MMTEMP
     170copy C:\CONFIG.SYS C:\VBoxCID && del /N C:\*.SYS
     171copy C:\VBoxCID\CONFIG.SYS C:\
    166172
    167173:step7
    168174echo .
    169 echo Step 7 - Post install actions
     175echo Step 7 - Install guest additions.
     176echo .
     177@@VBOX_COND_IS_INSTALLING_ADDITIONS@@
     178mkdir C:\VBoxAdd
     179copy S:\VBoxAdditions\OS2\*.*  C:\VBoxAdd && goto ga_copy_ok
     180pause
     181:ga_copy_ok
     182echo TODO: Write script editing Config.sys for GAs
     183@@VBOX_COND_ELSE@@
     184echo Not requested. Skipping.
     185@@VBOX_COND_END@@
     186
     187:step8
     188echo .
     189echo Step 8 - Install the test execution service (TXS).
     190echo .
     191@@VBOX_COND_IS_INSTALLING_TEST_EXEC_SERVICE@@
     192mkdir C:\ValKit
     193mkdir D:\TestArea
     194copy S:\VBoxValidationKit\*.* C:\VBoxValKit && goto valkit_copy_1_ok
     195pause
     196:valkit_copy_1_ok
     197copy S:\VBoxValidationKit\os2\x86\*.* C:\VBoxValKit && goto valkit_copy_2_ok
     198pause
     199:valkit_copy_2_ok
     200@@VBOX_COND_ELSE@@
     201echo Not requested. Skipping.
     202@@VBOX_COND_END@@
     203
     204:step9
     205@@VBOX_COND_HAS_POST_INSTALL_COMMAND@@
     206echo .
     207echo Step 9 - Custom actions: "@@VBOX_INSERT_POST_INSTALL_COMMAND@@"
    170208echo .
    171209cd C:\VBoxCID
    172210C:
    173 
    174 :step8
    175 echo .
    176 echo Step 8 - Done.
     211@@VBOX_INSERT_POST_INSTALL_COMMAND@@
     212@@VBOX_COND_END@@
     213
     214
     215:done
     216echo .
     217echo Finally Done.  Now we reboot.
    177218echo .
    178219cd C:\OS2
  • trunk/src/VBox/Main/UnattendedTemplates/os2_response_files.rsp

    r93095 r93109  
    1818BREAK=OFF
    1919
    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:\;
     20REM Just to be on the safe side, all paths include disk #1 thru #6, omitting #0
     21REM as it doesn't contain much interesting.
     22LIBPATH=.;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;
     23SET 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;
     24SET 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;
    2325
    2426COUNTRY=001,COUNT437.SYS
     
    4749REM PROTSHELL=S:\OS2IMAGE\DISK_2\CMD.EXE
    4850REM 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.CMD
     51PROTSHELL=S:\OS2IMAGE\DISK_2\CMD.EXE /C S:\VBOXCID.CMD
    5052
    5153@@VBOX_SPLITTER_END[CONFIG.SYS]@@
     
    6365@@VBOX_SPLITTER_START[STARTUP.CMD]@@
    6466REM The startup file for C: for use after the successful install.
     67@@VBOX_COND_IS_INSTALLING_ADDITIONS@@
     68C:\VBoxAdd\VBoxService.exe
     69@@VBOX_COND_END@@
    6570dhcpstrt -i lan0
     71@@VBOX_COND_IS_INSTALLING_TEST_EXEC_SERVICE@@
     72C:\VBoxValKit\TestExecService.exe --scratch=D:\TestArea --cdrom=E:\ --foreground
     73pause
     74@@VBOX_COND_END@@
     75
    6676@@VBOX_SPLITTER_END[STARTUP.CMD]@@
    6777
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette