X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fmachine-image.c;h=c5808af81efe27dfb13cdf6805f9b3b3318a3d25;hp=edf986d4db11801abb0ca47c79b8003793189f3a;hb=e777ddfd71f3b2d3217ffe74f287388832915d0b;hpb=15411c0cb1192799b37ec8f25d6f30e8d7292fc6 diff --git a/src/shared/machine-image.c b/src/shared/machine-image.c index edf986d4d..c5808af81 100644 --- a/src/shared/machine-image.c +++ b/src/shared/machine-image.c @@ -28,6 +28,7 @@ #include "path-util.h" #include "copy.h" #include "mkdir.h" +#include "rm-rf.h" #include "machine-image.h" static const char image_search_path[] = @@ -366,7 +367,7 @@ int image_remove(Image *i) { /* fall through */ case IMAGE_RAW: - return rm_rf_dangerous(i->path, false, true, false); + return rm_rf(i->path, REMOVE_ROOT|REMOVE_PHYSICAL); default: return -EOPNOTSUPP;