Revert "Do not relocate /nix and /tmp to small disks on AWS"

This reverts commit f10bead8fd because
it doesn't work - there is no lsblk in the initrd, and there is a
missing backslash.
wip/yesman
Eelco Dolstra 8 years ago
parent cc925d0506
commit e618492168
  1. 6
      nixos/modules/virtualisation/amazon-image.nix

@ -79,11 +79,7 @@ let cfg = config.ec2; in
diskNr=$((diskNr + 1))
echo "mounting $device on $mp..."
if mountFS "$device" "$mp" "" ext3; then
if [ -z "$diskForUnionfs" -a \
$(lsblk -bno size $device) -gt $(lsblk -bno size /dev/xvda1)
]; then
diskForUnionfs="$mp";
fi
if [ -z "$diskForUnionfs" ]; then diskForUnionfs="$mp"; fi
fi
else
echo "skipping unknown device type $device"

Loading…
Cancel
Save