Skip to content

Instantly share code, notes, and snippets.

View joseivanlopez's full-sized avatar

José Iván López joseivanlopez

  • Suse Linux Gmbh
  • Las Palmas de Gran Canaria
View GitHub Profile

DPS support in Agama: current state and open decisions

Introduction

The Discoverable Partitions Specification (DPS) is designed for appliance-like and image-based devices: one OS on a GPT disk where every partition carries a type GUID that tells its role (root, /usr, /home, /srv, /var, /var/tmp, swap, ESP, ...). With that, systemd can find and mount (and unlock, if LUKS) the partitions without fstab, crypttab or root=. Auto-discovery is only a fallback: it is ignored for anything listed in fstab, and it only looks at the disk the system booted from.

RFC: CVE Fix Skill for Agama

Goal

Automate the process of fixing CVEs (Common Vulnerabilities and Exposures) in the Agama project by:

  1. Discovering new CVEs assigned to Agama in Bugzilla
  2. Classifying CVEs by affected branch and component
  3. Fixing CVEs by updating dependencies in the appropriate branches
  4. Documenting fixes with proper changelog entries including Bugzilla references

Proposal: Automated CVE Issue Tracking

Overview

Implement a GitHub Actions workflow that periodically scans for CVEs affecting Agama dependencies across multiple branches (master + maintenance branches like SLE-16, SLE-16.1, etc.), cross-references them with SUSE bugzilla reports, and automatically creates GitHub issues for tracking.

Rationale: Why bsc-driven instead of proactive CVE scanning?

We are intentionally letting the SUSE security team drive the CVE tracking process rather than proactively looking for all CVEs ourselves. This design decision is based on the following practical considerations:

Analysis: Current vs. Proposed Versioning Approach

Current Approach: Multi-Part Versioning (5.0.X.Y)

How it works:

  • YaST packages use semantic-like versioning: MAJOR.MINOR.PATCH.MAINTENANCE
  • Example: 5.0.3.1 → version 5.0.3 with maintenance update 1
  • The fourth number was recently added for maintenance releases

Critical limitation: The major and minor versions are completely frozen and meaningless.

Dependency Sanitization Analysis Report

Generated: 2026-09-03 Tool: Knip v0.65.x Project: Agama Web


Executive Summary

Duplicate dependency versions

Analysis of crates compiled in multiple versions across the workspace. Run with: cargo tree --duplicates

TL;DR — All 13 conflicts are purely transitive. The workspace itself uses modern versions throughout. No workspace Cargo.toml changes can fix these; they require upstream crate updates.


What you are experiencing is the classic behavior of a standard, non-clustered filesystem (like ext4, Btrfs, or XFS) on shared raw block storage. Standard filesystems assume they have exclusive control over the drive—they cache disk structures in RAM, so when Machine B modifies or deletes partitions on the disk, Machine A's kernel has no idea the disk structure changed and corrupts its memory cache or throws read errors.

To stop two machines from accessing the same LUN at the same time, you have two primary ways to fix this: Target-Side Access Control (The Correct Fix) or Initiator/Cluster-Side Locking.


Option 1: Restrict Access on the iSCSI Target (Recommended)

The safest and most reliable place to prevent concurrent access is at the iSCSI Target (the storage server or SAN exporting the LUN).

Analysis: is there an authoritative list of "data transports" for Linux?

Date: 2026-08-03. All statements below were checked against the current upstream sources (libstorage-ng master, lsscsi master, util-linux master, torvalds/linux master, systemd main, sg3_utils master), against the local system (openSUSE, lsscsi 0.32) and against the local checkouts of yast2-storage-ng and libstorage-ng.

TL;DR

  1. There is no authoritative list of "data transports" for Linux. Neither the kernel nor any

See gist https://gist.github.com/ancorgs/07d8c772226cfd1794631f284b5ad903, section "Searching with drives by their partitions".

I am trying to evaluate the JSON schema proposed in the gist to search for partitions. There are several details I am not convinced about.

Details to improve

Usage of max: 0

max: 0 is used to indicate that none of the partitions matches the given condition: