This is failing because the following conditional is not returning true, thus leaving /dev unmounted:
if ! grep -qE '^[^ ]+ /dev/' $ROOT/proc/mounts; then
So when blkid is run to determine whether the partition is swap, it returns nothing.
This is failing because the following conditional is not returning true, thus leaving /dev unmounted:
if ! grep -qE '^[^ ]+ /dev/' $ROOT/proc/mounts; then
So when blkid is run to determine whether the partition is swap, it returns nothing.