diff options
| author | Your Name <you@example.com> | 2024-12-29 20:16:08 +0800 |
|---|---|---|
| committer | Your Name <you@example.com> | 2024-12-29 20:16:08 +0800 |
| commit | babc557250aaa76e4aac13f52761f660fab2ae8f (patch) | |
| tree | 5eddfa8d97e633508a3e90cb530df18d963d67ee /others/vm3/.config | |
| parent | 6f49e7a01ed42cb1227e5070f5d1095342e9bc29 (diff) | |
debianfileupdate1
Diffstat (limited to 'others/vm3/.config')
| -rwxr-xr-x | others/vm3/.config/cloud-init-generator/debian12.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/others/vm3/.config/cloud-init-generator/debian12.sh b/others/vm3/.config/cloud-init-generator/debian12.sh index 245f73c..d038822 100755 --- a/others/vm3/.config/cloud-init-generator/debian12.sh +++ b/others/vm3/.config/cloud-init-generator/debian12.sh @@ -23,7 +23,6 @@ sudo mkdir -p "$config_dir" [ ! -f "$src_file" ] && echo "source image does not exist! downloading..." && sudo wget -O "$src_file" "$image_url" - # First create a command that will generate all the ssh-inject options SSH_INJECT_OPTS=$(find ${sshkeysdir} -name "*.pub" -exec echo "--ssh-inject user:file:{}" \;) @@ -34,6 +33,7 @@ if [ -f "$flag_file" ]; then echo "Image already customized, skipping customization..." else echo "Customizing image..." + sudo dnf install -y libguestfs libguestfs-tools libvirt virt-install virt-manager guestfs-tools export LIBGUESTFS_BACKEND=direct sudo -E virt-customize -a /var/lib/libvirt/images/.image_store/debian12.qcow2 \ --run-command 'useradd -m -s /bin/bash user' \ |
