Changeset 71018 in vbox
- Timestamp:
- Feb 14, 2018 6:42:52 PM (7 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/Config.kmk
r71011 r71018 63 63 fedora_ks.cfg \ 64 64 ol_ks.cfg \ 65 rhel3_ks.cfg \ 66 rhel4_ks.cfg \ 67 rhel5_ks.cfg \ 65 68 redhat67_ks.cfg \ 66 rhel5_ks.cfg \67 rhel4_ks.cfg \68 69 win_nt5_unattended.sif \ 69 70 win_nt6_unattended.xml \ -
trunk/src/VBox/Main/UnattendedTemplates/Makefile.kmk
r71011 r71018 29 29 debian_preseed.cfg \ 30 30 ubuntu_preseed.cfg \ 31 rhel3_ks.cfg \ 32 rhel4_ks.cfg \ 33 rhel5_ks.cfg \ 31 34 redhat67_ks.cfg \ 32 rhel5_ks.cfg \33 rhel4_ks.cfg \34 35 ol_ks.cfg \ 35 36 fedora_ks.cfg \ -
trunk/src/VBox/Main/UnattendedTemplates/rhel3_ks.cfg
r71011 r71018 1 # Template for RHEL5 and derivatives. 2 #platform=x86, AMD64, or Intel EM64T 3 #version=DEVEL 1 # 2 # Template for RHEL3 and derivatives. 3 # 4 # Note! RHEL3 kickstart typically just hangs if it finds something it doesn't like. 5 # So, all changes to this file must be tested! 6 # 7 # N.B! AHCI is not supported by RHEL3 8 # 9 10 # Use text mode install 11 text 12 13 # Install OS instead of upgrade 14 install 15 16 # System language 17 lang @@VBOX_INSERT_LOCALE@@.UTF-8 18 19 # rhel4+rhel3 needs: 20 langsupport --default @@VBOX_INSERT_LOCALE@@.UTF-8 @@VBOX_INSERT_LOCALE@@.UTF-8 21 22 # Use CDROM installation media 23 cdrom 24 25 # System authorization information (rhel5: no --passalgo=sha512) 26 #auth --useshadow 27 authconfig --enableshadow --enablemd5 28 29 # Root password (rhel5 not --plaintext groks) 30 rootpw @@VBOX_INSERT_ROOT_PASSWORD_SH@@ 31 32 # Network information 33 # rhel3: doesn't like --onboot=on. 34 network --bootproto=dhcp --device=eth0 --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@ 4 35 5 36 # Firewall configuration 6 37 firewall --disabled 7 38 8 # Install OS instead of upgrade9 install10 11 # Use CDROM installation media12 cdrom13 14 # Root password (rhel5 not --plaintext groks)15 rootpw @@VBOX_INSERT_ROOT_PASSWORD_SH@@16 17 # System authorization information (rhel5: no --passalgo=sha512)18 auth --useshadow19 20 # Use text mode install21 text22 23 39 # System keyboard 24 40 keyboard us 25 41 26 # System language 27 lang @@VBOX_INSERT_LOCALE@@ 28 # rhel4 needs: 29 langsupport --default=@@VBOX_INSERT_LOCALE@@.UTF-8 @@VBOX_INSERT_LOCALE@@.UTF-8 30 42 # rhel3 wants mouse config. 43 mouse genericwheelps/2 --device psaux 31 44 32 45 # SELinux configuration 33 selinux --enforcing 46 # rhel3: disable selinux 47 # selinux --enforcing 34 48 35 49 # Installation logging level … … 38 52 # System timezone 39 53 timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@ 40 41 # Network information42 network --bootproto=dhcp --device=eth0 --onboot=on --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@43 54 44 55 # System bootloader configuration … … 62 73 # Packages. We currently ignore missing packages/groups here to keep things simpler. 63 74 %packages --ignoremissing 75 grub 76 kernel 64 77 @ base 65 78 @ core … … 84 97 85 98 # Prepare building the additions kernel module, try get what we can from the cdrom as it may be impossible 86 # to install anything from the post script: 99 # to install anything from the post script (rhel3 seems to need kernel-sources): 100 kernel-source 87 101 kernel-headers 88 102 kernel-devel … … 110 124 # rhel5: There is not /bin/bash, so use /bin/sh 111 125 # rhel5: There is no /dev/cdrom, so try use /dev/hdc and /dev/sdb. 112 %post --nochroot --log=/mnt/sysimage/root/ks-post.log 113 df -h 1>&2 126 # rhel3: no --log option 127 %post --nochroot 128 df -h 114 129 cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh 115 130 chmod a+x /mnt/sysimage/root/vboxpostinstall.sh -
trunk/src/VBox/Main/include/UnattendedInstaller.h
r71011 r71018 528 528 529 529 /** 530 * RHEL 5installer (same as RHEL 6 & 7, except for the kickstart template).530 * RHEL 4 installer (same as RHEL 6 & 7, except for the kickstart template). 531 531 */ 532 532 class UnattendedRhel4Installer : public UnattendedRhel6And7Installer … … 535 535 UnattendedRhel4Installer(Unattended *pParent) : UnattendedRhel6And7Installer(pParent, "rhel4_ks.cfg") {} 536 536 ~UnattendedRhel4Installer() {} 537 }; 538 539 540 /** 541 * RHEL 3 installer (same as RHEL 6 & 7, except for the kickstart template). 542 */ 543 class UnattendedRhel3Installer : public UnattendedRhel6And7Installer 544 { 545 public: 546 UnattendedRhel3Installer(Unattended *pParent) : UnattendedRhel6And7Installer(pParent, "rhel3_ks.cfg") {} 547 ~UnattendedRhel3Installer() {} 537 548 }; 538 549 -
trunk/src/VBox/Main/src-server/UnattendedInstaller.cpp
r71011 r71018 81 81 else if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "4") >= 0) 82 82 pUinstaller = new UnattendedRhel4Installer(pParent); 83 else if (RTStrVersionCompare(strDetectedOSVersion.c_str(), "3") >= 0) 84 pUinstaller = new UnattendedRhel3Installer(pParent); 83 85 else 84 86 pUinstaller = new UnattendedRhel6And7Installer(pParent);
Note:
See TracChangeset
for help on using the changeset viewer.