summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2015-11-15 16:16:38 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2015-11-15 18:30:26 +0000
commitdb260eedc27814248da39ebdfc84a3f5584b0b16 (patch)
treee065a7537a93476d9f7d686950e853da62fa57f9
parentf978cf31ec158674605c13cf3caf0dd6b7ea9a3b (diff)
firstboot: log on take_etc_passwd_lock error too
-rw-r--r--src/firstboot/firstboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index 642d36912c..469ee7af68 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -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;