Skip to content

Delete "external" volume once build completed? #56

@hswong3i

Description

@hswong3i

Refer to #55, I found that the created ISO file under /var/lib/libvirt/images are not deleted once build completed or killed, e.g.:

# ls -al /var/lib/libvirt/images
total 4675616
drwxr-xr-x 2 root root         4096 May 14 18:28 .
drwxr-xr-x 7 root root         4096 May 14 00:16 ..
-rw------- 1 root libvirt 797966336 May 14 17:34 packer-chgambijs9f3qa70okrg-ua-cdrom
-rw------- 1 root libvirt 797966336 May 14 17:37 packer-chganqqjs9f3uqi2nntg-ua-cdrom
-rw------- 1 root libvirt 797966336 May 14 17:43 packer-chgaqaijs9f3j9e53r2g-ua-cdrom
-rw------- 1 root libvirt 797966336 May 14 17:45 packer-chgariqjs9f3li6td620-ua-cdrom
-rw------- 1 root libvirt 797966336 May 14 17:46 packer-chgas32js9f3naheds80-ua-cdrom
-rw------- 1 root libvirt 797966336 May 14 18:21 packer-chgbcgqjs9f4hmrbakng-ua-cdrom

As shown, how may time I retry the build, how may time the ISO being copied from packer cache and keep afterward :-(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions