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:
parent
cc925d0506
commit
e618492168
@ -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…
Reference in New Issue
Block a user