PageSourceSearch

https://osbuild.org/assets/js/5d38a65a.68586c97.js

js osbuild.org collected 2026-10-04 00:31:45 UTC 7,333 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksaurus=self.webpackChunksaurus||[]).push([[12866],{70297:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>d,default:()=>p,frontMatter:()=>i,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"developer-guide/projects/osbuild/modules/stages/org.osbuild.fstab","title":"org.osbuild.fstab","description":"\x3c!--","source":"@site/docs/developer-guide/02-projects/osbuild/modules/stages/org.osbuild.fstab.md","sourceDirName":"developer-guide/02-projects/osbuild/modules/stages","slug":"/developer-guide/projects/osbuild/modules/stages/org.osbuild.fstab","permalink":"/docs/developer-guide/projects/osbuild/modules/stages/org.osbuild.fstab","draft":false,"unlisted":false,"editUrl":"https://github.com/osbuild/osbuild/tree/main/stages/org.osbuild.fstab.meta.json","tags":[],"version":"current","frontMatter":{"custom_edit_url":"https://github.com/osbuild/osbuild/tree/main/stages/org.osbuild.fstab.meta.json"},"sidebar":"developer","previous":{"title":"org.osbuild.flatpak.build-import-bundle.oci","permalink":"/docs/developer-guide/projects/osbuild/modules/stages/org.osbuild.flatpak.build-import-bundle.oci"},"next":{"title":"org.osbuild.gcp.guest-agent.conf","permalink":"/docs/developer-guide/projects/osbuild/modules/stages/org.osbuild.gcp.guest-agent.conf"}}');var r=t(74848),o=t(28453);const i={custom_edit_url:"https://github.com/osbuild/osbuild/tree/main/stages/org.osbuild.fstab.meta.json"},d="org.osbuild.fstab",a={},l=[{value:"Schema 1",id:"schema-1",level:2},{value:"Schema 2",id:"schema-2",level:2}];function u(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",strong:"strong",...(0,o.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"orgosbuildfstab",children:"org.osbuild.fstab"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.strong,{children:["Create ",(0,r.jsx)(n.code,{children:"/etc/fstab"})," entries for filesystems"]})}),"\n",(0,r.jsxs)(n.p,{children:["Each filesystem item must have at least the fs_spec, i.e ",(0,r.jsx)(n.code,{children:"uuid"}),",\n",(0,r.jsx)(n.code,{children:"label"}),", ",(0,r.jsx)(n.code,{children:"partlabel"})," or ",(0,r.jsx)(n.code,{children:"device"})," and a ",(0,r.jsx)(n.code,{children:"path"})," (mount point).\nThis stage replaces ",(0,r.jsx)(n.code,{children:"/etc/fstab"}),", removing any existing entries.\nNB: The ostree configuration options are experimental and might\nbe replaced with a different mechanism in the near future."]}),"\n",(0,r.jsx)(n.h2,{id:"schema-1",children:"Schema 1"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n  "additionalProperties": false,\n  "required": [\n    "filesystems"\n  ],\n  "properties": {\n    "ostree": {\n      "type": "object",\n      "additionalProperties": false,\n      "required": [\n        "deployment"\n      ],\n      "properties": {\n        "deployment": {\n          "type": "object",\n          "additionalProperties": false,\n          "oneOf": [\n            {\n              "properties": {\n                "default": {\n                  "enum": [\n                    false\n                  ]\n                }\n              },\n              "required": [\n                "osname",\n                "ref"\n              ]\n            },\n            {\n              "properties": {\n                "default": {\n                  "enum": [\n                    true\n                  ]\n                }\n              },\n              "not": {\n                "anyOf": [\n                  {\n                    "required": [\n                      "osname"\n                    ]\n                  },\n                  {\n                    "required": [\n                      "ref"\n                    ]\n                  },\n                  {\n                    "required": [\n                      "serial"\n                    ]\n                  }\n                ]\n              }\n            }\n          ],\n          "properties": {\n            "osname": {\n              "description": "Name of the stateroot to be used in the deployment",\n              "type": "string"\n            },\n            "ref": {\n              "description": "OStree ref to create and use for deployment",\n              "type": "string"\n            },\n            "serial": {\n              "description": "The deployment serial (usually \'0\')",\n              "type": "number",\n              "default": 0\n            },\n            "default": {\n              "description": "Find and use the default ostree deployment",\n              "type": "boolean",\n              "default": false\n            }\n          }\n        }\n      }\n    }
1,\n    "filesystems": {\n      "type": "array",\n      "description": "array of filesystem objects",\n      "items": {\n        "type": "object",\n        "oneOf": [\n          {\n            "required": [\n              "device",\n              "path"\n            ]\n          },\n          {\n            "required": [\n              "uuid",\n              "path"\n            ]\n          },\n          {\n            "required": [\n              "label",\n              "path"\n            ]\n          },\n          {\n            "required": [\n              "partlabel",\n              "path"\n            ]\n          }\n        ],\n        "properties": {\n          "device": {\n            "description": "Device node",\n            "type": "string"\n          },\n          "uuid": {\n            "description": "Filesystem UUID",\n            "type": "string"\n          },\n          "label": {\n            "description": "Filesystem label",\n            "type": "string"\n          },\n          "partlabel": {\n            "description": "Partition label.",\n            "type": "string"\n          },\n          "path": {\n            "description": "Filesystem mountpoint",\n            "type": "string"\n          },\n          "vfs_type": {\n            "description": "Filesystem type",\n            "type": "string",\n            "default": "none"\n          },\n          "options": {\n            "description": "Filesystem options (comma-separated)",\n            "type": "string",\n            "default": "defaults"\n          },\n          "freq": {\n            "description": "dump(8) period in days",\n            "type": "number",\n            "default": 0\n          },\n          "passno": {\n            "description": "pass number on parallel fsck(8)",\n            "type": "number",\n            "default": 0\n          }\n        }\n      }\n    }\n  }\n}\n'})}),"\n",(0,r.jsx)(n.h2,{id:"schema-2",children:"Schema 2"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:"{}\n"})})]})}function p(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},28453:(e,n,t)=>{t.d(n,{R:()=>i,x:()=>d});var s=t(96540);const r={},o=s.createContext(r);function i(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.