mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
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 ```
This commit is contained in:
commit
839fe27dc8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user