|
From: Friedrich L. <fl...@fl...> - 2003-10-22 15:19:21
|
Bruce Smith wrote on 22.10.2003 16:19 MET: >>Ok, that's about what I thought to do. Let's introduce a switch, >>eg. LVM_MOUNT_DEFAULT="/var" or ="" in /etc/sysconfig/config to switch >>between both behaviours. > > > I'm not following you. Why do we need a switch? An extra feature ;-) > I would simply supply a default /etc/lvtab file with the following: > > > #lvname:directory > swap:swap > home:/home > opt:/opt > > > Anything not found in the /etc/lvtab gets mounted in /var/<name> > People are free to add their own entries, or make changes in lvtab. > > That way it's backward compatible, plus being easily customizable. If we add the varibale LVM_MOUNT_DEFAULT where we specify the default mount point the user can decide which is the default mount point. Now he can even decide to have lv's not mentioned in /etc/lvtab to be not mounted at all by setting LVM_MOUNT_DEFAULT to "". Eg. I would do the last one as I really would want to control everything. About the format of /etc/lvtab. I would keep it the same as /etc/fstab with the only difference being that we do not specify the device but just the lv's name. Maybe the user is allowed to omit the columns after the mount point and the script uses some default values, eg. swap swap home /home opt /opt or swap swap home /home auto user,noauto,uid=500 0 0 opt /opt -- MfG / Regards Friedrich Lobenstock ____________________________________________________________________ Friedrich Lobenstock Linux Services Lobenstock URL: http://www.lsl.at/ Email: fl...@fl... ____________________________________________________________________ |