diff --git a/live/src/_service b/live/src/_service new file mode 100644 index 0000000000..dc713a1f93 --- /dev/null +++ b/live/src/_service @@ -0,0 +1,3 @@ + + + diff --git a/live/src/config.sh b/live/src/config.sh index fa76ccd53d..0baecc7d5f 100644 --- a/live/src/config.sh +++ b/live/src/config.sh @@ -12,6 +12,18 @@ echo "Configure image: [$kiwi_iname]..." # setup baseproduct link suseSetupProduct +# save the current build data, the %VARIABLES% are replaced by the OBS +# kiwi_metainfo_helper service before starting the build +mkdir -p /var/log/build +cat << EOF > /var/log/build/info +Build date: $(LC_ALL=C date -u "+%F %T %Z") +Build number: Build%RELEASE% +Image profile: $kiwi_profiles +Image version: $kiwi_iversion +Image type: $kiwi_type +Source URL: %SOURCEURL% +EOF + # enable the corresponding repository DISTRO=$(grep "^NAME" /etc/os-release | cut -f2 -d\= | tr -d '"' | tr " " "_") REPO="/etc/zypp/repos.d/agama-${DISTRO}.repo" diff --git a/rust/agama-lib/src/logs.rs b/rust/agama-lib/src/logs.rs index 3b6c66e485..d569beb683 100644 --- a/rust/agama-lib/src/logs.rs +++ b/rust/agama-lib/src/logs.rs @@ -42,8 +42,9 @@ const DEFAULT_COMMANDS: [(&str, &str); 6] = [ ("rpm -qa", "rpm-qa"), ]; -const DEFAULT_PATHS: [&str; 14] = [ +const DEFAULT_PATHS: [&str; 15] = [ // logs + "/var/log/build", "/var/log/YaST2", "/var/log/zypper.log", "/var/log/pbl.log",