mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Updates after code review
Add double quotes at assignments as requested by phenixblue. Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
This commit is contained in:
parent
3fb0d1c15d
commit
826274c867
@ -272,8 +272,8 @@ function get-or-generate-uuid(){
|
||||
function safe-format-and-mount() {
|
||||
local device
|
||||
local mountpoint
|
||||
device=$1
|
||||
mountpoint=$2
|
||||
device="$1"
|
||||
mountpoint="$2"
|
||||
|
||||
# Format only if the disk is not already formatted.
|
||||
if ! tune2fs -l "${device}" ; then
|
||||
@ -292,8 +292,8 @@ function safe-format-and-mount() {
|
||||
function unique-uuid-bind-mount(){
|
||||
local mountpoint
|
||||
local actual_device
|
||||
mountpoint=$1
|
||||
actual_device=$2
|
||||
mountpoint="$1"
|
||||
actual_device="$2"
|
||||
|
||||
# Trigger udev refresh so that newly formatted devices are propagated in by-uuid
|
||||
udevadm control --reload-rules
|
||||
|
Loading…
Reference in New Issue
Block a user