Commit Graph

180 Commits

Author SHA1 Message Date
Jeremy Linton
ffd1a4f387 fedora-live-base: Exclude sdubby from live installs
systemd-boot is not yet supported on live media. Yet we
want it to appear on images where anaconda is installing
a system from RPMs (ex: the server dvd image).
The fix for this problem at the moment is to exclude anaconda
packages during the live media creation.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
2023-09-18 14:44:33 -05:00
Frederick Grose
1a41824efe fedora-live-base: Drop post processing for file additions.
Remove code to copy licenses/release files & livecd-iso-to-disk, if
needed.  livecd-creator now handles this directly.
(8d33dd973e)
2023-02-02 07:49:23 +00:00
Neal Gompa
83d02d4bc4 Switch all live media variants to use livesys-scripts
Reference: https://fedoraproject.org/wiki/Changes/ModernizeLiveMedia
2022-12-01 19:37:06 -05:00
Kevin Fenzi
ada1346a52 Revert "Revert "Drop use of the x86-baremetal-tools group""
This reverts commit a58e75901f.

We are trying a compose now with a fixed pungi. :)
2022-06-15 10:07:42 -07:00
Adam Williamson
a58e75901f Revert "Drop use of the x86-baremetal-tools group"
This reverts commit 1841b368ce. It
turns out we need to revert to older lorax that uses syslinux for
now - see https://pagure.io/pungi/issue/1608 - so we need it back
in the live kickstart too.
2022-06-06 11:30:43 -07:00
Adam Williamson
1841b368ce Drop use of the x86-baremetal-tools group
It only has syslinux in it (it used to also have memtest86+ till
we dropped that), and we're not using syslinux any more.
syslinux was also listed in anaconda-tools so this was really
kinda redundant; we will replace syslinux with the necessary
grub2 packages in comps.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-06-03 10:29:50 -07:00
Kalev Lember
1c4830c166 Drop a gsetting command that didn't actually do anything
Same as the previous commit, it only changed the value as root and
didn't actually affect the liveuser.
2021-02-17 21:15:44 +01:00
Kalev Lember
41c60146e7 Disable GNOME 40 welcome tour harder
Commit 3dadef5a21 didn't actually work
because it set the value as root. This commit fixes it to set it under
the liveuser instead.

Thanks to adamw for figuring out what's going on!
2021-02-17 21:15:43 +01:00
Bastien Nocera
3dadef5a21 Disable GNOME 40 welcome tour in Live CD 2021-02-16 11:06:41 +01:00
Kevin Fenzi
00e4470020 Revert "Remove memtest86+ from live media."
This reverts commit 2a5d50e4db.
2021-02-15 17:05:36 -08:00
Vít Ondruch
2a5d50e4db Remove memtest86+ from live media.
1. This is BIOS only utility.
2. This is not daily use tool. It targets only specialized use case.
2021-02-14 19:07:24 +00:00
David Ward
ec3a12d0db fedora-live-base: Handle livecd-creator vs. livemedia-creator builds
Test for $LIVE_ROOT (set by livecd-creator) before running commands
specific to a livecd-creator build.

Do not modify the Lorax template during livemedia-creator builds;
the change belongs in Lorax itself.

Related: https://github.com/weldr/lorax/pull/1107

Resolves: rhbz#1430546
2021-01-20 19:48:13 +00:00
David Ward
038b05bb22 fedora-live-base: Copy license files from the correct path
Since Fedora 30, license files are missing from the ISO filesystem
of live images (including official builds). The source path to the
license files changed when they were moved into a subpackage named
fedora-release-common (or generic-release-common).
2021-01-20 19:48:13 +00:00
Jaroslav Mracek
d48cbc7375 Remove unneeded groups in package section
Groups will be installed as a part of env. group.
2020-11-24 22:24:27 +00:00
Vladimír Slávik
03781dceef Remove RPM key import
Anaconda now imports GPG keys for RPM. See:
https://github.com/rhinstaller/anaconda/pull/2855
https://github.com/rhinstaller/anaconda/blob/master/data/product.d/fedora.conf#L23
2020-11-04 18:57:05 +00:00
Hans de Goede
5e4c7fec07 fedora-live-base: Exclude fcoe-utils and device-mapper-multipath from %packages
As discussed here:
https://fedoraproject.org/wiki/Changes/RemoveDeviceMapperMultipathFromWorkstationLiveCD
And on the anaconda devel list, we do not want device-mapper-multipath
on the livecd / on installs done from the livecd, because rather then
properly supporting hotplug udev add/change events it brings in
the long obsolete systemd-udev-settle.service which causes significant
delays during boot.

Since multipath is very much a data-center / server only feature we
can simply exclude it from the livecd to get rid of the dependency on
systemd-udev-settle.service .

We also need to exclude fcoe-utils since that depends on
device-mapper-multipath. Since FCOE too is a data-center / server
only feature, we can simply exclude fcoe-utils too.
2020-08-03 15:00:42 +02:00
Lubomir Rintel
84d28df1b2 Include size in package lists, sort them
This is done so that it's easy spot large packages that are not
necessary and identify packages that have grown in size too much
by diffing the image compose logs.

  sed "s/rpm -qa/rpm -qa --qf '%{size}\\\\t%{name}-%{version}-%{release}.%{arch}\\\\n' |sort -rn/" -i *.ks
2020-06-17 13:22:02 +02:00
Peter Robinson
6841b8b115 Remove auth line from kickstarts
The "auth --useshadow --passalgo=sha512" is long default and auth option
itself has moved to authselect and is obsolete so this actually pulls
in extra dependencies. Drop it as the shadaow and sha512 are defaults.

Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
2019-12-06 22:22:48 +00:00
chris
b05c6352f2 remove legacy swap
Now that Anaconda enables swap on zram by default, we don't need to
enable any legacy swap LVs or partitions. But per conversation with
livecd-tools, keep the activation of swapfile created by
'livecd-iso-to-disk --swap-size-mb'

https://github.com/rhinstaller/anaconda/pull/2039
https://github.com/livecd-tools/livecd-tools/issues/133
2019-09-24 14:52:40 -06:00
dftxbs3e
363ab2c3ae Replace x86-specific packages with a group for arch-agnosticism
Signed-off-by: dftxbs3e <dftxbs3e@free.fr>
2019-08-31 18:13:41 +02:00
Damian Wrobel
68b6257e0e Unify obtaining 'relesever'
Continuation of https://pagure.io/fedora-kickstarts/c/19a7b3b113d97db14d27f6a86db3c7479453a5ea?branch=master
but across entire repository.
2019-07-17 10:55:01 +02:00
Robin Lee
44dc9ec700 Make new hostname take effect immediately
There was race condition between hostname taking effect and lightdm setting up
Xorg service that X client would fail to find a proper xauth entry to connect
the X server.

hostnamectl will also rewrite /etc/hostname.
2019-06-04 14:06:44 +08:00
Adam Williamson
2611d60fd0 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:46:09 -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