Package: di-utils-mkfs
Version: 0.16
Severity: normal
Running "Create a file system" (di-utils-mkfs) on a drive
with no partitions causes this error:
di-utils-mkfs's postinst exited with status 5120
The fix is either to tell the user that there are no partitions,
or (IMHO the preferred way for experts) allow the user to create
a file system on the whole disk. Theoretical (untested) fix
below.
Regards,
Oskar ([EMAIL PROTECTED])
-- System Information
Debian Release: testing/unstable
Kernel Version: Linux oskar 2.4.19 #4 Mon Oct 28 06:49:23 CET 2002 i686 unknown
unknown GNU/Linux
diff -u di-utils-mkfs.postinst.v0 di-utils-mkfs.postinst
--- di-utils-mkfs.postinst.v0 2003-02-21 23:13:27.000000000 +0100
+++ di-utils-mkfs.postinst 2003-02-21 23:15:01.000000000 +0100
@@ -39,6 +39,9 @@
PARTS="$P"
fi
done
+if [ "$PARTS" = "" -a "$ARCH" = "i386" ]; then
+ PARTS=$(for i in /dev/discs/*/disc; do echo -n "$i, "; done)
+fi
PARTS=`echo "$PARTS" | sed 's/, $//'`
db_subst di-utils-mkfs/which-partition PARTITIONS $PARTS
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]