Add Podman container and virsh VM options to wrapper scripts
- Add --podman option for isolated container testing (recommended) - Add --vm option for full VM isolation with virsh - Add --help option with comprehensive usage information - Add colored output and safety warnings - Add interactive prompts for direct host execution - Update usage-guide.sh with new safety features - Add proper error handling and command validation Features: - Podman containers with Ubuntu 24.04 and Debian 12 images - virsh VMs with proper networking and storage - Automatic repository cloning and script setup - Volume mounting for workspace sharing - Safety-first approach with clear warnings
This commit is contained in:
parent
38e017cef3
commit
1b307bcd17
3 changed files with 362 additions and 18 deletions
|
|
@ -20,14 +20,16 @@ echo ""
|
|||
echo "🚀 Quick Start Examples:"
|
||||
echo ""
|
||||
echo "For Ubuntu Noble:"
|
||||
echo " ./backport-noble.sh"
|
||||
echo " # or"
|
||||
echo " ./ostree-backport.sh noble"
|
||||
echo " ./backport-noble.sh --podman # Safe: Run in Podman container"
|
||||
echo " ./backport-noble.sh --vm # Safe: Run in VM"
|
||||
echo " ./backport-noble.sh # Direct: Run on host (not recommended)"
|
||||
echo " ./ostree-backport.sh noble # Direct: Main script"
|
||||
echo ""
|
||||
echo "For Debian Trixie:"
|
||||
echo " ./backport-trixie.sh"
|
||||
echo " # or"
|
||||
echo " ./ostree-backport.sh trixie"
|
||||
echo " ./backport-trixie.sh --podman # Safe: Run in Podman container"
|
||||
echo " ./backport-trixie.sh --vm # Safe: Run in VM"
|
||||
echo " ./backport-trixie.sh # Direct: Run on host (not recommended)"
|
||||
echo " ./ostree-backport.sh trixie # Direct: Main script"
|
||||
echo ""
|
||||
|
||||
echo "🔧 What Each Script Does:"
|
||||
|
|
@ -37,6 +39,12 @@ echo " 3. Installs build dependencies"
|
|||
echo " 4. Builds all ostree packages"
|
||||
echo " 5. Installs the backported packages"
|
||||
echo ""
|
||||
echo "🛡️ Safety Features:"
|
||||
echo " • --podman: Run in isolated Podman container (recommended)"
|
||||
echo " • --vm: Run in isolated VM with virsh (full isolation)"
|
||||
echo " • --help: Show usage information and safety warnings"
|
||||
echo " • Interactive prompts for direct host execution"
|
||||
echo ""
|
||||
|
||||
echo "⚠️ Safety Notes:"
|
||||
echo " • Test in a VM first"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue