|
|
|
@ -121,7 +121,6 @@ config_create_swap_fstab_entry() { |
|
|
|
|
local fstabnew |
|
|
|
|
|
|
|
|
|
mkdir -p /var/lock |
|
|
|
|
lock -w /var/lock/fstab.lck && { |
|
|
|
|
lock /var/lock/fstab.lck |
|
|
|
|
fstabnew="$(mktemp -t '.fstab.XXXXXXXX')" |
|
|
|
|
cat /tmp/fstab | grep -E -v "^$device[[:blank:]]" >>"$fstabnew" |
|
|
|
@ -130,7 +129,6 @@ config_create_swap_fstab_entry() { |
|
|
|
|
rm -f $fstabnew |
|
|
|
|
lock -u /var/lock/fstab.lck |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
config_create_mount_fstab_entry() { |
|
|
|
|
local device="$1" |
|
|
|
@ -146,7 +144,6 @@ config_create_mount_fstab_entry() { |
|
|
|
|
local fstabnew |
|
|
|
|
|
|
|
|
|
mkdir -p /var/lock |
|
|
|
|
lock -w /var/lock/fstab.lck && { |
|
|
|
|
lock /var/lock/fstab.lck |
|
|
|
|
fstabnew="$(mktemp -t '.fstab.XXXXXXXX')" |
|
|
|
|
cat /tmp/fstab | grep -E -v "^$device[[:blank:]]" | grep -v "$target" >>"$fstabnew" |
|
|
|
@ -155,7 +152,6 @@ config_create_mount_fstab_entry() { |
|
|
|
|
rm -f $fstabnew |
|
|
|
|
lock -u /var/lock/fstab.lck |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
libmount_find_token() { |
|
|
|
|
local token="$1" |
|
|
|
|