Comment 0 for bug 177868

Revision history for this message
Agostino Russo (ago) wrote :

Binary package hint: partman-ext3

When loopfiles are used, mkfs has to target the file and not the containing device.

loopfile=$(losetup $device 2>/dev/null|cut -f 3 -d ' ')
loopfile=${loopfile#\(}
loopfile=${loopfile%\)}
if [ -n "$loopfile" ]; then
   if log-output -t partman --pass-stdout mkfs.ext3 -F "$loopfile" >/dev/null; then
       sync
       status=OK
   else
       status=failed
   fi
else
    #run mkfs as usual
fi