firstboot: log on take_etc_passwd_lock error too

This commit is contained in:
Evgeny Vereshchagin 2015-11-15 16:16:38 +00:00
parent f978cf31ec
commit db260eedc2

View file

@ -542,7 +542,7 @@ static int process_root_password(void) {
lock = take_etc_passwd_lock(arg_root);
if (lock < 0)
return lock;
return log_error_errno(lock, "Failed to take a lock: %m");
if (arg_copy_root_password && arg_root) {
struct spwd *p;