CentOS 7: Версия ядра не имеет каталога модулей

# launch child process in background
launch_child_process &

# grab child's pid and store it (use array if several)
pid=$!

# later, wait for termination
wait $pid
# show return code from wait, which is actually the return code of the child
echo "Child return code:" $?

При нескольких дочерних программах вы, конечно, можете зациклиться, чтобы дождаться каждого pid и собрать соответствующий код возврата. Вы выходите из этого цикла, когда завершается последний ребенок.

2
09.09.2018, 23:50
2 ответа

Исправлено!!!

@Энди Далтон дал мне решение!!! Правильная последовательность команд для создания нового ядра и его установки::

# make
# make install modules_install
4
28.04.2021, 23:42

Современные ванильные ядра даже включают варианты прямой упаковки для нескольких форматов:

.../linux$ make help

[...]

Kernel packaging:
  rpm-pkg             - Build both source and binary RPM kernel packages
  binrpm-pkg          - Build only the binary kernel RPM package
  deb-pkg             - Build both source and binary deb kernel packages
  bindeb-pkg          - Build only the binary kernel deb package
  snap-pkg            - Build only the binary kernel snap package (will connect to external hosts)
  tar-pkg             - Build the kernel as an uncompressed tarball
  targz-pkg           - Build the kernel as a gzip compressed tarball
  tarbz2-pkg          - Build the kernel as a bzip2 compressed tarball
  tarxz-pkg           - Build the kernel as a xz compressed tarball

[...]

Так что make binrpm-pkgдолжен собрать один (или несколько )пакетов (с )напрямую для простоты обращения.

0
28.04.2021, 23:42

Теги

Похожие вопросы