agetty: Don't override TERM passed by the user
Before
4869b259d68f65ea88df625ce8df9c0177d55a01, any TERM passed
on the agetty command line would be used instead of the default TERM.
After
4869b259d68f65ea88df625ce8df9c0177d55a01, the default TERM is
used unconditionally.
Fix the regression by checking if the user passed a custom TERM.
Fixes: 4869b259d68f65ea88df625ce8df9c0177d55a01
(cherry picked from commit
af354e92111769d57e43eb4f1825c0d99c894ddb)
Gbp-Pq: Topic upstream
Gbp-Pq: Name agetty-Don-t-override-TERM-passed-by-the-user.patch