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
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% \)}
status= failed
loopfile=
loopfile=
if [ -n "$loopfile" ]; then
if log-output -t partman --pass-stdout mkfs.ext3 -F "$loopfile" >/dev/null; then
sync
status=OK
else
fi
else
#run mkfs as usual
fi