Accepting request 784614 from Virtualization:Appliances:Images:openSUSE-Tumbleweed
OBS-URL: https://build.opensuse.org/request/show/784614 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kiwi-templates-JeOS?expand=0&rev=10
This commit is contained in:
commit
63f16f3abe
90
JeOS.kiwi
90
JeOS.kiwi
@ -10,7 +10,6 @@
|
|||||||
</description>
|
</description>
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile name="kvm-and-xen" description="JeOS for KVM and HVM Xen" arch="x86_64"/>
|
<profile name="kvm-and-xen" description="JeOS for KVM and HVM Xen" arch="x86_64"/>
|
||||||
<profile name="XEN" description="JeOS for PV Xen" arch="x86_64"/>
|
|
||||||
<profile name="VMware" description="JeOS for VMware" arch="x86_64"/>
|
<profile name="VMware" description="JeOS for VMware" arch="x86_64"/>
|
||||||
<profile name="MS-HyperV" description="JeOS for Hyper-V" arch="x86_64"/>
|
<profile name="MS-HyperV" description="JeOS for Hyper-V" arch="x86_64"/>
|
||||||
<profile name="OpenStack-Cloud" description="JeOS for OpenStack Cloud" arch="x86_64"/>
|
<profile name="OpenStack-Cloud" description="JeOS for OpenStack Cloud" arch="x86_64"/>
|
||||||
@ -21,12 +20,6 @@
|
|||||||
<packagemanager>zypper</packagemanager>
|
<packagemanager>zypper</packagemanager>
|
||||||
<bootsplash-theme>openSUSE</bootsplash-theme>
|
<bootsplash-theme>openSUSE</bootsplash-theme>
|
||||||
<bootloader-theme>openSUSE</bootloader-theme>
|
<bootloader-theme>openSUSE</bootloader-theme>
|
||||||
<!-- those settings are applied by suseConfig in config.sh
|
|
||||||
<locale>en_US</locale>
|
|
||||||
<keytable>us.map.gz</keytable>
|
|
||||||
<timezone>Europe/Berlin</timezone>
|
|
||||||
<hwclock>utc</hwclock>
|
|
||||||
-->
|
|
||||||
<rpm-excludedocs>true</rpm-excludedocs>
|
<rpm-excludedocs>true</rpm-excludedocs>
|
||||||
<type
|
<type
|
||||||
image="vmx"
|
image="vmx"
|
||||||
@ -57,64 +50,11 @@
|
|||||||
</type>
|
</type>
|
||||||
</preferences>
|
</preferences>
|
||||||
|
|
||||||
<preferences profiles="XEN">
|
|
||||||
<version>15.1.0</version>
|
|
||||||
<packagemanager>zypper</packagemanager>
|
|
||||||
<bootsplash-theme>openSUSE</bootsplash-theme>
|
|
||||||
<bootloader-theme>openSUSE</bootloader-theme>
|
|
||||||
<!-- those settings are applied by suseConfig in config.sh
|
|
||||||
<locale>en_US</locale>
|
|
||||||
<keytable>us.map.gz</keytable>
|
|
||||||
<timezone>Europe/Berlin</timezone>
|
|
||||||
<hwclock>utc</hwclock>
|
|
||||||
-->
|
|
||||||
<rpm-excludedocs>true</rpm-excludedocs>
|
|
||||||
<type
|
|
||||||
image="vmx"
|
|
||||||
filesystem="btrfs"
|
|
||||||
bootprofile="xen"
|
|
||||||
firmware="uefi"
|
|
||||||
efipartsize="33"
|
|
||||||
format="qcow2"
|
|
||||||
bootloader="grub2"
|
|
||||||
kernelcmdline="quiet plymouth.enable=0 console=tty0"
|
|
||||||
bootpartition="false"
|
|
||||||
bootkernel="custom"
|
|
||||||
devicepersistency="by-uuid"
|
|
||||||
btrfs_quota_groups="true"
|
|
||||||
btrfs_root_is_snapshot="true"
|
|
||||||
>
|
|
||||||
<systemdisk>
|
|
||||||
<volume name="home"/>
|
|
||||||
<volume name="root"/>
|
|
||||||
<volume name="tmp"/>
|
|
||||||
<volume name="opt"/>
|
|
||||||
<volume name="srv"/>
|
|
||||||
<volume name="boot/grub2/i386-pc"/>
|
|
||||||
<volume name="boot/grub2/x86_64-efi" mountpoint="boot/grub2/x86_64-efi"/>
|
|
||||||
<volume name="usr/local"/>
|
|
||||||
<volume name="var" copy_on_write="false"/>
|
|
||||||
</systemdisk>
|
|
||||||
<size unit="G">24</size>
|
|
||||||
<machine domain="domU">
|
|
||||||
<!-- creation of hvmloader Xen config file is not supported -->
|
|
||||||
<!-- thus just provide mandatory setup indicating there is a disk -->
|
|
||||||
<vmdisk id="0"/>
|
|
||||||
</machine>
|
|
||||||
</type>
|
|
||||||
</preferences>
|
|
||||||
|
|
||||||
<preferences profiles="VMware">
|
<preferences profiles="VMware">
|
||||||
<version>15.1.0</version>
|
<version>15.1.0</version>
|
||||||
<packagemanager>zypper</packagemanager>
|
<packagemanager>zypper</packagemanager>
|
||||||
<bootsplash-theme>openSUSE</bootsplash-theme>
|
<bootsplash-theme>openSUSE</bootsplash-theme>
|
||||||
<bootloader-theme>openSUSE</bootloader-theme>
|
<bootloader-theme>openSUSE</bootloader-theme>
|
||||||
<!-- those settings are applied by suseConfig in config.sh
|
|
||||||
<locale>en_US</locale>
|
|
||||||
<keytable>us.map.gz</keytable>
|
|
||||||
<timezone>Europe/Berlin</timezone>
|
|
||||||
<hwclock>utc</hwclock>
|
|
||||||
-->
|
|
||||||
<rpm-excludedocs>true</rpm-excludedocs>
|
<rpm-excludedocs>true</rpm-excludedocs>
|
||||||
<type
|
<type
|
||||||
image="vmx"
|
image="vmx"
|
||||||
@ -151,18 +91,11 @@
|
|||||||
<packagemanager>zypper</packagemanager>
|
<packagemanager>zypper</packagemanager>
|
||||||
<bootsplash-theme>openSUSE</bootsplash-theme>
|
<bootsplash-theme>openSUSE</bootsplash-theme>
|
||||||
<bootloader-theme>openSUSE</bootloader-theme>
|
<bootloader-theme>openSUSE</bootloader-theme>
|
||||||
<!-- those settings are applied by suseConfig in config.sh
|
|
||||||
<locale>en_US</locale>
|
|
||||||
<keytable>us.map.gz</keytable>
|
|
||||||
<timezone>Europe/Berlin</timezone>
|
|
||||||
<hwclock>utc</hwclock>
|
|
||||||
-->
|
|
||||||
<rpm-excludedocs>true</rpm-excludedocs>
|
<rpm-excludedocs>true</rpm-excludedocs>
|
||||||
<type
|
<type
|
||||||
image="vmx"
|
image="vmx"
|
||||||
filesystem="xfs"
|
filesystem="xfs"
|
||||||
format="qcow2"
|
format="qcow2"
|
||||||
vga="normal"
|
|
||||||
boottimeout="1"
|
boottimeout="1"
|
||||||
bootloader="grub2"
|
bootloader="grub2"
|
||||||
firmware="uefi"
|
firmware="uefi"
|
||||||
@ -179,12 +112,6 @@
|
|||||||
<packagemanager>zypper</packagemanager>
|
<packagemanager>zypper</packagemanager>
|
||||||
<bootsplash-theme>openSUSE</bootsplash-theme>
|
<bootsplash-theme>openSUSE</bootsplash-theme>
|
||||||
<bootloader-theme>openSUSE</bootloader-theme>
|
<bootloader-theme>openSUSE</bootloader-theme>
|
||||||
<!-- those settings are applied by suseConfig in config.sh
|
|
||||||
<locale>en_US</locale>
|
|
||||||
<keytable>us.map.gz</keytable>
|
|
||||||
<timezone>Europe/Berlin</timezone>
|
|
||||||
<hwclock>utc</hwclock>
|
|
||||||
-->
|
|
||||||
<rpm-excludedocs>true</rpm-excludedocs>
|
<rpm-excludedocs>true</rpm-excludedocs>
|
||||||
<type
|
<type
|
||||||
image="vmx"
|
image="vmx"
|
||||||
@ -221,12 +148,6 @@
|
|||||||
<packagemanager>zypper</packagemanager>
|
<packagemanager>zypper</packagemanager>
|
||||||
<bootsplash-theme>openSUSE</bootsplash-theme>
|
<bootsplash-theme>openSUSE</bootsplash-theme>
|
||||||
<bootloader-theme>openSUSE</bootloader-theme>
|
<bootloader-theme>openSUSE</bootloader-theme>
|
||||||
<!-- those settings are applied by suseConfig in config.sh
|
|
||||||
<locale>en_US</locale>
|
|
||||||
<keytable>us.map.gz</keytable>
|
|
||||||
<timezone>Europe/Berlin</timezone>
|
|
||||||
<hwclock>utc</hwclock>
|
|
||||||
-->
|
|
||||||
<rpm-excludedocs>true</rpm-excludedocs>
|
<rpm-excludedocs>true</rpm-excludedocs>
|
||||||
<type
|
<type
|
||||||
image="oem"
|
image="oem"
|
||||||
@ -300,7 +221,7 @@
|
|||||||
</packages>
|
</packages>
|
||||||
|
|
||||||
<!-- Not needed in OpenStack as it uses XFS and cloud-init -->
|
<!-- Not needed in OpenStack as it uses XFS and cloud-init -->
|
||||||
<packages type="image" profiles="kvm-and-xen,XEN,VMware,MS-HyperV,RaspberryPi">
|
<packages type="image" profiles="kvm-and-xen,VMware,MS-HyperV,RaspberryPi">
|
||||||
<!-- Only for btrfs -->
|
<!-- Only for btrfs -->
|
||||||
<package name="btrfsprogs"/>
|
<package name="btrfsprogs"/>
|
||||||
<package name="btrfsmaintenance"/>
|
<package name="btrfsmaintenance"/>
|
||||||
@ -316,10 +237,8 @@
|
|||||||
<package name="firewalld"/>
|
<package name="firewalld"/>
|
||||||
</packages>
|
</packages>
|
||||||
|
|
||||||
<packages type="image" profiles="kvm-and-xen,XEN">
|
<packages type="image" profiles="kvm-and-xen">
|
||||||
<!-- XEN specific packages -->
|
|
||||||
<package name="xen-tools-domU" arch="x86_64"/>
|
<package name="xen-tools-domU" arch="x86_64"/>
|
||||||
<package name="grub2-x86_64-xen" arch="x86_64"/>
|
|
||||||
<package name="xen-libs" arch="x86_64"/>
|
<package name="xen-libs" arch="x86_64"/>
|
||||||
<package name="kernel-default-base"/>
|
<package name="kernel-default-base"/>
|
||||||
</packages>
|
</packages>
|
||||||
@ -334,9 +253,8 @@
|
|||||||
<package name="kernel-default-base"/>
|
<package name="kernel-default-base"/>
|
||||||
</packages>
|
</packages>
|
||||||
<packages type="image" profiles="MS-HyperV">
|
<packages type="image" profiles="MS-HyperV">
|
||||||
<package name="hyper-v" arch="x86_64"/>
|
<package name="hyper-v"/>
|
||||||
<package name="kernel-default-base"/>
|
<package name="kernel-default-base"/>
|
||||||
<!--<package name="python-azure-agent"/> disabled until bsc#1061584 is fixed -->
|
|
||||||
</packages>
|
</packages>
|
||||||
<packages type="image" profiles="RaspberryPi">
|
<packages type="image" profiles="RaspberryPi">
|
||||||
<package name="raspberrypi-firmware" arch="aarch64"/>
|
<package name="raspberrypi-firmware" arch="aarch64"/>
|
||||||
@ -352,7 +270,7 @@
|
|||||||
</packages>
|
</packages>
|
||||||
|
|
||||||
<!-- TW does not have those release packages
|
<!-- TW does not have those release packages
|
||||||
<packages type="image" profiles="kvm-and-xen,XEN">
|
<packages type="image" profiles="kvm-and-xen">
|
||||||
<package name="openSUSE-release-appliance-kvm"/>
|
<package name="openSUSE-release-appliance-kvm"/>
|
||||||
</packages>
|
</packages>
|
||||||
<packages type="image" profiles="OpenStack-Cloud">
|
<packages type="image" profiles="OpenStack-Cloud">
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
<flavor>kvm-and-xen</flavor>
|
<flavor>kvm-and-xen</flavor>
|
||||||
<flavor>XEN</flavor>
|
|
||||||
<flavor>VMware</flavor>
|
<flavor>VMware</flavor>
|
||||||
<flavor>MS-HyperV</flavor>
|
<flavor>MS-HyperV</flavor>
|
||||||
<flavor>OpenStack-Cloud</flavor>
|
<flavor>OpenStack-Cloud</flavor>
|
||||||
|
55
config.sh
55
config.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Copyright (c) 2015 SUSE LLC
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
# of this software and associated documentation files (the "Software"), to deal
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
@ -27,8 +27,6 @@ test -f /.profile && . /.profile
|
|||||||
|
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
mkdir /var/lib/misc/reconfig_system
|
|
||||||
|
|
||||||
#======================================
|
#======================================
|
||||||
# Greeting...
|
# Greeting...
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
@ -37,7 +35,8 @@ echo "Configure image: [$kiwi_iname]-[$kiwi_profiles]..."
|
|||||||
#======================================
|
#======================================
|
||||||
# add missing fonts
|
# add missing fonts
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
CONSOLE_FONT="eurlatgr.psfu"
|
# Systemd controls the console font now
|
||||||
|
echo FONT="eurlatgr.psfu" >> /etc/vconsole.conf
|
||||||
|
|
||||||
#======================================
|
#======================================
|
||||||
# prepare for setting root pw, timezone
|
# prepare for setting root pw, timezone
|
||||||
@ -50,26 +49,12 @@ rm -f /etc/machine-id \
|
|||||||
/var/lib/dbus/machine-id
|
/var/lib/dbus/machine-id
|
||||||
|
|
||||||
#======================================
|
#======================================
|
||||||
# SuSEconfig
|
# Specify default systemd target
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
echo "** Running suseConfig..."
|
baseSetRunlevel multi-user.target
|
||||||
suseConfig
|
|
||||||
|
|
||||||
echo "** Running ldconfig..."
|
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
#======================================
|
#======================================
|
||||||
# Setup baseproduct link
|
# Import trusted rpm keys
|
||||||
#--------------------------------------
|
|
||||||
suseSetupProduct
|
|
||||||
|
|
||||||
#======================================
|
|
||||||
# Specify default runlevel
|
|
||||||
#--------------------------------------
|
|
||||||
baseSetRunlevel 3
|
|
||||||
|
|
||||||
#======================================
|
|
||||||
# Add missing gpg keys to rpm
|
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
suseImportBuildKey
|
suseImportBuildKey
|
||||||
|
|
||||||
@ -104,35 +89,13 @@ fi
|
|||||||
sed -Ei"" "s/#?GRUB_TERMINAL=.+$/GRUB_TERMINAL=gfxterm/g" /etc/default/grub
|
sed -Ei"" "s/#?GRUB_TERMINAL=.+$/GRUB_TERMINAL=gfxterm/g" /etc/default/grub
|
||||||
sed -Ei"" "s/#?GRUB_GFXMODE=.+$/GRUB_GFXMODE=auto/g" /etc/default/grub
|
sed -Ei"" "s/#?GRUB_GFXMODE=.+$/GRUB_GFXMODE=auto/g" /etc/default/grub
|
||||||
|
|
||||||
# Systemd controls the console font now
|
|
||||||
echo FONT="$CONSOLE_FONT" >> /etc/vconsole.conf
|
|
||||||
|
|
||||||
#======================================
|
|
||||||
# SSL Certificates Configuration
|
|
||||||
#--------------------------------------
|
|
||||||
echo '** Rehashing SSL Certificates...'
|
|
||||||
update-ca-certificates
|
|
||||||
|
|
||||||
if [ ! -s /var/log/zypper.log ]; then
|
|
||||||
> /var/log/zypper.log
|
|
||||||
fi
|
|
||||||
|
|
||||||
#======================================
|
|
||||||
# Import trusted rpm keys
|
|
||||||
#--------------------------------------
|
|
||||||
for i in /usr/lib/rpm/gnupg/keys/gpg-pubkey*asc; do
|
|
||||||
# importing can fail if it already exists
|
|
||||||
rpm --import $i || true
|
|
||||||
done
|
|
||||||
|
|
||||||
#======================================
|
#======================================
|
||||||
# Add repos from control.xml
|
# Add repos from control.xml
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
|
if grep -q opensuse /usr/lib/os-release; then
|
||||||
add-yast-repos
|
add-yast-repos
|
||||||
zypper --non-interactive rm -u live-add-yast-repos
|
zypper --non-interactive rm -u live-add-yast-repos
|
||||||
|
fi
|
||||||
# only for debugging
|
|
||||||
#systemctl enable debug-shell.service
|
|
||||||
|
|
||||||
#=====================================
|
#=====================================
|
||||||
# Configure snapper
|
# Configure snapper
|
||||||
@ -140,7 +103,7 @@ zypper --non-interactive rm -u live-add-yast-repos
|
|||||||
if [ "${kiwi_btrfs_root_is_snapshot-false}" = 'true' ]; then
|
if [ "${kiwi_btrfs_root_is_snapshot-false}" = 'true' ]; then
|
||||||
echo "creating initial snapper config ..."
|
echo "creating initial snapper config ..."
|
||||||
# we can't call snapper here as the .snapshots subvolume
|
# we can't call snapper here as the .snapshots subvolume
|
||||||
# already exists and snapper create-config doens't like
|
# already exists and snapper create-config doesn't like
|
||||||
# that.
|
# that.
|
||||||
cp /etc/snapper/config-templates/default /etc/snapper/configs/root
|
cp /etc/snapper/config-templates/default /etc/snapper/configs/root
|
||||||
# Change configuration to match SLES12-SP1 values
|
# Change configuration to match SLES12-SP1 values
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 12 14:14:03 UTC 2020 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Drop XEN flavor, identical to kvm-and-xen meanwhile (boo#1166474)
|
||||||
|
- Remove obsolete and redundant parts from config.sh
|
||||||
|
- Remove indefinitely commented out sections in JeOS.kiwi
|
||||||
|
- Remove invalid vga="normal"
|
||||||
|
- Add condition to make config.sh suitable for both openSUSE and SLE
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 4 14:09:17 UTC 2020 - Fabian Vogt <fvogt@suse.com>
|
Wed Mar 4 14:09:17 UTC 2020 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user