fixed paths, created ci/cd workflow
Some checks failed
Compile apt-layer / compile (push) Failing after 2s
Some checks failed
Compile apt-layer / compile (push) Failing after 2s
This commit is contained in:
parent
14d7da71e8
commit
29b9675689
26 changed files with 7407 additions and 358 deletions
|
|
@ -54,8 +54,11 @@ Image Management:
|
|||
--oci-import Import OCI image
|
||||
|
||||
System Management:
|
||||
--init Initialize Particle-OS system
|
||||
--reset Reset Particle-OS system
|
||||
--init Initialize apt-layer system
|
||||
--reinit Reinitialize apt-layer system (force recreation)
|
||||
--rm-init Remove apt-layer system (cleanup)
|
||||
--reset Reset apt-layer system
|
||||
--status Show apt-layer system status
|
||||
--help-full Show detailed help
|
||||
--examples Show usage examples
|
||||
|
||||
|
|
@ -78,7 +81,7 @@ EOF
|
|||
# Show full detailed usage information
|
||||
show_full_usage() {
|
||||
cat << 'EOF'
|
||||
Particle-OS apt-layer Tool - Enhanced with Container Support and LIVE SYSTEM LAYERING
|
||||
apt-layer Tool - Enhanced with Container Support and LIVE SYSTEM LAYERING
|
||||
Like rpm-ostree + Vanilla OS Apx for Ubuntu/Debian, now ComposeFS-based
|
||||
|
||||
BASIC LAYER CREATION:
|
||||
|
|
@ -178,14 +181,14 @@ IMAGE MANAGEMENT:
|
|||
|
||||
SYSTEM MANAGEMENT:
|
||||
apt-layer --init
|
||||
# Initialize Particle-OS system
|
||||
# Initialize apt-layer system
|
||||
|
||||
apt-layer --reset
|
||||
# Reset Particle-OS system
|
||||
# Reset apt-layer system
|
||||
|
||||
EXAMPLES:
|
||||
apt-layer particle-os/base/24.04 particle-os/gaming/24.04 steam wine
|
||||
apt-layer --container particle-os/base/24.04 particle-os/dev/24.04 vscode git
|
||||
apt-layer ubuntu-base/24.04 gaming/24.04 steam wine
|
||||
apt-layer --container ubuntu-base/24.04 dev/24.04 vscode git
|
||||
apt-layer --dpkg-install curl wget
|
||||
apt-layer --live-install firefox
|
||||
apt-layer install steam wine
|
||||
|
|
@ -221,8 +224,8 @@ BASIC LAYER CREATION:
|
|||
# Update packages with rollback capability and backup creation
|
||||
|
||||
Examples:
|
||||
apt-layer particle-os/base/24.04 particle-os/gaming/24.04 steam wine
|
||||
apt-layer --container particle-os/base/24.04 particle-os/dev/24.04 vscode git
|
||||
apt-layer ubuntu-base/24.04 gaming/24.04 steam wine
|
||||
apt-layer --container ubuntu-base/24.04 dev/24.04 vscode git
|
||||
apt-layer --dpkg-install curl wget
|
||||
apt-layer --advanced-install firefox
|
||||
EOF
|
||||
|
|
@ -761,20 +764,50 @@ main() {
|
|||
check_incomplete_transactions
|
||||
|
||||
# Check if system needs initialization (skip for help and initialization commands)
|
||||
if [[ "${1:-}" != "--init" && "${1:-}" != "--reset" && "${1:-}" != "--help" && "${1:-}" != "-h" && "${1:-}" != "--help-full" && "${1:-}" != "--examples" && "${1:-}" != "--version" ]]; then
|
||||
if [[ "${1:-}" != "--init" && "${1:-}" != "--reinit" && "${1:-}" != "--rm-init" && "${1:-}" != "--reset" && "${1:-}" != "--status" && "${1:-}" != "--help" && "${1:-}" != "-h" && "${1:-}" != "--help-full" && "${1:-}" != "--examples" && "${1:-}" != "--version" ]]; then
|
||||
check_initialization_needed
|
||||
fi
|
||||
|
||||
# Parse command line arguments first (before dependency checks)
|
||||
case "${1:-}" in
|
||||
--init)
|
||||
# Initialize Particle-OS system
|
||||
initialize_particle_os_system
|
||||
# Initialize apt-layer system
|
||||
initialize_apt_layer_system
|
||||
exit 0
|
||||
;;
|
||||
--reinit)
|
||||
# Reinitialize apt-layer system (force recreation)
|
||||
if command -v reinitialize_apt_layer_system >/dev/null 2>&1; then
|
||||
reinitialize_apt_layer_system
|
||||
else
|
||||
log_error "Reinit function not available" "apt-layer"
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
;;
|
||||
--rm-init)
|
||||
# Remove apt-layer system (cleanup)
|
||||
if command -v remove_apt_layer_system >/dev/null 2>&1; then
|
||||
remove_apt_layer_system
|
||||
else
|
||||
log_error "Remove init function not available" "apt-layer"
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
;;
|
||||
--status)
|
||||
# Show apt-layer system status
|
||||
if command -v show_apt_layer_system_status >/dev/null 2>&1; then
|
||||
show_apt_layer_system_status
|
||||
else
|
||||
log_error "Status function not available" "apt-layer"
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
;;
|
||||
--reset)
|
||||
# Reset Particle-OS system
|
||||
reset_particle_os_system
|
||||
# Reset apt-layer system
|
||||
reset_apt_layer_system
|
||||
exit 0
|
||||
;;
|
||||
--help|-h)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue