From f5c7e5662e133e7415ed6fe0392013c4e5cbc86e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Nov 2021 07:07:04 +0200 Subject: 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) --- buildos | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'buildos') 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 -- cgit v1.1