Revert "Do not relocate /nix and /tmp to small disks on AWS"
This reverts commit f10bead8fd068f2cb82cbdc1a938a67bd967974c 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))
|
diskNr=$((diskNr + 1))
|
||||||
echo "mounting $device on $mp..."
|
echo "mounting $device on $mp..."
|
||||||
if mountFS "$device" "$mp" "" ext3; then
|
if mountFS "$device" "$mp" "" ext3; then
|
||||||
if [ -z "$diskForUnionfs" -a \
|
if [ -z "$diskForUnionfs" ]; then diskForUnionfs="$mp"; fi
|
||||||
$(lsblk -bno size $device) -gt $(lsblk -bno size /dev/xvda1)
|
|
||||||
]; then
|
|
||||||
diskForUnionfs="$mp";
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "skipping unknown device type $device"
|
echo "skipping unknown device type $device"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user