Unverified Commit 839fe27d authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #61567 from davidz627/fix/localSSDPermissions

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fixes permissions error for Local SSD when created with NODE_LOCAL_SSDS flag **What this PR does / why we need it**: The PR fixes a permissions error introduced in 1.9 whereby users are unable to write to their Local SSD if it is created with the `NODE_LOCAL_SSDS` flag. This will need to be cherrypicked to 1.9 and 1.10. /sig storage /kind bug /assign @msau42 ```release-note NONE ```
parents 3a2fe7b8 d3670856
...@@ -183,6 +183,7 @@ function safe-format-and-mount() { ...@@ -183,6 +183,7 @@ function safe-format-and-mount() {
mkdir -p "${mountpoint}" mkdir -p "${mountpoint}"
echo "Mounting '${device}' at '${mountpoint}'" echo "Mounting '${device}' at '${mountpoint}'"
mount -o discard,defaults "${device}" "${mountpoint}" mount -o discard,defaults "${device}" "${mountpoint}"
chmod a+w "${mountpoint}"
} }
# Gets a devices UUID and bind mounts the device to mount location in # Gets a devices UUID and bind mounts the device to mount location in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment