Bug 42016 - Неинформативное ожидание рутового раздела
Summary: Неинформативное ожидание рутового раздела
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: make-initrd (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-21 17:31 MSK by Vitaly Lipatov
Modified: 2022-03-08 02:21 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Lipatov 2022-02-21 17:31:58 MSK
Сейчас если по каким-то причинам не найден корневой раздел (например, не собран RAID),
initrd останавливается на
INIT: Entering runlevel: 3
...
Network up (lo):


По висящей несколько минут строке
Network up (lo):

невозможно определить, что происходит ожидание появления корня.
Comment 1 Alexey Gladkov 2022-02-21 17:41:54 MSK
В этот момент initrd ожидает появления блочных устройств. Например, это может быть флешка, где находится корень.

Что вы предлагаете ?
Comment 2 Vitaly Lipatov 2022-02-21 21:55:23 MSK
(Ответ для Alexey Gladkov на комментарий #1)
> В этот момент initrd ожидает появления блочных устройств. Например, это
> может быть флешка, где находится корень.
> 
> Что вы предлагаете ?

Я предлагаю по истечении нескольких секунд, достаточных для выполнения всех других операций (например, 5-10 сек), выводить строку о том, что мы ожидаем, с отсчётом времени. По сути, как это делает systemd для задержавшегося сервиса.
Comment 3 Repository Robot 2022-03-08 02:21:18 MSK
make-initrd-2.26.0-alt1 -> sisyphus:

 Mon Mar 07 2022 Alexey Gladkov <legion@altlinux.ru> 2.26.0-alt1
 - New version (2.26.0).
 - Runtime:
   + Show a message if the root is not found for more than 15 seconds (ALT#42016).
 - New fearure:
   + Add locales feature. The feature adds locales and translations of utilities.
 - Feature ucode:
   + Don't throw an error if no cpu updates are found for intel.
   + Fix firmware definition for amd cpu (ALT#41878).
 - Feature raid:
   + Remove feature due to deprecation.
 - Feature cleanup:
   + Allow to delete temporary files of features.
 - Utilities:
   + initrd-ls, initrd-extract: Fix use-after-free if cpio is empty.
   + replace: Replace utility with bash builtins.
 - Misc:
   + By default show only summary about the build of image.
   + Generate content of sysconfig files.
   + Add more unit tests.