LINUX.ORG.RU

[Arch]Процесс загрузки

 


0

0

В конце файла /etc/rc.sysinit есть строка: run_hook sysinit_end. Вопрос, где лежит этот хук? В /etc/rc.d/functions нашел следующее:

###############################
# Custom hooks in initscripts #
###############################
# Hooks can be used to include custom code in various places in the rc.* scripts

# Define a hook function in a functions.d file using:
#  function_name() {
#    ...
#  }
#  add_hook hook_name function_name
# It is allowed to register several hook functions for the same hook
# Is is also allowed to register the same hook function for several hooks
#
# Currently, the following hooks exist:
# sysinit_start: at the beginning of rc.sysinit
# multi_start: at the beginning of rc.multi
# single_start: at the beginning of rc.single
# shutdown_start: at the beginning of rc.shutdown
# sysinit_end: at the end of rc.sysinit
# multi_end: at the end of rc.multi
# single_end: at the end of rc.single
# sysinit_udevlaunched: after udev has been launched in rc.sysinit
# single_udevlaunched: after udev has been launched in rc.single
# sysinit_udevsettled: after uevents have settled in rc.sysinit
# single_udevsettled: after uevents have settled in rc.single
# sysinit_premount: before local filesystems are mounted, but after root is mounted read-write in rc.sysinit
# shutdown_prekillall: before all processes are being killed in rc.shutdown
# single_prekillall: before all processes are being killed in rc.single
# shutdown_postkillall: after all processes have been killed in rc.shutdown
# single_postkillall: after all processes have been killed in rc.single
# shutdown_poweroff: directly before powering off in rc.shutdown
#
# Make sure to never override the add_hook and run_hook functions via functions.d

declare -A hook_funcs

add_hook() {
        [ -z "$1" -o -z "$2" ] && return 1
        hook_funcs["$1"]="${hook_funcs["$1"]} $2"
}

run_hook() {
        local func

        [ -z "$1" ] && return 1
        for func in ${hook_funcs["$1"]}; do
                ${func}
        done
}

# Source additional functions at the end to allow overrides
for f in /etc/rc.d/functions.d/*; do
  if [ -e $f ]; then
    . $f
  fi
done

Ситуацию это не прояснило. grep -Ri sysinit_end по /etc ничего не дал.

Ещё, как убрать мозолящие глаза сообщения после старта initramfs? А именно: «waiting 0 s for root device» «kinit: no resume image» и.т.д

ZZaiatSS ★★
() автор топика
Ответ на: комментарий от ZZaiatSS

а разве эти сообщение пишет sysinit? вроде initrd.
Может поможет убрать «мозолящее» splashy-full?
И кстати в ауре есть grub2-gfxmenu.

TBEPDb
()
Ответ на: комментарий от shahid

Какая версия initscripts? (кажется файл из этого пакета)

ZZaiatSS ★★
() автор топика
Ответ на: комментарий от TBEPDb

Может быть, я ещё плохо в этом разбираюсь.

Может поможет убрать «мозолящее» splashy-full?

Не, хочу видеть процесс загрузки

ZZaiatSS ★★
() автор топика
Ответ на: комментарий от ZZaiatSS

Тогда и не знаю чем помочь. Поскольку пишет это initrd то может копать в сторону mkinitcpio и его настроек /etc/mkinitcpio.conf и /etc/mkinitcpio.d/* ?

TBEPDb
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.