Skip to content

Commit

Permalink
release: Remove explicit Type for Local Filesystem
Browse files Browse the repository at this point in the history
The filesystem will mount without specifying a specific type when
defining a systemd Mount. This allows any filesystem that the OS can
mount to be used as a filesystem for /local. Before this change, the
boot would fail if the /local filesystem didn't match the one specified
in /usr/share/bottlerocket/image-features.env

Signed-off-by: Matthew Yeazel <yeazelm@amazon.com>
  • Loading branch information
yeazelm committed Oct 2, 2023
1 parent 20401ef commit 3ac01cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/release/local.mount
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ After=prepare-local-fs.service
Requires=prepare-local-fs.service

[Mount]
EnvironmentFile=/usr/share/bottlerocket/image-features.env
What=/dev/disk/by-partlabel/BOTTLEROCKET-DATA
Where=/local
Type=${DATA_PARTITION_FILESYSTEM}
# "noexec" omitted to allow containers and migrations to run
Options=defaults,nosuid,nodev,noatime,private
StandardError=journal+console

[Install]
WantedBy=preconfigured.target

0 comments on commit 3ac01cb

Please sign in to comment.