Page 1 of 1

partimage imginfo in batch mode?

Posted: Sat Jan 29, 2011 2:21 pm
by steph2607

Is it possible to get imginfo in batch mode?

% partimage imginfo sauvegarde.000
gives a semi-graphic return.

I would like to get text in console.

Is it possible?

% partimage -b imginfo sauvegarde.000
echo $?
returns 0 if it is a valid partimage image and 1 if it isn't.
That's all.


Posted: Sat Jan 29, 2011 6:32 pm
by feffer
This post might be helpful. I believe imginfo only provides metadata like size, fs type, date created, etc, but no details about the files therein.