mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-01 02:07:20 +08:00
Compare commits
2 Commits
51cedfb50e
...
345fe0c13a
Author | SHA1 | Date | |
---|---|---|---|
|
345fe0c13a | ||
|
1b8054e847 |
@ -320,7 +320,7 @@ convertDisk() {
|
||||
|
||||
msg="Conversion of $DISK_DESC"
|
||||
html "$msg completed..."
|
||||
info "$msg to $DST_FMT completed succesfully!"
|
||||
info "$msg to $DST_FMT completed successfully!"
|
||||
|
||||
return 0
|
||||
}
|
||||
|
@ -209,8 +209,9 @@ configureNAT() {
|
||||
|
||||
# Check port forwarding flag
|
||||
if [[ $(< /proc/sys/net/ipv4/ip_forward) -eq 0 ]]; then
|
||||
{ sysctl -w net.ipv4.ip_forward=1 > /dev/null; rc=$?; } || :
|
||||
{ sysctl -w net.ipv4.ip_forward=1 > /dev/null 2>&1; rc=$?; } || :
|
||||
if (( rc != 0 )) || [[ $(< /proc/sys/net/ipv4/ip_forward) -eq 0 ]]; then
|
||||
[[ "$PODMAN" == [Yy1]* ]] && return 1
|
||||
error "IP forwarding is disabled. $ADD_ERR --sysctl net.ipv4.ip_forward=1"
|
||||
return 1
|
||||
fi
|
||||
|
@ -130,7 +130,10 @@ cpu() {
|
||||
cpu="${cpu// 12 Core/}"
|
||||
cpu="${cpu// 16 Core/}"
|
||||
cpu="${cpu// 32 Core/}"
|
||||
cpu="${cpu// 48 Core/}"
|
||||
cpu="${cpu// 64 Core/}"
|
||||
cpu="${cpu// 96 Core/}"
|
||||
cpu="${cpu// 128 Core/}"
|
||||
cpu="${cpu//7th Gen /}"
|
||||
cpu="${cpu//8th Gen /}"
|
||||
cpu="${cpu//9th Gen /}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user