Compare commits
10
Commits
a877b9421f
...
dfc49a5a10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dfc49a5a10 | ||
|
|
2eefd303c7 | ||
|
|
92b34d1d31 | ||
|
|
88762a0d1b | ||
|
|
25932f1e07 | ||
|
|
07be924499 | ||
|
|
a3e583adc1 | ||
|
|
1576599e80 | ||
|
|
749d86442a | ||
|
|
2240aa868e |
+15
-4
@@ -2,6 +2,7 @@
|
|||||||
<profiles>
|
<profiles>
|
||||||
<profile name="BootCore" description="Boot core packages"/>
|
<profile name="BootCore" description="Boot core packages"/>
|
||||||
<profile name="BootCoreUKI" description="Boot core packages for UKI"/>
|
<profile name="BootCoreUKI" description="Boot core packages for UKI"/>
|
||||||
|
<profile name="BootCoreLive" description="Boot core packages for Live DVDs"/>
|
||||||
<profile name="BootDiskCore" description="Boot disk core configuration">
|
<profile name="BootDiskCore" description="Boot disk core configuration">
|
||||||
<requires profile="BaseCommon"/>
|
<requires profile="BaseCommon"/>
|
||||||
<requires profile="HardwareCommon"/>
|
<requires profile="HardwareCommon"/>
|
||||||
@@ -81,10 +82,10 @@
|
|||||||
</oemconfig>
|
</oemconfig>
|
||||||
</type>
|
</type>
|
||||||
</preferences>
|
</preferences>
|
||||||
<packages type="bootstrap" patternType="plusRecommended" profiles="BootCore,BootCoreUKI">
|
<packages type="bootstrap" patternType="plusRecommended" profiles="BootCore,BootCoreUKI,BootCoreLive">
|
||||||
<package name="grubby"/>
|
<package name="grubby"/>
|
||||||
</packages>
|
</packages>
|
||||||
<packages type="image" patternType="plusRecommended" profiles="BootCore">
|
<packages type="image" patternType="plusRecommended" profiles="BootCore,BootCoreLive">
|
||||||
<package name="grub2-efi-aa64" arch="aarch64"/>
|
<package name="grub2-efi-aa64" arch="aarch64"/>
|
||||||
<package name="grub2-efi-aa64-modules" arch="aarch64"/>
|
<package name="grub2-efi-aa64-modules" arch="aarch64"/>
|
||||||
<package name="grub2-efi-riscv64" arch="riscv64"/>
|
<package name="grub2-efi-riscv64" arch="riscv64"/>
|
||||||
@@ -101,10 +102,19 @@
|
|||||||
<package name="shim-signed-ia32" arch="x86_64"/>
|
<package name="shim-signed-ia32" arch="x86_64"/>
|
||||||
<package name="shim-signed-x64" arch="x86_64"/>
|
<package name="shim-signed-x64" arch="x86_64"/>
|
||||||
<package name="shim-unsigned-riscv64" arch="riscv64"/>
|
<package name="shim-unsigned-riscv64" arch="riscv64"/>
|
||||||
<package name="kernel-core"/>
|
|
||||||
<package name="systemd-oomd-defaults"/>
|
<package name="systemd-oomd-defaults"/>
|
||||||
<package name="systemd-resolved"/>
|
<package name="systemd-resolved"/>
|
||||||
</packages>
|
</packages>
|
||||||
|
<packages type="image" patternType="plusRecommended" profiles="BootCore">
|
||||||
|
<ignore name="kernel-*debug*"/>
|
||||||
|
<package name="kernel-core"/>
|
||||||
|
</packages>
|
||||||
|
<packages type="image" patternType="plusRecommended" profiles="BootCoreLive">
|
||||||
|
<ignore name="kernel-*debug*"/>
|
||||||
|
<!-- Use kernel-uki-dtbloader for aarch64 -->
|
||||||
|
<package name="kernel-core" arch="x86_64,riscv64,ppc64le,s390x"/>
|
||||||
|
<package name="kernel-uki-dtbloader" arch="aarch64"/>
|
||||||
|
</packages>
|
||||||
<packages type="image" patternType="plusRecommended" profiles="BootCoreUKI">
|
<packages type="image" patternType="plusRecommended" profiles="BootCoreUKI">
|
||||||
<package name="shim-signed-aa64" arch="aarch64"/>
|
<package name="shim-signed-aa64" arch="aarch64"/>
|
||||||
<package name="shim-signed-ia32" arch="x86_64"/>
|
<package name="shim-signed-ia32" arch="x86_64"/>
|
||||||
@@ -116,13 +126,14 @@
|
|||||||
<package name="python3-virt-firmware"/>
|
<package name="python3-virt-firmware"/>
|
||||||
<package name="uki-direct"/>
|
<package name="uki-direct"/>
|
||||||
</packages>
|
</packages>
|
||||||
<packages type="iso" patternType="plusRecommended" profiles="BootCore">
|
<packages type="iso" patternType="plusRecommended" profiles="BootCore,BootCoreLive">
|
||||||
<package name="grub2-efi-aa64-cdboot" arch="aarch64"/>
|
<package name="grub2-efi-aa64-cdboot" arch="aarch64"/>
|
||||||
<package name="grub2-efi-riscv64-cdboot" arch="riscv64"/>
|
<package name="grub2-efi-riscv64-cdboot" arch="riscv64"/>
|
||||||
<package name="grub2-efi-ia32-cdboot" arch="x86_64"/>
|
<package name="grub2-efi-ia32-cdboot" arch="x86_64"/>
|
||||||
<package name="grub2-efi-x64-cdboot" arch="x86_64"/>
|
<package name="grub2-efi-x64-cdboot" arch="x86_64"/>
|
||||||
</packages>
|
</packages>
|
||||||
<packages type="image" patternType="plusRecommended" profiles="BootDiskCore">
|
<packages type="image" patternType="plusRecommended" profiles="BootDiskCore">
|
||||||
|
<ignore name="kernel-*debug*"/>
|
||||||
<package name="arm-image-installer" arch="aarch64"/>
|
<package name="arm-image-installer" arch="aarch64"/>
|
||||||
<package name="glibc-all-langpacks"/>
|
<package name="glibc-all-langpacks"/>
|
||||||
<package name="kernel"/>
|
<package name="kernel"/>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<profiles>
|
<profiles>
|
||||||
<profile name="LiveInstall" description="Live Install ISO">
|
<profile name="LiveInstall" description="Live Install ISO">
|
||||||
<requires profile="BaseCommon"/>
|
<requires profile="BaseCommon"/>
|
||||||
<requires profile="BootCore"/>
|
<requires profile="BootCoreLive"/>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
<preferences profiles="LiveInstall" arch="x86_64">
|
<preferences profiles="LiveInstall" arch="x86_64">
|
||||||
|
|||||||
@@ -419,7 +419,7 @@ FOE
|
|||||||
chmod a+x /usr/share/applications/fedora-design-team.desktop
|
chmod a+x /usr/share/applications/fedora-design-team.desktop
|
||||||
|
|
||||||
# Use Powerline in bash
|
# Use Powerline in bash
|
||||||
cat >> $HOME/.bashrc << FOE
|
cat >> /etc/profile.d/powerline-shell.sh << FOE
|
||||||
# Enable powerline daemon
|
# Enable powerline daemon
|
||||||
if [ -f `which powerline-daemon` ]; then
|
if [ -f `which powerline-daemon` ]; then
|
||||||
powerline-daemon -q
|
powerline-daemon -q
|
||||||
@@ -428,6 +428,7 @@ if [ -f `which powerline-daemon` ]; then
|
|||||||
. /usr/share/powerline/bash/powerline.sh
|
. /usr/share/powerline/bash/powerline.sh
|
||||||
fi
|
fi
|
||||||
FOE
|
FOE
|
||||||
|
chmod 644 /etc/profile.d/powerline-shell.sh
|
||||||
# End powerline override
|
# End powerline override
|
||||||
|
|
||||||
# Override the favorite desktop application in Dash
|
# Override the favorite desktop application in Dash
|
||||||
|
|||||||
+5
-20
@@ -16,7 +16,7 @@ usage() {
|
|||||||
exit 255
|
exit 255
|
||||||
}
|
}
|
||||||
|
|
||||||
optTemp=$(getopt --options '+k:,f:,i,o:,t:,p:,r:,d,h' --longoptions 'kiwi-description-dir:,kiwi-file:,isolated,output-dir:,image-type:,image-profile:,image-release:,debug,help' --name "$kiwibuildsh" -- "$@")
|
optTemp=$(getopt --options '+k:,f:,i,b:,o:,t:,p:,r:,d,h' --longoptions 'kiwi-description-dir:,kiwi-file:,isolated,kiwi-bundle-format:,output-dir:,image-type:,image-profile:,image-release:,debug,help' --name "$kiwibuildsh" -- "$@")
|
||||||
eval set -- "$optTemp"
|
eval set -- "$optTemp"
|
||||||
unset optTemp
|
unset optTemp
|
||||||
|
|
||||||
@@ -29,6 +29,7 @@ kiwi_isolated=
|
|||||||
# For compatibility with older scripts where these did not exist
|
# For compatibility with older scripts where these did not exist
|
||||||
kiwi_description_dir="./"
|
kiwi_description_dir="./"
|
||||||
kiwi_file="Fedora.kiwi"
|
kiwi_file="Fedora.kiwi"
|
||||||
|
kiwi_bundle_format=
|
||||||
kiwibuild_extra_args=
|
kiwibuild_extra_args=
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
@@ -36,6 +37,7 @@ while true; do
|
|||||||
-i|--isolated) kiwi_isolated=1; shift ;;
|
-i|--isolated) kiwi_isolated=1; shift ;;
|
||||||
-k|--kiwi-description-dir) kiwi_description_dir="$2" ; shift 2 ;;
|
-k|--kiwi-description-dir) kiwi_description_dir="$2" ; shift 2 ;;
|
||||||
-f|--kiwi-file) kiwi_file="$2" ; shift 2 ;;
|
-f|--kiwi-file) kiwi_file="$2" ; shift 2 ;;
|
||||||
|
-b|--kiwi-bundle-format) kiwi_bundle_format="$2" ; shift 2 ;;
|
||||||
-o|--output-dir) output_dir="$2" ; shift 2 ;;
|
-o|--output-dir) output_dir="$2" ; shift 2 ;;
|
||||||
-t|--image-type) image_type="$2" ; shift 2 ;;
|
-t|--image-type) image_type="$2" ; shift 2 ;;
|
||||||
-p|--image-profile) image_profile="$2" ; shift 2 ;;
|
-p|--image-profile) image_profile="$2" ; shift 2 ;;
|
||||||
@@ -54,8 +56,10 @@ if [ -z "$output_dir" ] || [ -z "$image_type" ] || [ -z "$image_profile" ] || [
|
|||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$kiwi_bundle_format" ]; then
|
||||||
# Set the bundle format after we know the profile
|
# Set the bundle format after we know the profile
|
||||||
kiwi_bundle_format=$("${kiwibuild_scriptdir}/scripts/fedora-kiwi-bundle-format-generator" "${kiwi_file}" "${image_profile}")
|
kiwi_bundle_format=$("${kiwibuild_scriptdir}/scripts/fedora-kiwi-bundle-format-generator" "${kiwi_file}" "${image_profile}")
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$image_type" = "iso" ]; then
|
if [ "$image_type" = "iso" ]; then
|
||||||
# Add parameters for embedded ISO IDs
|
# Add parameters for embedded ISO IDs
|
||||||
@@ -63,18 +67,6 @@ if [ "$image_type" = "iso" ]; then
|
|||||||
kiwibuild_extra_args="${kiwibuild_extra_args:+${kiwibuild_extra_args}} ${kiwibuild_iso_extra_args}"
|
kiwibuild_extra_args="${kiwibuild_extra_args:+${kiwibuild_extra_args}} ${kiwibuild_iso_extra_args}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$image_type" = "oci" ]; then
|
|
||||||
# Extend for OCI images
|
|
||||||
kiwi_bundle_format="${kiwi_bundle_format}.%T"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! ${kiwi_isolated} ] && [ -e "/sys/fs/selinux/enforce" ]; then
|
|
||||||
# Disable SELinux enforcement during the image build if it's enforcing
|
|
||||||
selinux_enforcing="$(cat /sys/fs/selinux/enforce)"
|
|
||||||
if [ "$selinux_enforcing" = "1" ]; then
|
|
||||||
setenforce 0
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
if [ ! ${kiwi_isolated} ]; then
|
if [ ! ${kiwi_isolated} ]; then
|
||||||
@@ -85,13 +77,6 @@ fi
|
|||||||
kiwi_status=$?
|
kiwi_status=$?
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ ! ${kiwi_isolated} ] && [ -e "/sys/fs/selinux/enforce" ]; then
|
|
||||||
# Re-enable SELinux enforcement now that image build is done
|
|
||||||
if [ "$selinux_enforcing" = "1" ]; then
|
|
||||||
setenforce 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${kiwi_status}" = "0" ] && [ -n "$image_release" ]; then
|
if [ "${kiwi_status}" = "0" ] && [ -n "$image_release" ]; then
|
||||||
kiwi-ng ${debug} result bundle --bundle-format="${kiwi_bundle_format}" --target-dir "${output_dir}-build" --bundle-dir "${output_dir}" --id="${image_release}"
|
kiwi-ng ${debug} result bundle --bundle-format="${kiwi_bundle_format}" --target-dir "${output_dir}-build" --bundle-dir "${output_dir}" --id="${image_release}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -111,6 +111,9 @@ maintainers = [ "Matthew Kosarek", "Neal Gompa" ]
|
|||||||
[spins.phosh.x86_64]
|
[spins.phosh.x86_64]
|
||||||
fas = [ "lihis", "phosh-sig" ]
|
fas = [ "lihis", "phosh-sig" ]
|
||||||
maintainers = [ "Tomi Lähteenmäki", "phosh-sig" ]
|
maintainers = [ "Tomi Lähteenmäki", "phosh-sig" ]
|
||||||
|
[spins.phosh.aarch64]
|
||||||
|
fas = [ "lihis", "phosh-sig" ]
|
||||||
|
maintainers = [ "Tomi Lähteenmäki", "phosh-sig" ]
|
||||||
|
|
||||||
# Silverblue
|
# Silverblue
|
||||||
[silverblue.x86_64]
|
[silverblue.x86_64]
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import xml.etree.ElementTree as ET
|
|||||||
parser = ArgumentParser(description="Generator of kiwi bundle formats for Fedora image builds")
|
parser = ArgumentParser(description="Generator of kiwi bundle formats for Fedora image builds")
|
||||||
parser.add_argument("kiwi_file", type=Path, default="Fedora.kiwi", help="kiwi description file")
|
parser.add_argument("kiwi_file", type=Path, default="Fedora.kiwi", help="kiwi description file")
|
||||||
parser.add_argument("image_profile", type=str, help="kiwi image profile")
|
parser.add_argument("image_profile", type=str, help="kiwi image profile")
|
||||||
parser.add_argument("--oci-variant", "-o", action="store_true", help="generate oci variant")
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
xml_tree = ET.parse(args.kiwi_file)
|
xml_tree = ET.parse(args.kiwi_file)
|
||||||
@@ -23,9 +22,4 @@ image_root = xml_tree.getroot()
|
|||||||
image_basename = image_root.attrib["name"]
|
image_basename = image_root.attrib["name"]
|
||||||
image_profile = args.image_profile
|
image_profile = args.image_profile
|
||||||
|
|
||||||
image_bundle_format = f"{image_basename}-{image_profile}-%v.%I.%A"
|
print(f"{image_basename}-{image_profile}-%v.%I.%A")
|
||||||
|
|
||||||
if args.oci_variant:
|
|
||||||
print(f"{image_bundle_format}.%T")
|
|
||||||
else:
|
|
||||||
print(image_bundle_format)
|
|
||||||
|
|||||||
@@ -35,8 +35,6 @@
|
|||||||
<package name="mesa-dri-drivers.i686"/>
|
<package name="mesa-dri-drivers.i686"/>
|
||||||
<package name="mesa-vulkan-drivers.x86_64"/>
|
<package name="mesa-vulkan-drivers.x86_64"/>
|
||||||
<package name="mesa-vulkan-drivers.i686"/>
|
<package name="mesa-vulkan-drivers.i686"/>
|
||||||
<package name="mesa-va-drivers.x86_64"/>
|
|
||||||
<package name="mesa-va-drivers.i686"/>
|
|
||||||
<package name="mesa-demos.x86_64"/>
|
<package name="mesa-demos.x86_64"/>
|
||||||
<package name="libglvnd-opengl.x86_64"/>
|
<package name="libglvnd-opengl.x86_64"/>
|
||||||
<package name="libglvnd-opengl.i686"/>
|
<package name="libglvnd-opengl.i686"/>
|
||||||
|
|||||||
@@ -231,7 +231,6 @@
|
|||||||
<package name="man-db"/>
|
<package name="man-db"/>
|
||||||
<package name="man-pages"/>
|
<package name="man-pages"/>
|
||||||
<package name="mesa-dri-drivers"/>
|
<package name="mesa-dri-drivers"/>
|
||||||
<package name="mesa-va-drivers" arch="aarch64,ppc64le,x86_64,riscv64"/> <!-- doesn't exist in s390x -->
|
|
||||||
<package name="mesa-vulkan-drivers"/>
|
<package name="mesa-vulkan-drivers"/>
|
||||||
<package name="mtr"/>
|
<package name="mtr"/>
|
||||||
<package name="nss-mdns"/>
|
<package name="nss-mdns"/>
|
||||||
|
|||||||
@@ -12,4 +12,8 @@
|
|||||||
<packages type="bootstrap" patternType="plusRecommended" profiles="Sway-Live,Sway-Disk">
|
<packages type="bootstrap" patternType="plusRecommended" profiles="Sway-Live,Sway-Disk">
|
||||||
<package name="fedora-release-sway"/>
|
<package name="fedora-release-sway"/>
|
||||||
</packages>
|
</packages>
|
||||||
|
<packages type="image" patternType="plusRecommended" profiles="Sway-Live">
|
||||||
|
<!-- Required to display installation instructions -->
|
||||||
|
<package name="nwg-wrapper"/>
|
||||||
|
</packages>
|
||||||
</image>
|
</image>
|
||||||
|
|||||||
Reference in New Issue
Block a user