aboutsummaryrefslogtreecommitdiff
path: root/buildos
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-11-09 07:07:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-11-09 07:07:04 +0200
commitf5c7e5662e133e7415ed6fe0392013c4e5cbc86e (patch)
tree2df95bab04ccd35eeb8a9aafef86a1a116036eec /buildos
parent0ff59e362608ad75c306471204b24319cc9523fb (diff)
Upgrade to latest Debian testing
There is a new strange warning when deleting a btrfs subvolume as a non-root user (Debian but #998840). New (old) versions of key packages: systemd/udev 249.5-2 (245.6-2) qemu-system-x86 6.1+dfsg-8 (5.0-13) linux-image-amd64 5.14.9-2 (5.7.6) g++ 11.2.0-2 (9.3.0-15) initramfs-tools 0.140 (0.137) debootstrap 1.0.125 (1.0.123) New (old) sizes: buildos-image 6,316,352 (5,572,672) buildos-initrd 332,280,629 (316,454,368)
Diffstat (limited to 'buildos')
-rwxr-xr-xbuildos6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildos b/buildos
index 4bb44b9..2d8d043 100755
--- a/buildos
+++ b/buildos
@@ -215,11 +215,11 @@ fi
#
# Note that MemTotal in /proc/meminfo is the available memory, not physical.
# And to make it easier to provision memory it's really helpful to base it
-# in the physical value.
+# on the physical value.
#
ram_total=0
-for i in $(sudo dmidecode -t 17 | sed -n -re 's/^\s*Size:\s*([0-9]+)\s*MB.*$/\1/p'); do
- ram_total=$(($ram_total + $i * 1024))
+for i in $(sudo dmidecode -t 17 | sed -n -re 's/^\s*Size:\s*([0-9]+)\s*GB.*$/\1/p'); do
+ ram_total=$(($ram_total + $i * 1024 * 1024))
done
if [ "$ram_total" -eq 0 ]; then