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 @@VBOX_INSERT_LOCALE@@
|
---|
27 |
|
---|
28 | # SELinux configuration
|
---|
29 | selinux --enforcing
|
---|
30 |
|
---|
31 | # Installation logging level
|
---|
32 | logging --level=info
|
---|
33 |
|
---|
34 | # System timezone
|
---|
35 | timezone --utc @@VBOX_INSERT_TIME_ZONE_UX@@
|
---|
36 |
|
---|
37 | # Network information
|
---|
38 | network --bootproto=dhcp --device=eth0 --onboot=on --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@
|
---|
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 |
|
---|
47 | # Disk partitioning information
|
---|
48 | part / --fstype ext4 --size 6000 --grow --asprimary
|
---|
49 | part swap --size 1024
|
---|
50 |
|
---|
51 | #Initial user
|
---|
52 | user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@
|
---|
53 |
|
---|
54 | # Reboot after installation
|
---|
55 | # Note! the --eject option requires Fedora 6 or later. Doesn't seem to work tough.
|
---|
56 | # Note! doesn't really work. Maybe related to https://bugzilla.redhat.com/show_bug.cgi?id=810553 ??
|
---|
57 | reboot --eject
|
---|
58 |
|
---|
59 | # Packages. We currently ignore missing packages/groups here to keep things simpler.
|
---|
60 | %packages --ignoremissing
|
---|
61 | @@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
|
---|
62 | @standard
|
---|
63 | @hardware-support
|
---|
64 | @@VBOX_COND_END@@@@VBOX_COND_IS_MINIMAL_INSTALLATION@@
|
---|
65 | @core
|
---|
66 | @@VBOX_COND_END@@
|
---|
67 |
|
---|
68 | # Prepare building the additions kernel module, try get what we can from the cdrom:
|
---|
69 | kernel-headers
|
---|
70 | kernel-devel
|
---|
71 | glibc-devel
|
---|
72 | glibc-headers
|
---|
73 | gcc
|
---|
74 | dkms
|
---|
75 | make
|
---|
76 | bzip2
|
---|
77 | perl
|
---|
78 |
|
---|
79 | %end
|
---|
80 |
|
---|
81 | # Post install happens in a different script.
|
---|
82 | %post --nochroot --log=/mnt/sysimage/root/ks-post.log
|
---|
83 | cp /run/install/repo/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
|
---|
84 | chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
|
---|
85 | /bin/bash /mnt/sysimage/root/vboxpostinstall.sh --fedora
|
---|
86 |
|
---|
87 | # eject /dev/sr0 - this causes reboot trouble with fedora 26, and is documented to no be a good idea...
|
---|
88 | # init 5
|
---|
89 |
|
---|
90 | %end
|
---|
91 |
|
---|