Pixel wrote:
> 
> I've got some new code for writing fstab. And also some code to set the
> default options and set some mount point.
> 
> Would you test it?
> In that case
> - first save your fstab.
> - save a formatted fstab that will help comparison
> % perl -e '@l = map { [ split ] } <>; @l = sort { $a->[1] cmp $b->[1] } @l; print 
>join(" ", @$_), "\n" foreach @l' /etc/fstab > /tmp/fstab.save
> - launch diskdrake (from drakxtools-1.1.7-4mdk)
> % TEST_DEFAULT_OPTIONS=1 diskdrake
> - quit diskdrake
> - compare /etc/fstab /tmp/fstab.save
> (use of ediff-buffers recommended:
> % emacs -q --eval '(progn (setq a (find-file "/etc/fstab")) (setq b (find-file 
>"/tmp/fstab.save")) (ediff-buffers a b))'
> then press SPACE or '?')
> 
> thanks, cu Pixel.

0 diffs and fstab not touched.  Did I not do this correctly?


[root@localhost rolf]# TEST_DEFAULT_OPTIONS=1 diskdrake
XID :
CCPID :
modprobe: Can't locate module floppy
wizcancel at /usr/lib/libDrakX/my_gtk.pm line 540.
Attempt to free unreferenced scalar during global destruction.
Attempt to free unreferenced scalar during global destruction.
Attempt to free unreferenced scalar during global destruction.
[root@localhost rolf]# emacs -q --eval '(progn (setq a (find-file "/etc/fstab"))
(setq b (find-file
> "/tmp/fstab.save")) (ediff-buffers a b))'
[root@localhost rolf]# ls -l /etc/fstab
-rw-r--r--    1 root     root          591 Aug 17 16:15 /etc/fstab
[root@localhost rolf]# rpm -qa | grep drakxtools
drakxtools-newt-1.1.7-4mdk
drakxtools-1.1.7-4mdk
[root@localhost rolf]# ls /tmp | grep fstab
fstab.save

Reply via email to