]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
firstboot: use consistent wording for prompts
authorMichael Ferrari <nekkodroid404@gmail.com>
Tue, 8 Oct 2024 23:19:43 +0000 (01:19 +0200)
committerMichael Ferrari <nekkodroid404@gmail.com>
Wed, 30 Oct 2024 19:13:53 +0000 (20:13 +0100)
src/firstboot/firstboot.c

index 2877623ae9621035a6f3b488e144b4bb989da0c3..4d8702c9aa7f8a5556e4a6fe631c88391ca1edcf 100644 (file)
@@ -323,7 +323,7 @@ static int prompt_locale(int rfd) {
 
                 print_welcome(rfd);
 
-                r = prompt_loop("Please enter system locale name or number",
+                r = prompt_loop("Please enter the new system locale name or number",
                                 locales, 60, is_valid, &arg_locale);
                 if (r < 0)
                         return r;
@@ -331,7 +331,7 @@ static int prompt_locale(int rfd) {
                 if (isempty(arg_locale))
                         return 0;
 
-                r = prompt_loop("Please enter system message locale name or number",
+                r = prompt_loop("Please enter the new system message locale name or number",
                                 locales, 60, is_valid, &arg_locale_messages);
                 if (r < 0)
                         return r;
@@ -446,7 +446,7 @@ static int prompt_keymap(int rfd) {
 
         print_welcome(rfd);
 
-        return prompt_loop("Please enter system keymap name or number",
+        return prompt_loop("Please enter the new keymap name or number",
                            kmaps, 60, determine_keymap_validity_func(rfd), &arg_keymap);
 }
 
@@ -536,7 +536,7 @@ static int prompt_timezone(int rfd) {
 
         print_welcome(rfd);
 
-        r = prompt_loop("Please enter timezone name or number",
+        r = prompt_loop("Please enter the new timezone name or number",
                         zones, 30, timezone_is_valid_log_debug, &arg_timezone);
         if (r < 0)
                 return r;
@@ -620,7 +620,8 @@ static int prompt_hostname(int rfd) {
         for (;;) {
                 _cleanup_free_ char *h = NULL;
 
-                r = ask_string(&h, "%s Please enter hostname for new system (empty to skip): ", special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET));
+                r = ask_string(&h, "%s Please enter the new hostname (empty to skip): ",
+                               special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET));
                 if (r < 0)
                         return log_error_errno(r, "Failed to query hostname: %m");
 
@@ -730,8 +731,8 @@ static int prompt_root_password(int rfd) {
 
         print_welcome(rfd);
 
-        msg1 = strjoina(special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET), " Please enter a new root password (empty to skip):");
-        msg2 = strjoina(special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET), " Please enter new root password again:");
+        msg1 = strjoina(special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET), " Please enter the new root password (empty to skip):");
+        msg2 = strjoina(special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET), " Please enter the new root password again:");
 
         suggest_passwords();
 
@@ -825,7 +826,8 @@ static int prompt_root_shell(int rfd) {
         for (;;) {
                 _cleanup_free_ char *s = NULL;
 
-                r = ask_string(&s, "%s Please enter root shell for new system (empty to skip): ", special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET));
+                r = ask_string(&s, "%s Please enter the new root shell (empty to skip): ",
+                               special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET));
                 if (r < 0)
                         return log_error_errno(r, "Failed to query root shell: %m");