Commit Graph

19 Commits

Author SHA1 Message Date
Peter Robinson
5bcdb60f13 Add a docker common kickstart as a central bit for shared config.
There's a lot of similarities between base and base-minimal so
introduce a docker-common.ks to ensure as much as possible is shared
between the two ensure as much shared as possible.

Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2017-04-03 23:53:31 +01:00
Peter Robinson
b49fdad2b6 add comment about boot parts on cloud/docker images
Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2017-03-23 12:58:19 -05:00
Peter Robinson
23b814089b Adjust docker-base-minimal ks for aarch64
Add the EFI partition in so anaconda doesn't lose it. Ulimately doesn't affect
docker image size as boot and friends are discarded as part of the process.

Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2017-03-23 12:58:19 -05:00
Dennis Gilmore
839ef7acc0 import just the primary rpm gpg key
anaconda apparently fails now if the scriptlet fails which happens
on 32 bit arm:
Error

  There was an error running the kickstart script at line 28.  This is a fatal
  error and installation will be aborted.  The details of this error are:

  + LANG=en_US
  + echo '%_install_langs en_US'
  + echo 'Import RPM GPG key'
  Import RPM GPG key
  ++ rpm -q --qf '%{version}\n' fedora-release
  + releasever=27
  ++ uname -i
  + basearch=armv7l
  + rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-27-armv7l
  error: /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-27-armv7l: import read failed(2).

  Press ENTER to exit: systemd-localed.service: Got notification message from PID 2286 (STOPPING=1)

as all the rpms in f26 for arches that will have containers ase
signed with the one key lets just import that

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2017-03-10 17:50:40 -06:00
Dusty Mabe
7ba27d5891
docker-min,docker-base: remove reference to yum in kickstart 2017-01-24 18:07:07 -05:00
Dusty Mabe
e99c9edc74
docker-min: remove e2fsprogs,libss,fuse-libs 2017-01-24 18:07:07 -05:00
Dusty Mabe
42b8714c65
docker-min: a few more things that can be removed 2017-01-24 18:07:07 -05:00
Dusty Mabe
6f0cdf042d
docker-min: make our rm commands verbose 2017-01-24 18:07:07 -05:00
Dusty Mabe
22bc79ed6f
docker-min: move /run/lock to %post nochroot
umount doesn't exist in the minimal image
2017-01-24 18:07:07 -05:00
Dusty Mabe
af27549437
docker-min: move /usr/share/{locale,i18n} to %post nochroot
find does not exist in the minimal image chroot so we'll have to
run it from outside.
2017-01-24 18:07:07 -05:00
Dusty Mabe
135de4a70b
docker-min: add a comment, remove a comment 2017-01-24 18:07:06 -05:00
Dusty Mabe
ee367f90b0
docker-min: merge pruning commands
Merge pruning commands. Don't rm /etc/machine-id or /run/ because we
just ran commands to touch /etc/machine-id and /run/lock
2017-01-24 18:07:06 -05:00
Dusty Mabe
8ce607a7ef
docker-min: cleanup dead code
usr/share/gcc* isn't in the image.
2017-01-24 18:07:06 -05:00
Dusty Mabe
ac2953ec38
docker-min: fix /run/lock without legacy.conf or systemd-tmpfiles 2017-01-24 18:07:06 -05:00
Dusty Mabe
1efe347bcb
docker-min: delete systemctl mask calls
No systemd so no need to mask.
2017-01-24 18:07:06 -05:00
Dusty Mabe
46c10b3c76
docker-min: remove cleanup of /usr/share/doc
There are no files in those directories to clean up.
--excludedocs is doing its job.
2017-01-24 18:07:06 -05:00
Dusty Mabe
4109ebf261
docker-min: trim down package list, exclude weak deps
We only want basics and microdnf.
2017-01-24 18:07:05 -05:00
Dusty Mabe
5cbb3babd0
docker-min: add in post processing from walters' scripts
He has done some work on this in the past at [1].

[1] - 3f6c905fef/postprocess.sh
2017-01-24 18:07:05 -05:00
Dusty Mabe
2f3f37ebd6
docker-min: add a new kickstart for creating a slimmer image
We'll start with the same used for fedora docker base.
2017-01-24 18:06:45 -05:00