| |
@@ -1,10 +1,10 @@
|
| |
- # This is a basic Fedora 21 spin designed to work in OpenStack and other
|
| |
+ # This is a basic Fedora cloud spin designed to work in OpenStack and other
|
| |
# private cloud environments. It's configured with cloud-init so it will
|
| |
# take advantage of ec2-compatible metadata services for provisioning ssh
|
| |
# keys. Cloud-init creates a user account named "fedora" with passwordless
|
| |
# sudo access. The root password is empty and locked by default.
|
| |
#
|
| |
- # Note that unlike the standard F20 install, this image has /tmp on disk
|
| |
+ # Note that unlike the standard Fedora install, this image has /tmp on disk
|
| |
# rather than in tmpfs, since memory is usually at a premium.
|
| |
#
|
| |
# This kickstart file is designed to be used with ImageFactory (in Koji).
|
| |
@@ -36,20 +36,17 @@
|
| |
|
| |
firewall --disabled
|
| |
|
| |
- bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8" --extlinux
|
| |
+ bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8"
|
| |
|
| |
network --bootproto=dhcp --device=link --activate --onboot=on
|
| |
services --enabled=sshd,cloud-init,cloud-init-local,cloud-config,cloud-final
|
| |
|
| |
+ # boot partitions are irrelevant as none of that content is taken into the final docker image
|
| |
+ # We will be able to move to autopart when new pykickstart lands which adds option for noswap/noboot (fixed upstream)
|
| |
zerombr
|
| |
clearpart --all
|
| |
- #
|
| |
- # We need to disable 64bit options here or extlinux won't work.
|
| |
- # See: http://www.syslinux.org/wiki/index.php/Filesystem#ext4
|
| |
- # and
|
| |
- # https://bugzilla.redhat.com/show_bug.cgi?id=1369934
|
| |
- #
|
| |
- part / --fstype ext4 --grow --mkfsoptions="-O ^64bit"
|
| |
+ part /boot/efi --fstype="vfat" --size=50
|
| |
+ part / --fstype ext4 --grow
|
| |
|
| |
%include fedora-repo.ks
|
| |
|
| |
@@ -88,7 +85,6 @@
|
| |
#-kbd
|
| |
-uboot-tools
|
| |
-kernel
|
| |
- -grub2
|
| |
|
| |
%end
|
| |
|
| |
@@ -125,10 +121,6 @@
|
| |
# remove the user anaconda forces us to make
|
| |
userdel -r none
|
| |
|
| |
- # Kickstart specifies timeout in seconds; syslinux uses 10ths.
|
| |
- # 0 means wait forever, so instead we'll go with 1.
|
| |
- sed -i 's/^timeout 10/timeout 1/' /boot/extlinux/extlinux.conf
|
| |
-
|
| |
# setup systemd to boot to the right runlevel
|
| |
echo -n "Setting default runlevel to multiuser text mode"
|
| |
rm -f /etc/systemd/system/default.target
|
| |
@@ -242,21 +234,11 @@
|
| |
# Note that running rpm recreates the rpm db files which aren't needed/wanted
|
| |
rm -f /var/lib/rpm/__db*
|
| |
|
| |
-
|
| |
- # This is a temporary workaround for
|
| |
- # <https://bugzilla.redhat.com/show_bug.cgi?id=1147998>
|
| |
- # where sfdisk seems to be messing up the mbr.
|
| |
- # Long-term fix is to address this in anaconda directly and remove this.
|
| |
- # <https://bugzilla.redhat.com/show_bug.cgi?id=1015931>
|
| |
- dd if=/usr/share/syslinux/mbr.bin of=/dev/vda
|
| |
-
|
| |
# FIXME: is this still needed?
|
| |
echo "Fixing SELinux contexts."
|
| |
touch /var/log/cron
|
| |
touch /var/log/boot.log
|
| |
- chattr -i /boot/extlinux/ldlinux.sys
|
| |
/usr/sbin/fixfiles -R -a restore
|
| |
- chattr +i /boot/extlinux/ldlinux.sys
|
| |
|
| |
echo "Zeroing out empty space."
|
| |
# This forces the filesystem to reclaim space from deleted files
|
| |
@@ -275,5 +257,11 @@
|
| |
rm -f /etc/machine-id
|
| |
touch /etc/machine-id
|
| |
|
| |
+ # Anaconda is writing an /etc/resolv.conf from the install environment.
|
| |
+ # The system should start out with an empty file, otherwise cloud-init
|
| |
+ # will try to use this information and may error:
|
| |
+ # https://bugs.launchpad.net/cloud-init/+bug/1670052
|
| |
+ truncate -s 0 /etc/resolv.conf
|
| |
+
|
| |
%end
|
| |
|
| |
same patches that were just merged to master