1
# Copyright 2008 Amazon.com, Inc. or its affiliates. All Rights
2
# Reserved. Licensed under the Amazon Software License (the
3
# "License"). You may not use this file except in compliance with the
4
# License. A copy of the License is located at
5
# http://aws.amazon.com/asl or in the "license" file accompanying this
6
# file. This file is distributed on an "AS IS" BASIS, WITHOUT
7
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
8
# the License for the specific language governing permissions and
9
# limitations under the License.
11
require 'ec2/platform/linux/fstab'
16
class Fstab < EC2::Platform::Linux::Fstab
17
LOCATION = '/etc/vfstab'
18
def initialize(filename = LOCATION)
22
DEFAULT = IO.read(File.join('/etc', 'vfstab')) rescue <<TEXT
24
# Supplied by: #{PKG_NAME}-#{PKG_VERSION}-#{PKG_RELEASE}
25
#device device mount FS fsck mount mount
26
#to mount to fsck point type pass at boot options
28
fd - /dev/fd fd - no -
29
/proc - /proc proc - no -
30
/dev/dsk/c0d0s1 - - swap - no -
31
/dev/dsk/c0d0s0 /dev/rdsk/c0d0s0 / ufs 1 no -
32
/dev/dsk/c0d1s0 /dev/rdsk/c0d1s0 /mnt ufs 2 no -
33
/devices - /devices devfs - no -
34
sharefs - /etc/dfs/sharetab sharefs - no -
35
ctfs - /system/contract ctfs - no -
36
objfs - /system/object objfs - no -
37
swap - /tmp tmpfs - yes -
39
LEGACY = :legacy # here for compatibility reasons