|
From: Bruce S. <bw...@ar...> - 2003-12-24 02:56:45
|
> > I can do that. So the only entries in the default lvmtab file are: > > /home /opt & swap ??? > > Probably but why not put the standard LVs there too so the > user has a place to lock at than to dig into the source of > the script to find out where things get mounted. I'd rather add comments in the file explaining how it works. > > How is /proc/lvm/VGs/devil-linux/LVs/ different than > > /dev/devil-linux/ ? Or which is the best one to use? > > /proc/lvm/VGs/devil-linux/LVs/ is probably the cleaner way. Before > a certain release of LVM it was not possible to get the info via > that path, that's why I did stick with the "old" way when I did the > current script. OK. > > You can mount disks on existing directories on the CD, you just can't > > create new directories. (i.e. I can mount something under /mnt) > > > > So, if the directory doesn't already exist, try to create it. If it > > can't be created then display an error. > > What I meant was if we have to creat a directory we might want to > check first if the filesystem is read-only and display an error > in this case. Can the mkdir fail because of something else? If > not, then just checking if mkdir fails would do it too I think. I don't think it matters how mkdir fails. If it fails for any reason, the mount will not work, so we might as well just display the error. - BS |