Commit Graph

158 Commits

Author SHA1 Message Date
Adam Williamson
82ad98acef Explicitly pull chkconfig into live images
As livesys and livesys-late are still SysV services, they need
systemd-sysv-install to work, which is part of chkconfig. Until
now chkconfig was getting pulled into live images via packages
that require update-alternatives, which was previously part of
chkconfig - but it just got split into its own package, so now
those packages don't pull in chkconfig any more.

This broke the KDE live image and probably several others in
recent Rawhide, livesys and livesys-late don't run so there's
no 'liveuser' and root isn't accessible. Workstation didn't
break because a java package still pulls chkconfig into it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-03-20 08:53:11 -07:00
Martin Kolman
e168b190c6 Install the anaconda-live package on the live image
Recently all Anaconda files required only for the live installation
(the liveinst script, the desktop file and others) have been split into a sub-package
called anaconda-live.

This was done to prevent these files from littering both network
installation images as well as user systems when Anaconda gets pulled
in as a dependency during a package installation transaction.

At the moment anaconda-live is stilled pulled in as a direct dependency
of the anaconda-gui sub package, but once this commit has been merged
into the Fedora kickstart repository, we can drop this temporary
dependency, removing the package from non-live installations.
2019-02-06 21:09:28 +00:00
Adam Williamson
0ed1396cb9 Add initscripts to fedora-live-base.ks
It was removed from the @core group in fedora-comps d7faeb5,
but we are still using stone-age sysv-style scripts for the
early boot live image setup stuff (livesys and livesys-late),
so we need it installed in live images. Without this, lives are
utterly broken, because livesys fails almost immediately and
does not do any of the expected live customizations.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-01 12:49:54 -07:00
Frederick Grose
70c3d795e8 fedora-live-base,fedora-soas: livecd-iso-to-disk in .iso filesystem.
For livemedia-creator builds, inject install code into the lorax
template live/x86.tmpl that copies the script livecd-iso-to-disk
into the .iso filesystem at /LiveOS when livecd-tools is present in
the install image. This fixes commit 18d30b3, which failed in this.
2018-10-31 22:14:54 -04:00
Frederick Grose
8cfe4eb1aa livesys: continue instead of return in cmdline do loops.
return is an improper exit command for do loops.
From dracut.cmdline(7):
"The last value in the kernel command line is the value .. honored."
2018-08-31 19:47:01 -04:00
Martin Kolman
f36efa99ae Include the anaconda-install-env-deps metapackage
Use the anaconda-install-env-deps metapackage to pull in the
Anaconda dependencies needed in the installation environment.

The anaconda-install-env-deps metapackage lists all install time
dependencies and makes it possible for packages such as
Initial Setup to depend on Anaconda without pulling all
the (mainly storage related) install time dependencies
to the installed system.

The same is applicable for dirinstall which also does
not require the install time dependencies as it is just
installing to a local folder.

This also fixes rhbz#1561047 as anaconda-install-env-deps
package has a Requires on udisks2-iscsi.
2018-04-09 17:36:26 +02:00
Benjamin Berg
4f4fe63125 live-base: Disable abrtd on live systems
Grabbing coredumps on live systems is not a good idea. Either there is
no persistent storage, or it will be really slow and also small. So
disable abrtd and stop it in the same way as other services.
2018-03-07 16:18:48 +01:00
Adam Williamson
d7b3eaf9ef Don't list grub2-efi for live images
The arch-specific sub-packages that provide grub2-efi on each
arch are listed in @anaconda-tools comps group anyway (so this
is redundant), and requiring it by name in a kickstart causes
i686 live image composes to fail because it is no longer built
for i686.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-01-04 15:05:44 -08:00
Jonathan Steffan
75a71d5aa4 Update inline comment to reflect the change from the fedora username to the liveuser username. 2017-06-19 22:06:44 -06:00
Dennis Gilmore
71bed67657 add rootpw --lock to all livekickstarts
for rhbz#1392468 I was told that what we had should never have worked.
A bug in anaconda was fixed causing the need for the user or root
spokes to have to be dealt with. locking the root account should
satisfy everything.

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-11-12 15:10:51 -06:00
Kamil Páral
85bb31edc6 fedora-live-base: change static hostname to localhost-live
This prevents systemd to update it during boot if DHCP supplies a
hostname, which causes sddm to not start. See
https://bugzilla.redhat.com/show_bug.cgi?id=1370222

Signed-off-by: Kamil Páral <kparal@redhat.com>
2016-10-31 19:05:57 +01:00
Peter Robinson
30c3f7e721 Touch the machine-id file
So is seems that if you remove the machine-id file it won't regenerate the file
but if you touch the file and leave it empty on boot it'll put a new machine-id
in the empty file. So work around this bug ("feature"?) by touching the file
so we don't have other issues in the process.

We're track the outcome of this in RHBZ 1379800
2016-09-27 20:17:46 +01:00
Peter Robinson
890829fdbb Remove machine-id on pre generated images so it's unique on each deployed device
As referenced on the arm list [1] and as already being done on the docker image we
should remove the unique /etc/machine-id file on compose artifacts to ensure it's
regenerated and unique on each deployed host/device. This unifies the process across
all base ks so it's inherited for each artifact.

[1] https://lists.fedoraproject.org/archives/list/arm@lists.fedoraproject.org/message/Q3YZVF5P2OLLPUJQ2LYZSTKWGGDIU6QO/

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
2016-09-13 09:11:57 +01:00
Adam Williamson
4af7364074 manipulate network service in %post (#1369794)
Due to #1369794 , anaconda cannot currently manipulate sysv
services in F25+. So to work around this, take 'network' out of
the services lines in all kickstarts and instead manipulate
it in the %post section, with chkconfig.

Also remove rsyslog from the Atomic image services line because
it doesn't appear to be included in the OStree tree at present
and so attempting to enable the service breaks Atomic image
compose, see e.g.:

https://kojipkgs.fedoraproject.org//work/tasks/9022/15349022/oz-x86_64.log

also correct the name of the ssh service in fedora-arm-base.ks;
it's sshd not ssh.
2016-08-24 11:27:40 -06:00
Bruno Wolff III
b39ac77024 Make sure chronyd runs with the correct config
We need to have chronyd start after livesys has finished so that
the config for chronyd gets rewritten before it starts. If not it
will overwrite the system clock with a time that will be incorrect
(US eastern stored as local time instead of UTC) for most people.
This fixes bug 1018162.
2016-06-18 08:14:35 -05:00
Kevin Fenzi
b63ab022d7 Drop dracut-config-generic since we don't want the larger generic initramfses on all installed from live instances. 2016-04-29 15:32:42 -06:00
Kevin Fenzi
c05c51325d Allow dracut-config-rescue to be installed so installed systems have a
rescue kernel. Also remove the rescue kernel and initramfs on the live
itself. Fixes bug #1317709
2016-03-25 12:36:19 -06:00
Kevin Fenzi
2d034dd1c6 Nuke random seed in install, the new instance should make it's own. Fixes bug #1314879 2016-03-05 09:26:35 -07:00
Dennis Gilmore
534fd19ce0 make sure that all the livecds and arm images have glibc-all-langpacks installed
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-02-29 14:30:52 -06:00
Dennis Gilmore
abdadb9819 livemedia-creator uses dnf so get rid of the migration bits.
do not mount /var/cache/yum as it makes no sense

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-02-19 17:02:56 -06:00
Rex Dieter
3ad15c2869 live-base: pass explicit --device option to network
work to avoid
Error: creating Live CD: No --device specified with network kickstart command
2016-02-11 09:16:20 -06:00
Dennis Gilmore
91a99a0635 increase the disk size for images that failed to compose due to space issues
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-02-09 06:59:50 -06:00
Dennis Gilmore
9607fe239d Changes needed to switch to livemedia-creator
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-02-09 02:13:16 -06:00
Kevin Fenzi
fd4b26341c Don't nuke the initramfs by default. Needed for bug 1214441 2015-12-05 12:44:57 -07:00
Adam Williamson
db62fb95bb drop forced fontconfig cache generation, should not be needed
Per discussion on #1169979, fontconfig upstream think they have
the bugs licked, so this shouldn't be needed any more. We need
to check the nightly lives after this and see if their caches
are now correct.
2015-11-04 12:56:21 -08:00
Kalev Lember
b773ad0ff9 live base: Migrate yum's yumdb over to dnf
As livecd-creator is still yum based, we only get yum's yumdb during
live image composes. To work this around, this commit adds a %post
script to fedora-live-base.ks to migrate yum's yumdb over to dnf.

https://bugzilla.redhat.com/show_bug.cgi?id=1274319
2015-10-22 20:11:50 +02:00
David Ward
0ecfd28e29 fedora-live-base.ks: enable ModemManager service
The ModemManager package is already installed for all live images;
it should be enabled so users can connect to WWAN right after boot
using the NetworkManager applet.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
2015-09-07 10:32:16 -06:00
Adam Williamson
cf118093e3 add dracut-live to fedora-live-base so lives boot: #1242586 2015-07-13 10:06:01 -07:00
Kevin Fenzi
9f254062c3 Switch md5 to sha512. Fixes bug #1234068
This is pretty cosmetic as live and cloud images don't use passwords
and they install with sha512 fine, but some people may use these
kickstarts as a base for their spins, so we should use best practices.
2015-06-21 10:38:20 -06:00
Adam Williamson
d94b86c888 Don't sync the system clock when running live (RHBZ #1018162) 2015-06-18 09:30:33 -07:00
Kalev Lember
181d3e9f8c Drop any references to fedora-release-nonproduct
The package is gone in F22+ and folded into fedora-release.
2015-04-24 22:28:29 +02:00
Kevin Fenzi
5a91df2b97 Try this as a fix for ldconfig being so slow on boot on live media. bug 1195998 2015-03-06 13:17:41 -07:00
Kevin Fenzi
0eb6b1bf31 Add a few packages requested to xfce spin and increase base size 2015-02-18 19:16:17 -07:00
Adam Williamson
eba9ca6a6f re-generate fontconfig cache in %post to work around #1169979 2014-12-12 10:48:43 -08:00
Adam Williamson
bf3371ecfe Revert "Setup mdadm to turn off homehost (#1156614)"
This reverts commit 0bcbab3c71.
Per https://bugzilla.redhat.com/show_bug.cgi?id=1156614#c15 both
dlehman and I suspect it may be completely wrong, and it's not
strictly necessary right now, so let's leave it until dledford
clarifies.
2014-10-28 11:57:29 -07:00
Brian C. Lane
0bcbab3c71 Setup mdadm to turn off homehost (#1156614) 2014-10-28 11:43:20 -07:00
Kalev Lember
bfa7d4e4f6 live base: Install fedora-release-nonproduct for non-product lives
Add fedora-release-nonproduct to fedora-live-base.ks to ensure it gets
pulled in for all spins. In order to avoid it getting pulled in to
the Workstation product that is also based on fedora-live-base.ks,
explicitly exclude fedora-release-nonproduct in workstation kickstart
file.

https://bugzilla.redhat.com/show_bug.cgi?id=1154235
2014-10-18 15:34:40 +02:00
Adam Williamson
96a16eefc4 from spot: add comfortaa fonts to live-base to fix #1116497 2014-09-19 11:06:36 -07:00
Adam Williamson
5e49468d39 we don't need to nix hwclock-save.service any more...
...because systemd dropped it in 2011:
http://lists.freedesktop.org/archives/systemd-commits/2011-May/001088.html
2014-09-06 18:11:51 -07:00
Adam Williamson
629c19368c set up tmpfs in fstab, not livesys service (fixes #1135475) 2014-09-02 09:27:29 -07:00
Kalev Lember
745387e20e live-base: Drop a redundant package inclusion
Don't explicitly include qemu-guest-agent; it's is already listed in
@guest-desktop-agents comps group that is also pulled in to
fedora-live-base.
2014-08-29 17:53:18 +02:00
Dennis Gilmore
b0850152d8 license files have moved, and we no longer ship the collection as GPL but MIT 2014-08-01 12:05:44 -05:00
Kalev Lember
f844fe2791 Disable gnome-software automatic updates downloading
The gnome-settings-daemon updates plugin is gone and update downloading
is handled by gnome-software instead. Adapt the live image schema
overrides for the changes.
2014-06-03 13:25:11 +02:00
Kevin Kofler
ccd8c30b88 fedora-live-base.ks: do not hardcode fedora-release in %post
Do not hardcode the fedora-release package name in the %post scriptlet
(in the place that imports the Fedora RPM GPG key). Instead, use
"--whatprovides system-release", which is strictly equivalent if
fedora-release is used, but also works when the *-release package is
named differently.

This makes live easier for remixes, which have to replace fedora-release
with generic-release or ${remixname}-release. They would otherwise have
to edit fedora-live-base.ks.
2014-04-07 14:04:57 +02:00
Dennis Gilmore
352a416c61 use uname -i as it gives the arch used as the basearch by yum uname -m is incorrect 2013-12-12 04:12:29 -06:00
Adam Williamson
922fff0b59 correct path when copying GPL to live root (unversioned docdirs) 2013-12-11 14:56:15 -08:00
Matthew Miller
07ed9c93b2 set releasever and basearch so we can find the right RPM GPG key to import 2013-12-10 15:09:10 -05:00
Kalev Lember
32e066e039 Adapt for changed rpm gpg key names 2013-10-17 00:17:33 +02:00
Adam Williamson
5ee23ccea9 add workaround for #679486 from kparal (see comment #86) 2013-08-28 09:29:19 -05:00
Adam Williamson
11631d6481 move the 'livesys is done' block back up so it's at least inside livesys 2013-08-20 08:50:39 -07:00