Revert "[CMAKE] Make unattended bootcd configurable via cmake"

This reverts commit cfd4ef9384.
This was way more controversial than I would have thought
This commit is contained in:
Jérôme Gardou 2020-10-26 18:11:55 +01:00
parent c3b3fcd111
commit b2cf5a4c03
3 changed files with 16 additions and 58 deletions

View file

@ -1,6 +1,5 @@
add_subdirectory(packages) add_subdirectory(packages)
add_subdirectory(bootcd)
# Common hives # Common hives
@ -62,6 +61,7 @@ add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd.ini DESTINATION root NAME_
# Unattend # Unattend
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcdregtest/unattend.inf DESTINATION reactos NO_CAB FOR regtest) add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcdregtest/unattend.inf DESTINATION reactos NO_CAB FOR regtest)
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd/unattend.inf DESTINATION reactos NO_CAB FOR bootcd)
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/livecd/unattend.inf DESTINATION reactos NO_CAB FOR livecd) add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/livecd/unattend.inf DESTINATION reactos NO_CAB FOR livecd)
# LiveCD shortcuts # LiveCD shortcuts

View file

@ -1,42 +0,0 @@
set(UNATTENDED_BOOTCD "no" CACHE STRING "Whether to build a self-installing bootcd (yes/no)")
function(add_unattended_bootcd_option _var _default _doc)
if (UNATTENDED_BOOTCD STREQUAL "yes")
set(${_var} "${_default}" CACHE STRING ${_doc})
endif()
endfunction()
add_unattended_bootcd_option(UNATTENDED_BOOTCD_DestinationDiskNumber "0"
"The Disk Number ReactOS will be installed on during bootcd unattended setup")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_DestinationPartitionNumber "1"
"The Partition Number ReactOS will be installed on during bootcd unattended setup")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_InstallationDirectory "ReactOS"
"The directory ReactOS will be installed in during bootcd unattended setup")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_MBRInstallType "2"
"MBR installation type during bootcd unattended setup: 0: skip, 1: On floppy, 2: On HDD")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_FullName "MyName"
"The user name used for unattended bootcd installation")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_OrgName ""
"The organisation name used for unattended bootcd installation (None if empty)")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_ComputerName "MYCOMPUTERNAME"
"The computer name used for unattended bootcd installation")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_AdminPassword ""
"The administrator password used for unattended bootcd installation (None if empty)")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_FormatPartition "1"
"Whether to format the partition during bootcd unattended setup. 0: Don't format, 1: Format)")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_AutoPartition "1"
"Whether to automatically create the partition during bootcd unattended setup. 0: Don't create partition, 1: Create partition")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_FsType "0"
"The filesystem used during bootcd unattended setup. 0: FAT, 1: BTRFS")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_DisableGeckoInst "no"
"Whether to disable the Gecko module installation. (yes/no)")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_LocaleID "409"
"The locale used during bootcd unattended setup. See hivesys.inf for values")
add_unattended_bootcd_option(UNATTENDED_BOOTCD_ProductOption "0"
"The product installed during bootcd unattended setup. 0: Server, 1: WorkStation")
if (UNATTENDED_BOOTCD STREQUAL "yes")
configure_file(unattend.inf.in unattend.inf @ONLY)
add_cd_file(FILE ${CMAKE_CURRENT_BINARY_DIR}/unattend.inf DESTINATION reactos NO_CAB FOR bootcd)
endif()

View file

@ -4,22 +4,22 @@ Signature = "$ReactOS$"
; Set UnattendSetupEnabled to yes in order to get unattended setup working ; Set UnattendSetupEnabled to yes in order to get unattended setup working
; yes - unattend setup enabled ; yes - unattend setup enabled
; no - unattend setup disabled ; no - unattend setup disabled
UnattendSetupEnabled = @UNATTENDED_BOOTCD@ UnattendSetupEnabled = no
; Install to \Device\Harddisk0\Partition1\ReactOS ; Install to \Device\Harddisk0\Partition1\ReactOS
DestinationDiskNumber = @UNATTENDED_BOOTCD_DestinationDiskNumber@ DestinationDiskNumber = 0
DestinationPartitionNumber = @UNATTENDED_BOOTCD_DestinationPartitionNumber@ DestinationPartitionNumber = 1
InstallationDirectory=@UNATTENDED_BOOTCD_InstallationDirectory@ InstallationDirectory=ReactOS
; MBRInstallType=0 skips MBR installation ; MBRInstallType=0 skips MBR installation
; MBRInstallType=1 install MBR on floppy ; MBRInstallType=1 install MBR on floppy
; MBRInstallType=2 install MBR on hdd ; MBRInstallType=2 install MBR on hdd
MBRInstallType=@UNATTENDED_BOOTCD_MBRInstallType@ MBRInstallType=2
FullName="@UNATTENDED_BOOTCD_FullName@" FullName="MyName"
OrgName="@UNATTENDED_BOOTCD_OrgName@" ;OrgName="MyOrg"
ComputerName="@UNATTENDED_BOOTCD_ComputerName@" ComputerName="MYCOMPUTERNAME"
AdminPassword="@UNATTENDED_BOOTCD_AdminPassword@" ;AdminPassword="MyPassword"
; TimeZone is set GMT as default ; TimeZone is set GMT as default
TimeZoneIndex=85 TimeZoneIndex=85
@ -30,33 +30,33 @@ TimeZoneIndex=85
; enable this setting to format the selected partition ; enable this setting to format the selected partition
; 1 - format enabled ; 1 - format enabled
; 0 - format disabled ; 0 - format disabled
FormatPartition=@UNATTENDED_BOOTCD_FormatPartition@ FormatPartition=1
; enable this setting to automatically create a partition ; enable this setting to automatically create a partition
; during installation ; during installation
; 1 - enabled ; 1 - enabled
; 0 - disabled ; 0 - disabled
AutoPartition = @UNATTENDED_BOOTCD_AutoPartition@ AutoPartition = 1
; choose default file system type ; choose default file system type
; 0 - FAT ; 0 - FAT
; 1 - BtrFS ; 1 - BtrFS
FsType = @UNATTENDED_BOOTCD_FsType@ FsType = 0
; enable this setting to disable Gecko install ; enable this setting to disable Gecko install
; yes - disabled ; yes - disabled
; no - enabled ; no - enabled
DisableGeckoInst = @UNATTENDED_BOOTCD_DisableGeckoInst@ DisableGeckoInst = no
; set this option to automatically ; set this option to automatically
; specify language in 2nd mode setup ; specify language in 2nd mode setup
; see hivesys.inf for available languages ; see hivesys.inf for available languages
LocaleID = @UNATTENDED_BOOTCD_LocaleID@ LocaleID = 409
; set product option ; set product option
; 0: ReactOS Server ; 0: ReactOS Server
; 1: ReactOS Workstation ; 1: ReactOS Workstation
ProductOption = @UNATTENDED_BOOTCD_ProductOption@ ProductOption = 0
; enable this section to automatically launch programs ; enable this section to automatically launch programs
; after 3rd boot ; after 3rd boot