51 lines
No EOL
1.2 KiB
Text
51 lines
No EOL
1.2 KiB
Text
# Shell process module configuration for Debian Atomic Desktop
|
|
# This handles the post-installation deployment of the atomic image
|
|
|
|
# Post-installation script to deploy atomic image
|
|
script:
|
|
# First, ensure bootc is available
|
|
- command: "which"
|
|
arguments:
|
|
- "bootc"
|
|
timeout: 30
|
|
|
|
# Deploy the atomic image using bootc
|
|
- command: "bootc"
|
|
arguments:
|
|
- "install"
|
|
- "to-disk"
|
|
- "--device"
|
|
- "/dev/sda"
|
|
- "--replace-os"
|
|
- "--image"
|
|
- "debian-atomic:latest"
|
|
timeout: 300
|
|
|
|
# Alternative: deploy from local image if available
|
|
- command: "podman"
|
|
arguments:
|
|
- "load"
|
|
- "-i"
|
|
- "/run/archivemount/atomic-image.tar"
|
|
timeout: 60
|
|
|
|
# Set up bootc configuration with proper error handling
|
|
- command: "bootc"
|
|
arguments:
|
|
- "install"
|
|
- "to-disk"
|
|
- "--device"
|
|
- "/dev/sda"
|
|
- "--replace-os"
|
|
- "--image"
|
|
- "localhost/debian-atomic:latest"
|
|
timeout: 300
|
|
|
|
# Environment variables
|
|
environment:
|
|
BOOTC_IMAGE: "debian-atomic:latest"
|
|
BOOTC_DEVICE: "/dev/sda"
|
|
BOOTC_VERSION: "1.5.1-1~noble1"
|
|
|
|
# Error handling
|
|
onError: "continue" |