Last change
on this file since 68057 was 67881, checked in by vboxsync, 8 years ago |
UnattendedScript: Converted windows sif template to the mad libs class. Fixed template properties.
|
-
Property svn:eol-style
set to
LF
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.5 KB
|
Line | |
---|
1 | #platform=x86, AMD64, or Intel EM64T
|
---|
2 | #version=DEVEL
|
---|
3 |
|
---|
4 | # Firewall configuration
|
---|
5 | firewall --disabled
|
---|
6 |
|
---|
7 | # Install OS instead of upgrade
|
---|
8 | install
|
---|
9 |
|
---|
10 | # Use CDROM installation media
|
---|
11 | cdrom
|
---|
12 |
|
---|
13 | # Root password
|
---|
14 | rootpw --plaintext @@VBOX_INSERT_ROOT_PASSWORD_SH@@
|
---|
15 |
|
---|
16 | # System authorization information
|
---|
17 | auth --useshadow --passalgo=sha512
|
---|
18 |
|
---|
19 | # Use text mode install
|
---|
20 | text
|
---|
21 |
|
---|
22 | # System keyboard
|
---|
23 | keyboard us
|
---|
24 |
|
---|
25 | # System language
|
---|
26 | lang en_US
|
---|
27 |
|
---|
28 | # SELinux configuration
|
---|
29 | selinux --enforcing
|
---|
30 |
|
---|
31 | # Installation logging level
|
---|
32 | logging --level=info
|
---|
33 |
|
---|
34 | # System timezone
|
---|
35 | timezone Europe/London
|
---|
36 |
|
---|
37 | # Network information
|
---|
38 | network --bootproto=dhcp --device=eth0 --onboot=on
|
---|
39 |
|
---|
40 | # System bootloader configuration
|
---|
41 | bootloader --location=mbr --append="nomodeset crashkernel=auto rhgb quiet"
|
---|
42 | zerombr
|
---|
43 |
|
---|
44 | # Partition clearing information
|
---|
45 | clearpart --all --initlabel
|
---|
46 | # Disk partitioning information
|
---|
47 | part / --fstype ext4 --size 6000 --grow --asprimary
|
---|
48 | part swap --size 1024
|
---|
49 |
|
---|
50 | #Initial user
|
---|
51 | user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@
|
---|
52 |
|
---|
53 | # Reboot after installation
|
---|
54 | reboot
|
---|
55 |
|
---|
56 | %packages
|
---|
57 | @standard
|
---|
58 | @hardware-support
|
---|
59 | %end
|
---|
60 |
|
---|
61 | %post --log=/root/ks-post.log
|
---|
62 | yum -y install "kernel-devel-$(uname -r)"
|
---|
63 | yum -y install gcc
|
---|
64 |
|
---|
65 | @@VBOX_COND_IS_INSTALLING_ADDITIONS@@
|
---|
66 | mkdir -p /mnt/cdrom
|
---|
67 | mount -o ro /dev/sr2 /mnt/cdrom
|
---|
68 | echo
|
---|
69 | echo "Installing VirtualBox Guest Additions..."
|
---|
70 | bash /mnt/cdrom/VBoxLinuxAdditions.run
|
---|
71 | usermod -a -G vboxsf @@VBOX_INSERT_USER_LOGIN_SH@@
|
---|
72 | @@VBOX_COND_END@@
|
---|
73 | eject /dev/sr0
|
---|
74 | eject /dev/sr1
|
---|
75 | eject /dev/sr2
|
---|
76 | init 5
|
---|
77 | %end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.