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.
This commit is contained in:
Eelco Dolstra 2016-02-02 19:10:00 +01:00
parent cc925d0506
commit e618492168

View file

@ -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"