Skip to content

Commit

Permalink
Merge master branch (#1898)
Browse files Browse the repository at this point in the history
Merge master branch in order to sync the feature branch for the new
storage UI.
  • Loading branch information
joseivanlopez authored Jan 15, 2025
2 parents 143095e + 6543982 commit a6b50da
Show file tree
Hide file tree
Showing 199 changed files with 4,923 additions and 5,298 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
root = true

# 2 space indentation
[{*.sh}]
[*.sh]
indent_style = space
indent_size = 2
19 changes: 12 additions & 7 deletions .github/workflows/ci-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ jobs:
fetch-depth: 0
fetch-tags: true

- name: Checkout integration tests
uses: actions/checkout@v4
with:
path: integration-tests
repository: ${{ github.repository_owner }}/integration-tests
fetch-depth: 1

- name: Build integration test
run: npm ci && ESLINT=0 npm run build
working-directory: ./integration-tests

- name: Created shared YaST log directory
run: mkdir -p /tmp/log/YaST2 /tmp/log/puppeteer

Expand Down Expand Up @@ -71,16 +82,10 @@ jobs:
- name: Run the Agama smoke test
run: podman exec agama curl http://localhost

- name: Run the Puppeteer tests
# update the test file and the runner script from git
run: podman exec agama bash -c
"cp /checkout/puppeteer/tests/test_root_password.js /usr/share/agama/integration-tests/tests &&
cp /checkout/puppeteer/agama-integration-tests /usr/bin/agama-integration-tests"

- name: Run the Puppeteer tests
# run the test
run: podman exec agama bash -c "cd /var/log/puppeteer &&
agama-integration-tests /usr/share/agama/integration-tests/tests/test_root_password.js"
node --enable-source-maps --test-reporter=spec /checkout/integration-tests/dist/test_root_password.js"

- name: Again show the D-Bus services log
# run even when any previous step fails
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/obs-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Publish a new version
# - Submit the packages to systemsmanagement:Agama:Devel
# - Submit the packages to the OBS project defined in OBS_PROJECT_RELEASE variable
# at GitHub (in the original repository it is set to systemsmanagement:Agama:Release,
# see https://github.com/agama-project/agama/settings/variables/actions,
# you might change that in forks)
# - Send submit requests

name: Release
Expand All @@ -11,29 +14,35 @@ on:
- v[0-9]*

jobs:
# Note: agama-integration-tests and the Live ISO are currently not submitted
# Note: the Live ISO is currently not submitted

update_rust:
uses: ./.github/workflows/obs-staging-shared.yml
# pass all secrets
secrets: inherit
with:
install_packages: obs-service-cargo_audit obs-service-cargo_vendor
project_name: systemsmanagement:Agama:Devel
package_name: agama
service_file: rust/package/_service

update_web:
uses: ./.github/workflows/obs-staging-shared.yml
# pass all secrets
secrets: inherit
with:
install_packages: obs-service-node_modules
project_name: systemsmanagement:Agama:Devel
package_name: cockpit-agama
package_name: agama-web-ui
service_file: web/package/_service

update_service:
uses: ./.github/workflows/obs-service-shared.yml
# pass all secrets
secrets: inherit

update_products:
uses: ./.github/workflows/obs-staging-shared.yml
# pass all secrets
secrets: inherit
with:
project_name: systemsmanagement:Agama:Devel
package_name: agama-products
service_file: products.d/_service
24 changes: 0 additions & 24 deletions .github/workflows/obs-staging-integration-tests.yml

This file was deleted.

9 changes: 9 additions & 0 deletions doc/answers_example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"answers": [
{
"answer": "decrypt",
"class": "storage.luks_activation",
"password": "my_password"
}
]
}
3 changes: 0 additions & 3 deletions doc/answers_example.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions live/root/usr/lib/dracut/modules.d/99agama-cmdline/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dracut agama-cmdline module
-------------------------------

This module writes any agama configuration given through the kernel cmdline
to its own cmdline conf file copying it to the sysroot.

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#! /bin/sh

[ -e /dracut-state.sh ] && . /dracut-state.sh

. /lib/dracut-lib.sh

get_agama_args() {
local _i _found

for _i in $CMDLINE; do
case $_i in
LIBSTORAGE_* | YAST_* | agama* | Y2* | ZYPP_*)
_found=1
;;
esac

if [ -n "$_found" ]; then
printf "Agama variable found ($_i)"
if ! strstr "$_i" "="; then
# Set the variable as a boolean if there is no assignation
_i="${_i}=1"
fi
echo $_i >>/etc/cmdline.d/99-agama-cmdline.conf
fi
unset _found
done

return 0
}

get_agama_args
21 changes: 21 additions & 0 deletions live/root/usr/lib/dracut/modules.d/99agama-cmdline/module-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# called by dracut
check() {
return 0
}

# called by dracut
depends() {
return 0
}

installkernel() {
return 0
}

# called by dracut
install() {
inst_hook cmdline 99 "$moddir/agama-cmdline-conf.sh"
inst_hook pre-pivot 99 "$moddir/save-agama-conf.sh"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! /bin/sh

[ -e /dracut-state.sh ] && . /dracut-state.sh

. /lib/dracut-lib.sh

if [ -e /etc/cmdline.d/99-agama-cmdline.conf ]; then
echo "Creating agama conf"
mkdir -p "$NEWROOT/etc/agama.d"
cp /etc/cmdline.d/99-agama-cmdline.conf "$NEWROOT/etc/agama.d/cmdline.conf"
fi
17 changes: 17 additions & 0 deletions live/src/agama-installer.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Fri Jan 10 21:22:03 UTC 2025 - Imobach Gonzalez Sosa <[email protected]>

- Version 11

-------------------------------------------------------------------
Fri Jan 10 09:03:06 UTC 2025 - Imobach Gonzalez Sosa <[email protected]>

- Depend on Ruby's default version (gh#agama-project/agama#1872).

-------------------------------------------------------------------
Wed Jan 8 12:10:39 UTC 2025 - Knut Anderssen <[email protected]>

- Make agama kernel cmdline options available in the sysroot at
/etc/agama.d/cmdline.conf and set it as a EnvironmentFile
in Agama related services (gh#agama-project/agama#1866).

-------------------------------------------------------------------
Tue Dec 10 12:46:06 UTC 2024 - Michal Filka <[email protected]>

Expand Down
10 changes: 3 additions & 7 deletions live/src/agama-installer.kiwi
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<profile name="Leap-PXE" description="openSUSE Leap OEM image for remote installation" import="true" />
</profiles>
<preferences>
<version>10.0.0</version>
<version>11.0.0</version>
<packagemanager>zypper</packagemanager>
<locale>en_US</locale>
<keytable>us</keytable>
Expand Down Expand Up @@ -144,6 +144,8 @@
<package name="agama-cli"/>
<package name="agama-auto"/>
<package name="agama-integration-tests"/>
<package name="rubygem(agama-yast)"/>
<package name="rubygem(byebug)"/>
<package name="microos-tools"/>
<package name="icewm-lite"/>
<package name="xinit"/>
Expand All @@ -166,8 +168,6 @@
<package name="grub2-branding-openSUSE" arch="aarch64,x86_64"/>
<package name="openSUSE-repos-Leap"/>
<package name="patterns-openSUSE-base"/>
<package name="ruby3.2-rubygem-agama-yast"/>
<package name="ruby3.2-rubygem-byebug"/>
<package name="staging-build-key"/>
<package name="openSUSE-build-key"/>
<package name="MozillaFirefox-branding-openSUSE"/>
Expand All @@ -178,8 +178,6 @@
<package name="grub2-branding-openSUSE" arch="aarch64,x86_64"/>
<package name="openSUSE-repos-Tumbleweed"/>
<package name="patterns-openSUSE-base"/>
<package name="ruby3.3-rubygem-agama-yast"/>
<package name="ruby3.3-rubygem-byebug"/>
<package name="staging-build-key"/>
<package name="openSUSE-build-key"/>
<package name="MozillaFirefox-branding-openSUSE"/>
Expand All @@ -189,8 +187,6 @@
<package name="agama-products-sle"/>
<package name="grub2-branding-SLE" arch="aarch64,x86_64"/>
<package name="patterns-sles-base"/>
<package name="ruby3.2-rubygem-agama-yast"/>
<package name="ruby3.2-rubygem-byebug"/>
<package name="suse-build-key"/>
<package name="MozillaFirefox-branding-SLE"/>
</packages>
Expand Down
16 changes: 8 additions & 8 deletions live/src/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ echo "root_disk=live:LABEL=$label" >>/etc/cmdline.d/10-liveroot.conf
# if there's a default network location, add it here
# echo "root_net=" >> /etc/cmdline.d/10-liveroot.conf
echo 'install_items+=" /etc/cmdline.d/10-liveroot.conf "' >/etc/dracut.conf.d/10-liveroot-file.conf
echo 'add_dracutmodules+=" dracut-menu "' >>/etc/dracut.conf.d/10-liveroot-file.conf
echo 'add_dracutmodules+=" dracut-menu agama-cmdline "' >>/etc/dracut.conf.d/10-liveroot-file.conf

if [ "${arch}" = "s390x" ];then
# workaround for custom bootloader setting
touch /config.bootoptions
if [ "${arch}" = "s390x" ]; then
# workaround for custom bootloader setting
touch /config.bootoptions
fi

# replace the @@LIVE_MEDIUM_LABEL@@ with the real Live partition label name from KIWI
Expand All @@ -111,7 +111,7 @@ rm /var/log/zypper.log /var/log/zypp/history
# reduce the "vim-data" content, this package is huge (37MB unpacked!), keep only
# support for JSON (for "agama config edit") and Ruby (fixing/debugging the Ruby
# service)
rpm -ql vim-data | grep -v -e '/ruby.vim$' -e '/json.vim$' -e colors | xargs rm 2> /dev/null || true
rpm -ql vim-data | grep -v -e '/ruby.vim$' -e '/json.vim$' -e colors | xargs rm 2>/dev/null || true

du -h -s /usr/{share,lib}/locale/

Expand All @@ -125,7 +125,7 @@ du -h -s /usr/{share,lib}/locale/
mkdir -p /etc/agama.d
# emulate "localectl list-locales" call, it cannot be used here because it
# insists on running systemd as PID 1 :-/
ls -1 -d /usr/lib/locale/*.utf8 | sed -e "s#/usr/lib/locale/##" -e "s#utf8#UTF-8#" > /etc/agama.d/locales
ls -1 -d /usr/lib/locale/*.utf8 | sed -e "s#/usr/lib/locale/##" -e "s#utf8#UTF-8#" >/etc/agama.d/locales

# delete translations and unusupported languages (makes ISO about 22MiB smaller)
# build list of ignore options for "ls" with supported languages like "-I cs* -I de* -I es* ..."
Expand All @@ -138,7 +138,7 @@ ls -1 "${IGNORE_OPTS[@]}" -I "en_US*" -I "C.*" /usr/lib/locale/ | xargs -I% sh -

# delete unused translations (MO files)
for t in zypper gettext-runtime p11-kit; do
rm -f /usr/share/locale/*/LC_MESSAGES/$t.mo
rm -f /usr/share/locale/*/LC_MESSAGES/$t.mo
done
du -h -s /usr/{share,lib}/locale/

Expand Down Expand Up @@ -180,7 +180,7 @@ du -h -s /lib/modules /lib/firmware

# disable the services included by dependencies
for s in purge-kernels; do
systemctl -f disable $s || true
systemctl -f disable $s || true
done

# Only used for OpenCL and X11 acceleration on vmwgfx (?), saves ~50MiB
Expand Down
35 changes: 35 additions & 0 deletions products.d/agama-products.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
-------------------------------------------------------------------
Mon Jan 13 09:04:21 UTC 2025 - Imobach Gonzalez Sosa <[email protected]>

- Update SLES4SAP ID to SLES_SAP (gh#agama-project/agama#1890).

-------------------------------------------------------------------
Fri Jan 10 16:13:30 UTC 2025 - Imobach Gonzalez Sosa <[email protected]>

- Add the user selectable patterns list to the SLES product
(gh#agama-project/agama#1885).

-------------------------------------------------------------------
Fri Jan 10 14:51:35 UTC 2025 - Imobach Gonzalez Sosa <[email protected]>

- Update SLES name (gh#agama-project/agama#1883).

-------------------------------------------------------------------
Wed Jan 8 14:07:21 UTC 2025 - Imobach Gonzalez Sosa <[email protected]>

- Add support for products registration (jsc#PED-11192,
gh#agama-project/agama#1809).

-------------------------------------------------------------------
Tue Jan 7 12:57:13 UTC 2025 - Lubos Kocman <[email protected]>

- Drop yast from Leap 16.0 software selection
code-o-o#leap/features#173

-------------------------------------------------------------------
Mon Jan 6 14:41:28 UTC 2025 - Angela Briel <[email protected]>

- SLES for SAP Application product:
Change product description.
(bsc#1235023)

-------------------------------------------------------------------
Thu Dec 5 11:04:06 UTC 2024 - Angela Briel <[email protected]>

Expand Down
3 changes: 0 additions & 3 deletions products.d/leap_160.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ software:
- basic_desktop
- gnome
- kde
- yast2_basis
- yast2_desktop
- yast2_server
- multimedia
- office
mandatory_packages:
Expand Down
Loading

0 comments on commit a6b50da

Please sign in to comment.