]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
firstboot: reduce empty input log level
authorMichael Ferrari <nekkodroid404@gmail.com>
Wed, 5 Jun 2024 17:40:57 +0000 (19:40 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 5 Sep 2024 01:08:42 +0000 (10:08 +0900)
The user knows they pressed `Enter`, no need to inform them again about
that they skipped the prompt.

src/firstboot/firstboot.c

index af17b527c1575f6c05d8f22e7856d97ae7bfb401..cdd416b571495e6cd21d138ba0df5ec7fa886c16 100644 (file)
@@ -209,7 +209,7 @@ static int prompt_loop(const char *text, char **l, unsigned percentage, bool (*i
                         return log_error_errno(r, "Failed to query user: %m");
 
                 if (isempty(p)) {
-                        log_warning("No data entered, skipping.");
+                        log_info("No data entered, skipping.");
                         return 0;
                 }
 
@@ -681,7 +681,7 @@ static int prompt_hostname(int rfd) {
                         return log_error_errno(r, "Failed to query hostname: %m");
 
                 if (isempty(h)) {
-                        log_warning("No hostname entered, skipping.");
+                        log_info("No hostname entered, skipping.");
                         break;
                 }
 
@@ -808,7 +808,7 @@ static int prompt_root_password(int rfd) {
                                                "Received multiple passwords, where we expected one.");
 
                 if (isempty(*a)) {
-                        log_warning("No password entered, skipping.");
+                        log_info("No password entered, skipping.");
                         break;
                 }
 
@@ -888,7 +888,7 @@ static int prompt_root_shell(int rfd) {
                         return log_error_errno(r, "Failed to query root shell: %m");
 
                 if (isempty(s)) {
-                        log_warning("No shell entered, skipping.");
+                        log_info("No shell entered, skipping.");
                         break;
                 }