feat: Add multi-version Debian support (Trixie + Forky)
- Added support for Debian 14 (Forky) testing release - Created examples for both Debian 13 (Trixie) and Debian 14 (Forky) - Added comprehensive multi-version documentation - Created automated version switching script with backup/restore - Updated README with version-specific configuration examples - Added migration guidance between Debian versions This enables users to build images for both stable (Trixie) and testing (Forky) releases with easy switching between versions.
This commit is contained in:
parent
544eb61951
commit
93deac1b8c
7 changed files with 954 additions and 22 deletions
175
examples/debian-multi-version.json
Normal file
175
examples/debian-multi-version.json
Normal file
|
|
@ -0,0 +1,175 @@
|
|||
{
|
||||
"version": "2",
|
||||
"pipelines": [
|
||||
{
|
||||
"name": "build",
|
||||
"runner": "org.osbuild.linux",
|
||||
"stages": [
|
||||
{
|
||||
"name": "org.osbuild.debian.sources",
|
||||
"options": {
|
||||
"suite": "trixie",
|
||||
"mirror": "https://deb.debian.org/debian",
|
||||
"components": ["main", "contrib", "non-free"],
|
||||
"additional_sources": [
|
||||
"deb https://deb.debian.org/debian-security trixie-security main contrib non-free",
|
||||
"deb https://deb.debian.org/debian-updates trixie-updates main contrib non-free"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "org.osbuild.debian.debootstrap",
|
||||
"options": {
|
||||
"suite": "trixie",
|
||||
"mirror": "https://deb.debian.org/debian",
|
||||
"variant": "minbase",
|
||||
"arch": "amd64",
|
||||
"components": ["main", "contrib", "non-free"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "org.osbuild.debian.apt",
|
||||
"options": {
|
||||
"packages": [
|
||||
"ostree",
|
||||
"bootc",
|
||||
"systemd",
|
||||
"systemd-sysv",
|
||||
"linux-image-amd64",
|
||||
"grub2-efi-amd64",
|
||||
"grub2-common",
|
||||
"efibootmgr",
|
||||
"sudo",
|
||||
"openssh-server",
|
||||
"curl",
|
||||
"wget",
|
||||
"vim",
|
||||
"less",
|
||||
"locales",
|
||||
"ca-certificates",
|
||||
"tzdata",
|
||||
"net-tools",
|
||||
"iproute2",
|
||||
"resolvconf",
|
||||
"firmware-linux",
|
||||
"firmware-linux-nonfree",
|
||||
"initramfs-tools"
|
||||
],
|
||||
"update": true,
|
||||
"clean": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "org.osbuild.debian.locale",
|
||||
"options": {
|
||||
"language": "en_US.UTF-8",
|
||||
"additional_locales": ["en_GB.UTF-8", "de_DE.UTF-8", "fr_FR.UTF-8"],
|
||||
"default_locale": "en_US.UTF-8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "org.osbuild.debian.timezone",
|
||||
"options": {
|
||||
"timezone": "UTC"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "org.osbuild.debian.users",
|
||||
"options": {
|
||||
"users": {
|
||||
"debian": {
|
||||
"password": "$6$rounds=656000$salt$hashedpassword",
|
||||
"shell": "/bin/bash",
|
||||
"groups": ["sudo", "users", "adm"],
|
||||
"uid": 1000,
|
||||
"gid": 1000,
|
||||
"home": "/home/debian",
|
||||
"comment": "Debian User"
|
||||
},
|
||||
"admin": {
|
||||
"password": "$6$rounds=656000$salt$hashedpassword",
|
||||
"shell": "/bin/bash",
|
||||
"groups": ["sudo", "users", "adm", "wheel"],
|
||||
"uid": 1001,
|
||||
"gid": 1001,
|
||||
"home": "/home/admin",
|
||||
"comment": "Administrator"
|
||||
}
|
||||
},
|
||||
"default_shell": "/bin/bash",
|
||||
"default_home": "/home"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "org.osbuild.debian.systemd",
|
||||
"options": {
|
||||
"enable_services": [
|
||||
"ssh",
|
||||
"systemd-networkd",
|
||||
"systemd-resolved"
|
||||
],
|
||||
"disable_services": [
|
||||
"systemd-firstboot",
|
||||
"systemd-machine-id-commit"
|
||||
],
|
||||
"mask_services": [
|
||||
"systemd-remount-fs",
|
||||
"systemd-machine-id-commit"
|
||||
],
|
||||
"config": {
|
||||
"DefaultDependencies": "no",
|
||||
"DefaultTimeoutStartSec": "0",
|
||||
"DefaultTimeoutStopSec": "0"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "org.osbuild.debian.bootc",
|
||||
"options": {
|
||||
"enable": true,
|
||||
"config": {
|
||||
"auto_update": true,
|
||||
"rollback_enabled": true
|
||||
},
|
||||
"kernel_args": [
|
||||
"console=ttyS0",
|
||||
"console=tty0",
|
||||
"root=UUID=ROOT_UUID",
|
||||
"quiet",
|
||||
"splash"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "org.osbuild.debian.grub2",
|
||||
"options": {
|
||||
"root_fs_uuid": "ROOT_UUID",
|
||||
"kernel_path": "/boot/vmlinuz",
|
||||
"initrd_path": "/boot/initrd.img",
|
||||
"bootloader_id": "debian",
|
||||
"timeout": 5,
|
||||
"default_entry": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "org.osbuild.debian.ostree",
|
||||
"options": {
|
||||
"repository": "/var/lib/ostree/repo",
|
||||
"branch": "debian/trixie/x86_64/standard",
|
||||
"subject": "Debian Trixie OSTree System",
|
||||
"body": "Complete Debian OSTree system with GRUB2 and bootc"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"assembler": {
|
||||
"name": "org.osbuild.debian.qemu",
|
||||
"options": {
|
||||
"format": "qcow2",
|
||||
"filename": "debian-trixie-ostree.qcow2",
|
||||
"size": "20G",
|
||||
"ptuuid": "12345678-1234-1234-1234-123456789012"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue