Borsenkow Andrej wrote:
> First, srry, my previous patch was wrong, here is better one (unless you 
> figured thos out already).
> 
> Still, part.script is totally broken. Here is my original fstab:
> 
> /dev/hdb5 / reiserfs notail 1 1
> none /dev/pts devpts mode=0620 0 0
> none /dev/shm tmpfs defaults 0 0
> /dev/hdc /mnt/cdrom auto 
> user,iocharset=koi8-r,umask=0,exec,codepage=866,ro,noauto 0 0
> /dev/scd0 /mnt/cdrom2 auto 
> user,iocharset=koi8-r,umask=0,exec,codepage=866,ro,noauto 0 0
> /dev/fd0 /mnt/floppy auto 
> user,iocharset=koi8-r,umask=0,sync,exec,codepage=866,noauto 0 0
> /dev/sda4 /mnt/hd ext2 noauto 0 0
> /dev/hda1 /mnt/win_c vfat iocharset=koi8-r,umask=0,codepage=866 0 0
> /dev/hda5 /mnt/win_d vfat iocharset=koi8-r,umask=0,codepage=866 0 0
> none /proc proc defaults 0 0
> /dev/hdb6 swap swap defaults 0 0
> /dev/hdb7 /mnt/hdb7 reiserfs notail 1 1
> /dev/VG/1 /lvm reiserfs notail,noauto 0 0
> 
> and here is fstab I get after booting with part.script enebled
> 
> {pts/1}% cat /etc/fstab
> 
> /dev/cdrom              /mnt/cdrom              iso9660 
> noauto,owner,kudzu,ro 0
> 0
> /dev/cdrom1             /mnt/cdrom1             iso9660 
> noauto,owner,kudzu,ro 0
> 0
> 
> and all mount point in /mnt are removed.
> 



The reason is here:

{pts/1}% sudo updfstab -t
cannot stat /dev/sda4: No such file or directory
{pts/1}% echo $?
1

and /etc/fstab.dynamic is empty.

/dev/sda4 refers to Jaz drive on parallel port that exists only when I 
connect it. At the very least part.script must check exit code of 
updfstab. Of course, I do not see any error condition in not having 
removable drive available. But I would not like part.script to remove 
this mount point from fstab either.

-andrej


Reply via email to