-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into storage-config-ui-sync-20250219
- Loading branch information
Showing
64 changed files
with
986 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: CI - ISO definition | ||
|
||
on: | ||
push: | ||
paths: | ||
# NOTE: GitHub Actions do not allow using YAML references, the same path | ||
# list is used below for the pull request event. Keep both lists in sync!! | ||
|
||
# this file as well | ||
- .github/workflows/ci-live.yml | ||
# any change in the service subfolder | ||
- live/** | ||
|
||
pull_request: | ||
paths: | ||
# NOTE: GitHub Actions do not allow using YAML references, the same path | ||
# list is used above for the push event. Keep both lists in sync!! | ||
|
||
# this file as well | ||
- .github/workflows/ci-live.yml | ||
# any change in the service subfolder | ||
- live/** | ||
|
||
# allow running manually | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ruby_tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
COVERAGE: 1 | ||
|
||
defaults: | ||
run: | ||
working-directory: ./live | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
distro: [ "tumbleweed" ] | ||
|
||
container: | ||
image: registry.opensuse.org/yast/head/containers_${{matrix.distro}}/yast-ruby | ||
|
||
steps: | ||
|
||
- name: Git Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Configure and refresh repositories | ||
# disable unused repositories to have faster refresh | ||
run: zypper modifyrepo -d repo-non-oss repo-openh264 repo-update && zypper ref | ||
|
||
- name: Install Ruby development files | ||
run: zypper --non-interactive install | ||
make | ||
|
||
- name: Run the tests | ||
run: make check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
------------------------------------------------------------------- | ||
Thu Feb 13 12:10:11 UTC 2025 - Knut Anderssen <[email protected]> | ||
|
||
- gh#agama-project/agama#1970 | ||
- Adapted agama-auto script to reboot by default once the | ||
unattended installation is finished. | ||
- Allow to modify the finish method through the 'agama.finish' | ||
kernel cmdline argument. | ||
|
||
------------------------------------------------------------------- | ||
Fri Sep 20 11:27:29 UTC 2024 - Imobach Gonzalez Sosa <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
live/root/etc/systemd/system/agama-cmdline-process.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[Unit] | ||
Description=Agama kernel cmdline processing | ||
|
||
# have to be after network to be able to download info files | ||
# TODO: what to do in air gap scenario where we still need process cmdline? | ||
After=network-online.target | ||
|
||
# before starting the Agama servers so they read configuration parsed | ||
Before=agama-web-server.service | ||
Before=agama.service | ||
Before=x11-autologin.service | ||
|
||
[Service] | ||
Type=oneshot | ||
Environment=TERM=linux | ||
ExecStart=agama-kernel-cmdline.sh | ||
StandardInput=tty | ||
TimeoutSec=0 | ||
|
||
[Install] | ||
WantedBy=default.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,8 @@ [email protected] | |
Before[email protected] | ||
Before[email protected] | ||
|
||
# kernel command line option | ||
ConditionKernelCommandLine=live.password_dialog | ||
# and after we process agama params like info which can contain kernel parameters | ||
After=agama-cmdline-process.service | ||
|
||
[Service] | ||
Type=oneshot | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,8 @@ [email protected] | |
Before[email protected] | ||
Before[email protected] | ||
|
||
# kernel command line option | ||
ConditionKernelCommandLine=live.password_systemd | ||
# and after we process agama params like info which can contain kernel parameters | ||
After=agama-cmdline-process.service | ||
|
||
[Service] | ||
Type=oneshot | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#! /bin/sh | ||
|
||
kernel-cmdline-conf.sh | ||
info-cmdline-conf.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#! /bin/sh | ||
|
||
# Script that expand agama.info parameter by downloading its file and appending it to agama.conf | ||
# the info content is stored in info.conf | ||
|
||
set -e | ||
|
||
TARGET="${1:-/run/agama/cmdline.d/agama.conf}" | ||
INFO_CONTENT="${2:-/run/agama/cmdline.d/info.conf}" | ||
|
||
expand_info_arg() { | ||
INFO_URL=$(sed -n 's/\(.*[[:space:]]\|^\)agama\.info=\([^[:space:]]\+\).*/\2/p' "$TARGET") | ||
if [ -z "${INFO_URL}" ]; then | ||
return 0 | ||
fi | ||
|
||
# TODO: should we use also --location-trusted if info file url contain user and password? | ||
# if so check with security team | ||
curl --location --silent "${INFO_URL}" > "${INFO_CONTENT}" | ||
# remove info param | ||
sed -in 's/\([[:space:]]\|^\)agama\.info=[^[:space:]]\+//' "${TARGET}" | ||
# and add content of info file | ||
cat "${INFO_CONTENT}" >> "${TARGET}" | ||
|
||
return 0 | ||
} | ||
|
||
expand_info_arg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#! /bin/sh | ||
|
||
# Script to clean kernel command line from agama specific parameters. Result is later used for bootloader proposal. | ||
|
||
SOURCE="${1:-/proc/cmdline}" | ||
TARGET="${2:-/run/agama/cmdline.d/kernel.conf}" | ||
|
||
write_kernel_args() { | ||
DIR=$(dirname "${TARGET}") | ||
mkdir -p "$DIR" | ||
# ensure that kernel cmdline line is created to avoid reading agama params | ||
# if there is no kernel params | ||
touch "${TARGET}" | ||
|
||
for _i in $(cat "${SOURCE}"); do | ||
case ${_i} in | ||
# remove all agama kernel params | ||
# Add here also all linuxrc supported parameters | ||
LIBSTORAGE_* | YAST_* | agama* | Y2* | ZYPP_* | autoyast* ) | ||
_found=1 | ||
;; | ||
esac | ||
|
||
if [ -z "$_found" ]; then | ||
echo "Non-Agama parameter found ($_i)" | ||
echo -n " $_i" >>"${TARGET}" | ||
fi | ||
unset _found | ||
done | ||
|
||
return 0 | ||
} | ||
|
||
write_kernel_args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.