[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#184992: di-utils-generic: Generates fstab with bad fstype



tag 184992 + pending
thanks

[Petter Reinholdtsen]
> The file system type is incorrect.  Instead of '0', it should in
> this case read 'ext2'.  File system type 'auto' also work.

The following patch should fix the problem.  It is commited to CVS,
and will be included in the next upload.

Index: fstab.sh
===================================================================
RCS file: /cvs/debian-boot/debian-installer/utils/fstab.sh,v
retrieving revision 1.2
diff -u -3 -p -u -r1.2 fstab.sh
--- fstab.sh    6 Mar 2003 11:02:59 -0000       1.2
+++ fstab.sh    17 Mar 2003 22:35:50 -0000
@@ -15,12 +18,13 @@ mkdir -p `dirname $FSTAB`
        grep " $TARGET" /proc/mounts | \
                while read LINE; do
                set -- `echo $LINE`
+               fstype=$3
                mnt=`echo $2 | sed -e "s#^$TARGET##"`
                [ -z "$mnt" ] && mnt="/"
                pass="2"
                [ "$mnt" = "/" ] && pass="1"
                devpath=`mapdevfs $1` || devpath=$1
-               echo "$devpath  $mnt    $5      defaults        0       $pass"
+               echo "$devpath  $mnt    $fstype defaults        0       $pass"
        done

        # print swaps



Reply to: