mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +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() {
|
function safe-format-and-mount() {
|
||||||
local device
|
local device
|
||||||
local mountpoint
|
local mountpoint
|
||||||
device=$1
|
device="$1"
|
||||||
mountpoint=$2
|
mountpoint="$2"
|
||||||
|
|
||||||
# Format only if the disk is not already formatted.
|
# Format only if the disk is not already formatted.
|
||||||
if ! tune2fs -l "${device}" ; then
|
if ! tune2fs -l "${device}" ; then
|
||||||
@ -292,8 +292,8 @@ function safe-format-and-mount() {
|
|||||||
function unique-uuid-bind-mount(){
|
function unique-uuid-bind-mount(){
|
||||||
local mountpoint
|
local mountpoint
|
||||||
local actual_device
|
local actual_device
|
||||||
mountpoint=$1
|
mountpoint="$1"
|
||||||
actual_device=$2
|
actual_device="$2"
|
||||||
|
|
||||||
# Trigger udev refresh so that newly formatted devices are propagated in by-uuid
|
# Trigger udev refresh so that newly formatted devices are propagated in by-uuid
|
||||||
udevadm control --reload-rules
|
udevadm control --reload-rules
|
||||||
|
Loading…
Reference in New Issue
Block a user