VirtualBox

Changeset 68202 in vbox


Ignore:
Timestamp:
Jul 31, 2017 1:18:22 PM (7 years ago)
Author:
vboxsync
Message:

Unattended: Made oel6 install work.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/UnattendedTemplates/ol_ks.cfg

    r68071 r68202  
    2424
    2525# System language
    26 lang en_US
     26lang @@VBOX_INSERT_LOCALE@@
    2727
    2828# Disable the unsupported hardware popup (vmmdev?).
     
    3636
    3737# System timezone
    38 timezone  Europe/London
     38timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
    3939
    4040# Network information
    41 network  --bootproto=dhcp --device=eth0 --onboot=on
     41network  --bootproto=dhcp --device=eth0 --onboot=on --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@
    4242
    4343# System bootloader configuration
     
    5656
    5757# Reboot after installation
    58 reboot
     58# Note! Not sure exctly when the --eject option was added. Need to find out an make it optional.
     59reboot --eject
    5960
    60 ## @todo @gnome-desktop is missing in OL-6.4
    61 %packages
     61# Packages.  We currently ignore missing packages/groups here to keep things simpler.
     62%packages --ignoremissing
    6263@base
    6364@core
     65@@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
    6466@development
    65 @gnome-desktop
     67@basic-desktop
    6668@desktop-debugging
     69@desktop-platform
    6770@fonts
     71@general-desktop
    6872@graphical-admin-tools
    6973@remote-desktop-clients
    7074@x11
     75@@VBOX_COND_END@@
     76
     77# Prepare building the additions kernel module, try get what we can from the cdrom as it may be impossible
     78# to install anything from the post script:
     79kernel-headers
     80kernel-devel
     81glibc-devel
     82glibc-headers
     83gcc
     84dkms
     85make
     86bzip2
     87perl
     88
    7189%end
    7290
    73 %post --log=/root/ks-post.log
    74 ## @todo fix this.
    75 cp /cdrom/vboxpostinstall.sh /root/vboxpostinstall.sh && chmod a+x /root/vboxpostinstall.sh && /bin/bash /root/vboxpostinstall.sh
    76 eject /dev/sr0
    77 eject /dev/sr1
    78 eject /dev/sr2
    79 init 5
     91# Post install happens in a different script.
     92# Note! We mount the CDROM explictily here since the location differs between fedora 26 to rhel5
     93#       and apparently there isn't any way to be certain that anaconda didn't unmount it already.
     94%post --nochroot --log=/mnt/sysimage/root/ks-post.log
     95df -h
     96mkdir -p /tmp/vboxcdrom
     97mount /dev/cdrom /tmp/vboxcdrom
     98cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
     99chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
     100/bin/bash /mnt/sysimage/root/vboxpostinstall.sh --rhel
     101umount /tmp/vboxcdrom
    80102%end
     103
  • trunk/src/VBox/Main/UnattendedTemplates/redhat67_ks.cfg

    r68201 r68202  
    2525# System language
    2626lang @@VBOX_INSERT_LOCALE@@
     27
     28# Disable the unsupported hardware popup (vmmdev?).
     29# Note! Necessary with OL 6.4, perhaps rhel doesn't need this?
     30unsupported_hardware
    2731
    2832# SELinux configuration
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