[fedora-kickstarts] branch f37 updated (7ffe93e -> 10450ca)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
kevin pushed a change to branch f37
in repository fedora-kickstarts.
from 7ffe93e workstation: Adapt to renamed gnome-software autostart file name
add 7086687 Replaced part biosboot and part /boot by reqpart --add-boot to cover different requirements by differen archs
add 10450ca Fixed some unnecessary comment lines
No new revisions were added by this update.
Summary of changes:
fedora-server-vm-full.ks | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
8 months, 3 weeks
[fedora-kickstarts] branch main updated (9d425b7 -> 3d653e5)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
kevin pushed a change to branch main
in repository fedora-kickstarts.
from 9d425b7 workstation: Adapt to renamed gnome-software autostart file name
add 6777f93 Replaced part biosboot and part /boot by reqpart --add-boot to cover different requirements by differen archs
add 3d653e5 Removed some unnecessary commented out instructions.
No new revisions were added by this update.
Summary of changes:
fedora-server-vm-full.ks | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
8 months, 3 weeks
[fedora-kickstarts] branch f37 updated (fda88e6 -> 7ffe93e)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
kevin pushed a change to branch f37
in repository fedora-kickstarts.
from fda88e6 Fixed missing # signs
add 7ffe93e workstation: Adapt to renamed gnome-software autostart file name
No new revisions were added by this update.
Summary of changes:
fedora-live-workstation.ks | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
8 months, 4 weeks
[fedora-kickstarts] branch main updated (465fbc3 -> 9d425b7)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
kevin pushed a change to branch main
in repository fedora-kickstarts.
from 465fbc3 Fixed missing # signs
add 9d425b7 workstation: Adapt to renamed gnome-software autostart file name
No new revisions were added by this update.
Summary of changes:
fedora-live-workstation.ks | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
8 months, 4 weeks
[fedora-kickstarts] 03/03: Fixed missing # signs
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
kevin pushed a commit to branch f37
in repository fedora-kickstarts.
commit fda88e6c425317bdc4010618276fa25b81f544c8
Author: Peter Boy <pb(a)resdigita.de>
AuthorDate: Tue Aug 23 19:04:39 2022 +0200
Fixed missing # signs
---
fedora-server-vm-full.ks | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fedora-server-vm-full.ks b/fedora-server-vm-full.ks
index c487880..c985111 100644
--- a/fedora-server-vm-full.ks
+++ b/fedora-server-vm-full.ks
@@ -145,7 +145,7 @@ dnf clean all
echo "Removing linux-firmware package."
rpm -e linux-firmware
- Will ever anybody see this?
+# Will ever anybody see this?
echo "Packages within this disk image"
rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
@@ -153,7 +153,7 @@ rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
rm -f /var/lib/rpm/__db*
- Do we need a serial terminal with a VM?
+# Do we need a serial terminal with a VM?
if [[ $arch == "aarch64" ]] || [[ $arch == "armv7l" ]]; then
# Anaconda adds console=tty0 to the grub boot line on all images. this is problematic
# when you are using fedora via serial console as you do not get any output post grub
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
8 months, 4 weeks
[fedora-kickstarts] 02/03: Added missing fedora-repo include.
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
kevin pushed a commit to branch f37
in repository fedora-kickstarts.
commit 734e000de5c3ff5fa34d7d32d0676856be3933e4
Author: Peter Boy <pb(a)resdigita.de>
AuthorDate: Mon Aug 22 17:05:47 2022 +0200
Added missing fedora-repo include.
---
fedora-server-vm-full.ks | 178 ++++++++++++++++++++++++++---------------------
1 file changed, 97 insertions(+), 81 deletions(-)
diff --git a/fedora-server-vm-full.ks b/fedora-server-vm-full.ks
old mode 100755
new mode 100644
index 820335a..c487880
--- a/fedora-server-vm-full.ks
+++ b/fedora-server-vm-full.ks
@@ -1,8 +1,10 @@
-# fedora-server-vm-full.ks
+# fedora-server-vm-full.ks (rel. 1.0)
# Kickstart file to build a Fedora Server Edition VM disk image.
# The image aims to resemble as close as technically possible the
# full features of a Fedora Server Edition in a virtual machine.
#
+# The image uses GPT partition type as of default in Fedora 37
+#
# At first boot it opens a test based basic configuration screen.
#
# This kickstart file is designed to be used with ImageFactory (in Koji).
@@ -12,20 +14,29 @@
# See Fedora Server Edition user documentation tutorial.
+# Use text mode install
+text
+
# Keyboard layouts
keyboard 'us'
+# System language
+lang en_US.UTF-8
+
+# System timezone
+# set time zone to GMT (Etcetera/UTC)
+timezone Etc/UTC --utc
+
+
# Root password
rootpw --iscrypted --lock locked
-# System language
-lang en_US.UTF-8
+# SELinux configuration
+selinux --enforcing
-# Shutdown after installation
-shutdown
-# Use text mode install
-text
+# System bootloader configuration
+bootloader --location=mbr --timeout=1 --append="console=tty1 console=ttyS0,115200n8"
# Network information
network --bootproto=dhcp --device=link --activate --onboot=on
@@ -33,32 +44,71 @@ network --bootproto=dhcp --device=link --activate --onboot=on
# Firewall configuration
firewall --enabled --service=mdns
-# System timezone
-# set time zone to GMT (Etcetera/UTC)
-timezone Etc/UTC --utc
+
+# System services
+# message: error enabling initial-setup, initial-setup does not exist
+services --enabled="sshd,NetworkManager,chronyd,initial-setup"
# Run the Setup Agent on first boot
firstboot --reconfig
-# SELinux configuration
-selinux --enforcing
+# Partition Information. Use GPT by default (since Fedora 37)
+# Resemble the Partitioning used for Fedora Server Install media
+clearpart --all --initlabel --disklabel=gpt
+part biosboot --size=1 --fstype=biosboot
+part /boot --size=1000 --fstype=xfs --label=boot
+part pv.007 --size=4000 --grow
+volgroup sysvg pv.007
+logvol / --vgname=sysvg --size=4000 --grow --maxsize=16000 --fstype=xfs --name=root --label=sysroot
-# System services
-# message: error enabling initial-setup, initial-setup does not exist
-services --enabled="sshd,NetworkManager,chronyd,initial-setup"
-# System bootloader configuration
-bootloader --location=mbr --timeout=1 --append="console=tty1 console=ttyS0,115200n8"
+# Include URLs for network installation dynamically, dependent from Fedora release
+# and imagefactory runtime environment
+%include fedora-repo.ks
+
+# Shutdown after installation
+shutdown
+
+
+
+##### begin package list #############################################
+%packages --inst-langs=en
+
+@server-product
+@core
+@headless-management
+@standard
+@networkmanager-submodules
+##@container-management
+@domain-client
+@guest-agents
+
+# All arm-tools packages install on aarch64/armhfp only
+# TODO: on a x86_64 devel environment are @arm-tools not available
+# and cause a build error.
+# @arm-tools
+
+# Standard Fedora Package Groups
+## dracut-config-generic ## included in =core=
+glibc-all-langpacks
+initial-setup
+kernel-core
+-dracut-config-rescue
+-generic-release*
+-initial-setup-gui
+-kernel
+-linux-firmware
+-plymouth
+# pulled in by @standard
+-smartmontools
+-smartmontools-selinux
+
+%end
+##### end package list ###############################################
-# Partition Information. Use default partitioning as configured in Anaconda on
-# Server Edition distribution media
-autopart --noswap
-# Clear the Master Boot Record
-zerombr
-# Partition clearing information
-clearpart --all --initlabel --disklabel=msdos
-%post --erroronfail
+##### begin kickstart post script ####################################
+%post --erroronfail --log=/root/anaconda-post-1.log
# Find the architecture we are on
arch=$(uname -m)
@@ -81,25 +131,21 @@ rm -f /var/lib/systemd/random-seed
echo "Cleanup leftover networking configuration"
rm -f /etc/NetworkManager/system-connections/*.nmconnection
-dnf -y remove dracut-config-generic
-
-# Remove machine-id on pre generated images
-rm -f /etc/machine-id
-touch /etc/machine-id
-
# Truncate the /etc/resolv.conf left over from NetworkManager during the
-# kickstart. This causes delays in boot with cloud-init because the
-# 192.168.122.1 DNS server cannot be reached.
+# kickstart because the DNS server is environment specific.
truncate -s 0 /etc/resolv.conf
+echo "Cleaning repodata to save space."
+dnf clean all
+
# linux-firmware is installed by default and is quite large. As of mid 2020:
# Total download size: 97 M
# Installed size: 268 M
-# So far we've been fine shipping without it so let's continue.
-# More discussion about this in #1234504.
+# Not needed in virtual environment.
echo "Removing linux-firmware package."
rpm -e linux-firmware
+ Will ever anybody see this?
echo "Packages within this disk image"
rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
@@ -107,20 +153,26 @@ rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
rm -f /var/lib/rpm/__db*
+ Do we need a serial terminal with a VM?
if [[ $arch == "aarch64" ]] || [[ $arch == "armv7l" ]]; then
+ # Anaconda adds console=tty0 to the grub boot line on all images. this is problematic
+ # when you are using fedora via serial console as you do not get any output post grub
+ # linux does a good job of knowing what consoles need to be enabled.
+ # https://bugzilla.redhat.com/show_bug.cgi?id=2022757
+ sed -i -e 's|console=tty0||g' /boot/loader/entries/*conf
+fi
-# Anaconda adds console=tty0 to the grub boot line on all images. this is problematic
-# when you are using fedora via serial console as you do not get any output post grub
-# linux does a good job of knowing what consoles need to be enabled.
-# https://bugzilla.redhat.com/show_bug.cgi?id=2022757
-sed -i -e 's|console=tty0||g' /boot/loader/entries/*conf
-fi
+# Remove machine-id on pre generated images
+rm -f /etc/machine-id
+touch /etc/machine-id
+%end
+##### end kickstart post script #####################################
-# Cleanup dnf packages
-echo "Cleaning old yum repodata."
-dnf clean all
+
+##### begin custom post script (after base) #########################
+%post
echo "Zeroing out empty space."
# Create zeros file with nodatacow and no compression
@@ -134,11 +186,6 @@ sync /
rm -f /var/tmp/zeros
sync /
-%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
@@ -146,35 +193,4 @@ ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
echo .
%end
-
-%packages --inst-langs=en
-
-@server-product
-@core
-@headless-management
-@standard
-@networkmanager-submodules
-##@container-management
-@domain-client
-@guest-agents
-
-# All arm-tools packages install on aarch64/armhfp only
-# TODO: on a x86_64 devel environment are @arm-tools not available
-# and cause a build error.
-# @arm-tools
-
-# Standard Fedora Package Groups
-## dracut-config-generic ## included in =core=
-glibc-all-langpacks
-initial-setup
-kernel-core
--dracut-config-rescue
--generic-release*
--initial-setup-gui
--kernel
--plymouth
-# pulled in by @standard
--smartmontools
--smartmontools-selinux
-
-%end
+##### end custom post script ########################################
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
8 months, 4 weeks
[fedora-kickstarts] 01/03: Initial kickstart file for new Fedora Server VM image
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
kevin pushed a commit to branch f37
in repository fedora-kickstarts.
commit 96c9895671e162d0bfcfc749c8253efe68461ccf
Author: Peter Boy <pb(a)resdigita.de>
AuthorDate: Wed Aug 10 16:30:04 2022 +0200
Initial kickstart file for new Fedora Server VM image
---
fedora-server-vm-full.ks | 180 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 180 insertions(+)
diff --git a/fedora-server-vm-full.ks b/fedora-server-vm-full.ks
new file mode 100755
index 0000000..820335a
--- /dev/null
+++ b/fedora-server-vm-full.ks
@@ -0,0 +1,180 @@
+# fedora-server-vm-full.ks
+# Kickstart file to build a Fedora Server Edition VM disk image.
+# The image aims to resemble as close as technically possible the
+# full features of a Fedora Server Edition in a virtual machine.
+#
+# At first boot it opens a test based basic configuration screen.
+#
+# This kickstart file is designed to be used with ImageFactory (in Koji).
+#
+# To build the image locally, you need to install ImageFactory and
+# various additional helpers and configuration files.
+# See Fedora Server Edition user documentation tutorial.
+
+
+# Keyboard layouts
+keyboard 'us'
+
+# Root password
+rootpw --iscrypted --lock locked
+
+# System language
+lang en_US.UTF-8
+
+# Shutdown after installation
+shutdown
+
+# Use text mode install
+text
+
+# Network information
+network --bootproto=dhcp --device=link --activate --onboot=on
+
+# Firewall configuration
+firewall --enabled --service=mdns
+
+# System timezone
+# set time zone to GMT (Etcetera/UTC)
+timezone Etc/UTC --utc
+
+# Run the Setup Agent on first boot
+firstboot --reconfig
+
+# SELinux configuration
+selinux --enforcing
+
+# System services
+# message: error enabling initial-setup, initial-setup does not exist
+services --enabled="sshd,NetworkManager,chronyd,initial-setup"
+
+# System bootloader configuration
+bootloader --location=mbr --timeout=1 --append="console=tty1 console=ttyS0,115200n8"
+
+# Partition Information. Use default partitioning as configured in Anaconda on
+# Server Edition distribution media
+autopart --noswap
+# Clear the Master Boot Record
+zerombr
+# Partition clearing information
+clearpart --all --initlabel --disklabel=msdos
+
+%post --erroronfail
+
+# Find the architecture we are on
+arch=$(uname -m)
+
+# Import RPM GPG key, during installation saved in /etc/pki
+echo "Import RPM GPG key"
+releasever=$(rpm --eval '%{fedora}')
+basearch=$(uname -i)
+rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
+
+# See the systemd-random-seed.service man page that says:
+# " It is recommended to remove the random seed from OS images intended
+# for replication on multiple systems"
+# The newly installed instance should make it's own
+echo "Removing random-seed so it's not the same in every image."
+rm -f /var/lib/systemd/random-seed
+
+# When we build the image a networking config file gets left behind.
+# Let's clean it up.
+echo "Cleanup leftover networking configuration"
+rm -f /etc/NetworkManager/system-connections/*.nmconnection
+
+dnf -y remove dracut-config-generic
+
+# Remove machine-id on pre generated images
+rm -f /etc/machine-id
+touch /etc/machine-id
+
+# Truncate the /etc/resolv.conf left over from NetworkManager during the
+# kickstart. This causes delays in boot with cloud-init because the
+# 192.168.122.1 DNS server cannot be reached.
+truncate -s 0 /etc/resolv.conf
+
+# linux-firmware is installed by default and is quite large. As of mid 2020:
+# Total download size: 97 M
+# Installed size: 268 M
+# So far we've been fine shipping without it so let's continue.
+# More discussion about this in #1234504.
+echo "Removing linux-firmware package."
+rpm -e linux-firmware
+
+echo "Packages within this disk image"
+rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
+
+# Note that running rpm recreates the rpm db files which aren't needed or wanted
+rm -f /var/lib/rpm/__db*
+
+
+if [[ $arch == "aarch64" ]] || [[ $arch == "armv7l" ]]; then
+
+# Anaconda adds console=tty0 to the grub boot line on all images. this is problematic
+# when you are using fedora via serial console as you do not get any output post grub
+# linux does a good job of knowing what consoles need to be enabled.
+# https://bugzilla.redhat.com/show_bug.cgi?id=2022757
+sed -i -e 's|console=tty0||g' /boot/loader/entries/*conf
+
+fi
+
+
+# Cleanup dnf packages
+echo "Cleaning old yum repodata."
+dnf clean all
+
+echo "Zeroing out empty space."
+# Create zeros file with nodatacow and no compression
+touch /var/tmp/zeros
+chattr +C /var/tmp/zeros
+# This forces the filesystem to reclaim space from deleted files
+dd bs=1M if=/dev/zero of=/var/tmp/zeros || :
+echo "(Don't worry -- that out-of-space error was expected.)"
+# Force sync to disk
+sync /
+rm -f /var/tmp/zeros
+sync /
+
+%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
+
+%packages --inst-langs=en
+
+@server-product
+@core
+@headless-management
+@standard
+@networkmanager-submodules
+##@container-management
+@domain-client
+@guest-agents
+
+# All arm-tools packages install on aarch64/armhfp only
+# TODO: on a x86_64 devel environment are @arm-tools not available
+# and cause a build error.
+# @arm-tools
+
+# Standard Fedora Package Groups
+## dracut-config-generic ## included in =core=
+glibc-all-langpacks
+initial-setup
+kernel-core
+-dracut-config-rescue
+-generic-release*
+-initial-setup-gui
+-kernel
+-plymouth
+# pulled in by @standard
+-smartmontools
+-smartmontools-selinux
+
+%end
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
8 months, 4 weeks
[fedora-kickstarts] branch f37 updated (edce50a -> fda88e6)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
kevin pushed a change to branch f37
in repository fedora-kickstarts.
from edce50a astronomy: drop obsolete python3-astroML-addons
new 96c9895 Initial kickstart file for new Fedora Server VM image
new 734e000 Added missing fedora-repo include.
new fda88e6 Fixed missing # signs
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
fedora-server-vm-full.ks | 196 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 196 insertions(+)
create mode 100644 fedora-server-vm-full.ks
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
8 months, 4 weeks
[fedora-kickstarts] branch main updated (240d5d1 -> 465fbc3)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
kevin pushed a change to branch main
in repository fedora-kickstarts.
from 240d5d1 astronomy: drop obsolete python3-astroML-addons
add b26c708 Initial kickstart file for new Fedora Server VM image
add 50c5a23 Added missing fedora-repo include.
add 465fbc3 Fixed missing # signs
No new revisions were added by this update.
Summary of changes:
fedora-server-vm-full.ks | 196 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 196 insertions(+)
create mode 100644 fedora-server-vm-full.ks
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
8 months, 4 weeks