To make it even safer one might also check for the existance of
/var/lib/partman/devices/$dev/loop
loopfile=$(losetup $device 2>/dev/null|cut -f 3 -d ' ')
loopfile=${loopfile#\(}
loopfile=${loopfile%\)}
[ -z "$loopfile" ] && [ -f loop ] && loopfile=$(cat loop)
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
** Also affects: wubi
Importance: Undecided
Status: New
--
When loopfiles are used mkfs has to target the file and not the containing
device
https://bugs.launchpad.net/bugs/177868
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs