- Drop 'do not prompt for partition dialog if swraid has been
configured already' which doesn't make any sense in most situations
* Minor changes:
+ - check for mounted target in mkfs() step already instead of mount_target()
- use '.. to the debootstrap command' in description of --debopt
* Debian Package:
- bump Standard Version to 3.8.1 (no further changes).
- -- Michael Prokop <mika@grml.org> Fri, 08 May 2009 15:37:58 +0200
+ -- Michael Prokop <mika@grml.org> Fri, 08 May 2009 15:43:02 +0200
grml-debootstrap (0.26) unstable; urgency=low
# create filesystem {{{
mkfs() {
+ if grep -q $TARGET /proc/mounts ; then
+ eerror "$TARGET already mounted, exiting to avoid possible damage. (Manually unmount $TARGET)" ; eend 1
+ exit 1
+ fi
+
if [ -n "$MKFS" ] ; then
einfo "Running $MKFS on $TARGET"
$MKFS $TARGET
einfo "Running grml-debootstrap on a directory, nothing to mount."
else
if grep -q $TARGET /proc/mounts ; then
- eerror "$TARGET already mounted, exiting."
+ ewarn "$TARGET already mounted, continuing anyway." ; eend 0
else
[ -d "$MNTPOINT" ] || mkdir -p "$MNTPOINT"
einfo "Mounting $TARGET to $MNTPOINT"