If mkfs is not found, image files are left in the repository
|Assignee:||Javi Fontan||% Done:|
|Target version:||Release 2.2|
Registering a datablock image in the repository:
If mkfs is not found, the Image is not registered into the pool, but the file is left in the repository.
$ which mkfs /usr/bin/which: no mkfs in (...) $ cat datablock.one NAME = "storage" TYPE = DATABLOCK PERSISTENT = YES SIZE = 10 FSTYPE = ext3 $ oneimage register datablock.one Error: mkfs Image: in mkfs command. $ tree var/images/ var/images/ `-- e50d44a16247b5caf2a0d841f5fad778ad38dbeb
Bug #447: 'oneimage register' now has some extra error checks and file cleanup.
(cherry picked from commit c93991f0c49ad8434f82841ae4c8c547ddc268a5)