Skip to content

Commit

Permalink
Merge pull request #545 from mzary/master
Browse files Browse the repository at this point in the history
Remove dependency on genisoimage
  • Loading branch information
mateuszkwiatkowski authored Sep 4, 2024
2 parents e45b81d + d88bc16 commit e392f82
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/vm-core
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,6 @@ core::create(){
# make sure template has a disk before we start creating anything
[ -z "${_disk}" ] && util::err "template is missing disk0_name specification"

if [ -n "${_enable_cloud_init}" ]; then
if ! which genisoimage > /dev/null; then
util::err "Error: genisoimage is required to work with cloud init! Run 'pkg install cdrkit-genisoimage'."
fi
fi

# get ssh public key for cloud-init from file
if [ -n "${_ssh_key_file}" ]; then

Expand Down Expand Up @@ -317,7 +311,7 @@ ssh_authorized_keys:
EOF
fi

genisoimage -output "${VM_DS_PATH}/${_name}/seed.iso" -volid cidata -joliet -rock ${_cloud_init_dir}/* > /dev/null 2>&1 || util::err "Can't write seed.iso for cloud-init"
makefs -t cd9660 -o R,L=cidata "${VM_DS_PATH}/${_name}/seed.iso" ${_cloud_init_dir} || util::err "Can't write seed.iso for cloud-init"
config::set "${_name}" "disk${_num}_type" "ahci-cd"
config::set "${_name}" "disk${_num}_name" "seed.iso"
config::set "${_name}" "disk${_num}_dev" "file"
Expand Down

0 comments on commit e392f82

Please sign in to comment.