Compare commits

...

23 Commits
main ... f27

Author SHA1 Message Date
Dusty Mabe
aaec0f8129
atomic: switch to build from updates ref
We build from the updates ref and set the system to upgrade from
the prod ref.
2017-11-22 16:16:09 -05:00
Peter Robinson
7b26fe5163 Merge #313 The enp1s0 interface is a left over from the imagefactory install, clean this up in post install 2017-11-10 15:02:18 +00:00
Mohan Boddu
6108ac78ef Merge #309 Scientific: Comment out emacs + spyder 2017-11-03 18:27:40 +00:00
Peter Robinson
51abf8dcd5 The enp1s0 interface is a left over from the imagefactory install, clean this up in post install 2017-11-03 18:24:21 +00:00
Stephen Gallagher
35240067e0
(F27) Drop --noboot from container image creation
When building Fedora Server base images (such as when building F27
Modular Server), the --noboot option results in the container image
attempting to mount /boot with XFS like the rest of the system.
This results in the image-creation failing.

Since the partitions don't matter in the end (the files are tarred
up and shipped that way), we'll skip this optimization.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2017-10-31 07:25:40 -04:00
Amit Saha
850a7dffa9 Scientific: Comment out emacs + spyder 2017-10-30 14:59:34 +11:00
Christian Dersch
a34e9933c4 astronomy: removed python3-healpy (not available ob i686, pulled in as a weak dep of python3-reproject on x86_64) 2017-10-16 15:00:47 +02:00
Sinny Kumari
2d460892ea Include console=ttyAMA0 and console=hvc0 in Atomic kickstart
While booting Atomic cloudImage, we want to see kernel messages
on both VGA and serial console. It works fine with
tty1(vga console) and ttyS0(serial console) on x86_64 arch.
But, aarch64 and ppc64le doesn't use ttyS0 as serial console.
Instead, they use ttyAMA0(aarch64) and hvc0 (ppc64le).

Also, good point is that if a serial console specified in kernel
boot parameter is not supported on a given hardware platform, it
gets ignored. For example: console=ttyAMA0 and console=hvc0 will
get ignored on x86_64

Fixes: https://pagure.io/atomic-wg/issue/347

Signed-off-by: Sinny Kumari <sinny@redhat.com>
2017-10-14 00:08:40 +05:30
Tomas Mlcoch
673510bb16 Remove modular kickstarts for docker
They are replaced by kickstarts from PR:
https://pagure.io/fedora-kickstarts/pull-request/301

They aren't needed because of:
https://pagure.io/pungi-fedora/pull-request/403

Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
2017-10-13 15:18:00 +02:00
Tomas Mlcoch
4f135d3451 Backport arm-base kickstart for modular fedora from master
Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
2017-10-13 14:53:53 +02:00
Tomas Mlcoch
5e3dd44b48 Backport kickstarts for modular containers from master
This obsoletes:
fedora-modular-docker-base-minimal.ks
fedora-modular-docker-common.ks
that will be removed soon by another commit.

Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
2017-10-13 14:51:30 +02:00
Peter Robinson
c6b30892c3 drop specifying specific console, ARM has many and varied options
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2017-10-09 20:58:12 +01:00
Dusty Mabe
d91769ea0b
atomic: extend the root filesystem to fill VG
With the change to using overlay in the root filesystem [1]. We
need to configure the cloud images to extend the root filesystem
by default [2]. Fixes [2]

[1] https://pagure.io/atomic-wg/issue/281
[2] https://pagure.io/atomic-wg/issue/343

(cherry picked from commit 97b0af5d00)
2017-10-05 16:29:04 -04:00
Dusty Mabe
afc2a37a1f
atomic: use basearch in ostreesetup line
This will help enable us to use the same kickstart file for multiple
architectures. Enabling work was in the pull requests listed below:

https://github.com/projectatomic/rpm-ostree/pull/877
https://github.com/rhinstaller/anaconda/pull/1186

(cherry picked from commit c3095c82ba)
2017-10-05 16:29:02 -04:00
Christian Dersch
ccf44b42b5 astrometry: added development and astrometry 2017-10-04 11:45:37 +02:00
Colin Walters
623954ee2f atomichost: Update partitioning for new model
See https://pagure.io/atomic-wg/issue/281

This causes us to match the productimg setup. At some point hopefully we can use
`autopart` and not duplicate it.
2017-09-29 09:16:21 -04:00
Sinny Kumari
1887cb4fa5 Use reqpart in Fedora Atomic kickstart
Building Fedora Atomic CloudImage on architectures like
aarch64 and ppc64le needs platform specific partitions as well.

Issue - https://pagure.io/atomic-wg/issue/299#comment-449243

Signed-off-by: Sinny Kumari <sinny@redhat.com>
2017-09-14 17:43:05 +05:30
Peter Robinson
b57f7360a4 SoAS and LXQT: increase root fs size
The installs don't quite hit on the default base image size so
increase it for both spins so they will build.

Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2017-08-16 18:23:15 +01:00
Peter Robinson
9dfd288a36 KDE: fix compose due to core deps needing make
So make is needed by openssl and compat-openssl10 which is turn is needed
by key things such as qt5-qtbase, mariadb and other core things that are
explictly needed in the KDE spin. I have no idea why the ARM images fail
and the live media does not because all arches have this dep.

Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2017-08-16 18:23:01 +01:00
Peter Robinson
61cb946439 Mate: fix contractdictory package lists
So MATE removes PackageKit and then tried to add PackageKit-command-not-found
which is contradictary and will fail to install so drop the later so things
will at least compose.

Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2017-08-16 18:22:43 +01:00
Peter Robinson
98eed504de ARM images: remove bits we don't need/want to help reduce image size
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2017-08-16 18:20:35 +01:00
Peter Robinson
d5e9ab1d4b Fix MATE dependencies
There's a number of dependencies that are being excluded but are needed by core
MATE components so the arm images fail because of this. Also fix the mp3 support
package as that's now in gstreamer1-plugins-ugly-free

Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2017-08-16 18:14:25 +01:00
Mohan Boddu
55bedb122a Branching f27 from rawhide
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2017-08-15 13:29:14 -04:00
16 changed files with 147 additions and 36 deletions

View File

@ -30,6 +30,7 @@ dracut-config-generic
-dracut-config-rescue
# install tools needed to manage and boot arm systems
@arm-tools
-uboot-images-armv8
rng-tools
chrony
extlinux-bootloader
@ -39,6 +40,8 @@ initial-setup-gui
-iwl*
-ipw*
-trousers-lib
-usb_modeswitch
-iproute-tc
#lets resize / on first boot
# dracut-modules-growroot

View File

@ -2,6 +2,8 @@
%include fedora-arm-xbase.ks
%include fedora-lxqt-common.ks
part / --size=3800 --fstype ext4 --asprimary
%packages
# trojita not available on non-x86 platforms
-trojita

View File

@ -4,3 +4,7 @@
part /boot --size=512 --fstype ext4
part swap --size=256 --fstype swap
part / --size=1256 --fstype ext4
%packages
-xkeyboard-config
%end

View File

@ -2,6 +2,8 @@
%include fedora-arm-xbase.ks
%include fedora-soas-common.ks
part / --size=3300 --fstype ext4 --asprimary
%post
%end

View File

@ -17,32 +17,57 @@ rootpw --lock --iscrypted locked
firewall --disabled
bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8 net.ifnames=0"
# console=ttyAMA0 and console=hvc0 as kernel boot parameter to see
# kernel boot messages on serial console as well on aarch64 and
# ppc64le respectively.
# https://pagure.io/atomic-wg/issue/347
bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8 console=ttyAMA0 console=hvc0 net.ifnames=0"
network --bootproto=dhcp --device=link --activate --onboot=on
services --enabled=sshd,cloud-init,cloud-init-local,cloud-config,cloud-final
zerombr
clearpart --all
# Atomic differs from cloud - we want LVM
part /boot --size=300 --fstype="ext4"
# Implement: https://pagure.io/atomic-wg/issue/281
# The bare metal layout default is in http://pkgs.fedoraproject.org/cgit/rpms/fedora-productimg-atomic.git
# However, the disk size is currently just 6GB for the cloud image (defined in pungi-fedora). So the
# "15GB, rest unallocated" model doesn't make sense. The Vagrant box is 40GB (apparently a number of
# Vagrant boxes come big and rely on thin provisioning).
# In both cases, it's simplest to just fill all the disk space.
#
# Use reqpart to create hardware platform specific partitions
# https://pagure.io/atomic-wg/issue/299
reqpart --add-boot
part pv.01 --grow
volgroup atomicos pv.01
logvol / --size=3000 --fstype="xfs" --name=root --vgname=atomicos
# Start from 3GB as we did before, since we just need a size. But we do --grow to fill all space.
logvol / --size=3000 --grow --fstype="xfs" --name=root --vgname=atomicos
# Equivalent of %include fedora-repo.ks
# Pull from the ostree repo that was created during the compose
ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=https://kojipkgs.fedoraproject.org/compose/atomic/rawhide/ --ref=fedora/rawhide/x86_64/atomic-host
ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=https://kojipkgs.fedoraproject.org/atomic/27/ --ref=fedora/27/${basearch}/updates/atomic-host
reboot
%post --erroronfail
# See https://github.com/projectatomic/rpm-ostree/issues/42
# Set the ostree repo to the location we want users to upgrade from
# This location is where the compose gets synced to after the compose
# is done.
# Find the architecture we are on
arch=$(uname -m)
# Set the origin to the "main ref", distinct from /updates/ which is where bodhi writes.
# We want consumers of this image to track the two week releases.
ostree admin set-origin --index 0 fedora-atomic https://kojipkgs.fedoraproject.org/atomic/27/ "fedora/27/${arch}/atomic-host"
# Make sure the ref we're supposedly sitting on (according
# to the updated origin) exists.
ostree refs "fedora-atomic:fedora/27/${arch}/updates/atomic-host" --create "fedora-atomic:fedora/27/${arch}/atomic-host"
# Remove the old ref so that the commit eventually gets
# cleaned up.
ostree refs "fedora-atomic:fedora/27/${arch}/updates/atomic-host" --delete
# delete/add the remote with new options to enable gpg verification
ostree remote delete fedora-atomic
ostree remote add --set=gpg-verify=true --set=gpgkeypath=/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-27-primary fedora-atomic 'https://kojipkgs.fedoraproject.org/atomic/rawhide/'
ostree remote add --set=gpg-verify=true --set=gpgkeypath=/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-27-primary fedora-atomic 'https://kojipkgs.fedoraproject.org/atomic/27/'
# older versions of livecd-tools do not follow "rootpw --lock" line above
# https://bugzilla.redhat.com/show_bug.cgi?id=964299
@ -52,8 +77,10 @@ passwd -l root
cp /etc/skel/.bash* /var/roothome
# Configure docker-storage-setup to resize the partition table on boot
# https://github.com/projectatomic/docker-storage-setup/pull/25
# and extend the root filesystem to fill it.
# https://pagure.io/atomic-wg/issue/343
echo 'GROWPART=true' >> /etc/sysconfig/docker-storage-setup
echo 'ROOT_SIZE=+100%FREE' >> /etc/sysconfig/docker-storage-setup
echo -n "Getty fixes"
# although we want console output going to the serial console, we don't

View File

@ -19,7 +19,7 @@ network --bootproto=dhcp --device=link --activate
rootpw --lock --iscrypted locked
shutdown
bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8"
bootloader --timeout=1
zerombr
clearpart --all --initlabel --disklabel=msdos
@ -40,15 +40,16 @@ dracut-config-generic
-dracut-config-rescue
# install tools needed to manage and boot arm systems
@arm-tools
-uboot-images-armv7
rng-tools
chrony
bcm283x-firmware
uboot-images-armv8
-uboot-images-armv7
initial-setup
-iwl*
-ipw*
-trousers-lib
-usb_modeswitch
-iproute-tc
-generic-release*
# make sure all the locales are available for inital0-setup and anaconda to work
@ -80,6 +81,9 @@ rm -f /var/lib/rpm/__db*
# remove random seed, the newly installed instance should make it's own
rm -f /var/lib/systemd/random-seed
# The enp1s0 interface is a left over from the imagefactory install, clean this up
rm -f /etc/sysconfig/network-scripts/ifcfg-enp1s0
dnf -y remove dracut-config-generic
# Disable network service here, as doing it in the services line

View File

@ -4,3 +4,7 @@
services --enabled=sshd,NetworkManager,chronyd,initial-setup
autopart --type=plain
%packages
-xkeyboard-config
%end

View File

@ -61,9 +61,6 @@ wqy-microhei-fonts # a compact CJK font, to replace:
-ibus*
-iok
# save some space (from @standard)
-make
# admin-tools
-gnome-disk-utility
# kcm_clock still lacks some features, so keep system-config-date around

View File

@ -24,7 +24,13 @@ part / --size 14500
# Installing the default/mandatory packages from engineering & scientific
@engineering-and-scientific
# Basic development
@development-tools
@c-development
# astronomical data analysis
astrometry
astrometry-tycho2
cdsclient
fpack
gcx
@ -37,7 +43,7 @@ skyviewer
swarp
wcstools
# Observatory: KStars + INDI drivers + Skychart
# Observatory: KStars + INDI drivers
indi-aagcloudwatcher
indi-apogee
indi-eqmod
@ -45,10 +51,10 @@ indi-gphoto
indi-sx
indistarter
kstars
stellarium
# misc. astronomy
celestia
stellarium
virtualplanet
# Some astro environment stuff

View File

@ -90,11 +90,13 @@ julia-doc
# IDEs for the IDE folks
@eclipse
spyder
#spyder
#writing & publishing
emacs
emacs-color-theme
# https://bugzilla.redhat.com/show_bug.cgi?id=1506888
#emacs
#emacs-color-theme
vim
scribus
#scite

View File

@ -1,6 +1,5 @@
%packages
-PackageKit* # we switched to dnfdragora, so we don't need this
PackageKit-command-not-found # nifty for installing not-found cli-commands
firefox
@mate
compiz
@ -31,7 +30,7 @@ lightdm-gtk-greeter-settings
# audio video
parole
exaile
gstreamer1-plugin-mpg123 # mp3 support
gstreamer1-plugins-ugly-free # mp3 support
# blacklist applications which breaks mate-desktop
-audacious
@ -55,13 +54,9 @@ nss-mdns
-brasero
-colord
-fedora-icon-theme
-GConf2
-gnome-bluetooth-libs
-gnome-icon-theme
-gnome-icon-theme-symbolic
-gnome-software
-gnome-themes
-gnome-themes-standard
-gnome-user-docs
-@mate-applications

View File

@ -0,0 +1,27 @@
%include fedora-arm-base.ks
# server defaults to xfs for / so lets do so on arm also
part / --size=2500 --fstype xfs
%packages
# install the default groups for the server evironment since installing the environment is not working
@server-product
@standard
@headless-management
@container-management
@domain-client
-initial-setup-gui
-generic-release*
fedora-modular-release
%end
%post
# setup systemd to boot to the right runlevel
echo -n "Setting default runlevel to multiuser text mode"
rm -f /etc/systemd/system/default.target
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
echo .
%end

View File

@ -1,8 +1,8 @@
# See docker-base-common.ks for details on how to hack on docker image kickstarts
# See fedora-modular-container-common.ks for details on how to hack on container image kickstarts
# This base is a stripped back Fedora image without python3/dnf.
# If you need that use the standard base image.
%include fedora-modular-docker-common.ks
%include fedora-modular-container-common.ks
%packages --excludedocs --instLangs=en --nocore --excludeWeakdeps
microdnf
@ -47,7 +47,7 @@ rm -rfv /var/cache/* /var/log/* /tmp/*
set -eux
# https://bugzilla.redhat.com/show_bug.cgi?id=1343138
# Fix /run/lock breakage since it's not tmpfs in docker
# Fix /run/lock breakage since it's not tmpfs in container
# This unmounts /run (tmpfs) and then recreates the files
# in the /run directory on the root filesystem of the container
# NOTE: run this in nochroot because "umount" does not exist in chroot

View File

@ -0,0 +1,38 @@
# See fedora-modular-container-common.ks for details on how to hack on container image kickstarts
# This base is a standard Fedora image with python3 and dnf
%include fedora-modular-container-common.ks
%packages --excludedocs --instLangs=en --nocore
rootfiles
tar # https://bugzilla.redhat.com/show_bug.cgi?id=1409920
vim-minimal
dnf
dnf-yum # https://pagure.io/fesco/ticket/1312#comment:29
sssd-client
%end
%post --erroronfail --log=/root/anaconda-post.log
# remove some extraneous files
rm -rf /var/cache/dnf/*
rm -rf /tmp/*
#Mask mount units and getty service so that we don't get login prompt
systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-fuse-connections.mount systemd-logind.service getty.target console-getty.service
# https://bugzilla.redhat.com/show_bug.cgi?id=1343138
# Fix /run/lock breakage since it's not tmpfs in container
# This unmounts /run (tmpfs) and then recreates the files
# in the /run directory on the root filesystem of the container
#
# We ignore the return code of the systemd-tmpfiles command because
# at this point we have already removed the /etc/machine-id and all
# tmpfiles lines with %m in them will fail and cause a bad return
# code. Example failure:
# [/usr/lib/tmpfiles.d/systemd.conf:26] Failed to replace specifiers: /run/log/journal/%m
#
umount /run
systemd-tmpfiles --prefix=/run/ --prefix=/var/run/ --create --boot || true
%end

View File

@ -1,4 +1,4 @@
# This is the common bits between Docker base images based on Modular Fedora.
# This is the common bits between Container base images based on Modular Fedora.
#
# To keep this image minimal it only installs English language. You need to change
# dnf configuration in order to enable other languages.
@ -24,10 +24,10 @@ keyboard us
network --bootproto=dhcp --device=link --activate --onboot=on
reboot
# boot partitions are irrelevant as the final docker image is a tarball
# boot partitions are irrelevant as the final container image is a tarball
zerombr
clearpart --all
autopart --noboot --nohome --noswap --nolvm
autopart --nohome --noswap --nolvm
%packages --excludedocs --instLangs=en --nocore
fedora-modular-release

View File

@ -3,7 +3,7 @@
# Exactly one of the following should be uncommented
# For the master branch the following should be uncommented
%include fedora-repo-rawhide.ks
# %include fedora-repo-rawhide.ks
# For non-master branches the following should be uncommented
# %include fedora-repo-not-rawhide.ks
%include fedora-repo-not-rawhide.ks