-# 1.5 x based on https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-disk-partitioning-setup-x86.html#sect-custom-partitioning-x86
-swap_end=$(( $(grep ^MemTotal: /proc/meminfo| awk '{print $2}') * 3/(${#devs[@]} * 2 ) / 1000 + boot_end ))
-
-create_subvols() {
- cd /mnt
- for x in q home root; do
- btrfs subvolume list . | grep "$x$" >/dev/null || btrfs subvolume create $x
- done
- for x in root/a q/a; do
- mkdir -p $x
- chown 1000:1000 $x
- chmod 755 $x
- done
- btrfs subvolume set-default \
- $(btrfs subvolume list . | grep 'root$' | awk '{print $2}') .
- chattr -Rf +C root
- cd /
- umount /mnt
-}
+if ifclass frodo; then
+ # next upgrade is prolly 16 gigs of memory, across ~8 devices
+ swap_end=$((3500 + boot_end))
+else
+ # 1.5 x based on https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-disk-partitioning-setup-x86.html#sect-custom-partitioning-x86
+ swap_end=$(( $(grep ^MemTotal: /proc/meminfo| awk '{print $2}') * 3/(${#devs[@]} * 2 ) / 1000 + boot_end ))
+fi