~awstools-dev/ubuntu/maverick/ec2-ami-tools/maverick

« back to all changes in this revision

Viewing changes to lib/ec2/platform/solaris/fstab.rb

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-10-14 08:35:25 UTC
  • Revision ID: james.westby@ubuntu.com-20081014083525-c0n69wr7r7aqfb8w
Tags: 1.3-26357-0ubuntu2
* New upstream version.
* Update the debian copyright file.
* Added quilt patch system to make it easier to maintain. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
10
 
 
11
require 'ec2/platform/linux/fstab'
 
12
 
 
13
module EC2
 
14
  module Platform
 
15
    module Solaris
 
16
      class Fstab < EC2::Platform::Linux::Fstab
 
17
        LOCATION = '/etc/vfstab'
 
18
        def initialize(filename = LOCATION)
 
19
          super filename          
 
20
        end
 
21
        
 
22
        DEFAULT = IO.read(File.join('/etc', 'vfstab')) rescue <<TEXT
 
23
# Default /etc/vfstab
 
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
 
27
#
 
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     -
 
38
TEXT
 
39
        LEGACY = :legacy # here for compatibility reasons
 
40
      end
 
41
    end
 
42
  end
 
43
end