pid1: don't choke on overly long device paths
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Jun 2021 13:49:10 +0000 (15:49 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 9 Jul 2021 16:52:37 +0000 (18:52 +0200)
commit5fbb002c65c5dbfb9e789caf3bea1dc6e63ee7ae
tree78c442a1fdd85b24dd6799ea3be992818e0d55fd
parent2ff9f3068341433b031ed8f42900bf1460b53ff6
pid1: don't choke on overly long device paths

This mimics what we do for device units: if there's a device we cannot
synthesize a good swap unit name for, then proceed without failure.

(cherry picked from commit e82c6e8b6230b237c838f053d52baa3297668eaa)
src/core/swap.c