ALT Linux Bugzilla
– Attachment 6286 Details for
Bug 31027
Когда заменяешь ядро возникает ошибка при генерации initrd и система не загружается.
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
проверка кода возврата /sbin/installkernel
boot_kernel.filetrigger.patch (text/plain), 1.60 KB, created by
Стас
on 2015-05-25 10:00:23 MSK
(
hide
)
Description:
проверка кода возврата /sbin/installkernel
Filename:
MIME Type:
Creator:
Стас
Created:
2015-05-25 10:00:23 MSK
Size:
1.60 KB
patch
obsolete
>--- /usr/lib/rpm/boot_kernel.filetrigger 2013-07-10 18:38:45.000000000 +0600 >+++ /tmp/boot_kernel.filetrigger 2015-05-25 11:55:53.349999648 +0500 >@@ -53,10 +53,10 @@ > # non-empty suffix -> changing the flavour: > # avoid changing default (/boot/vmlinuz) symlink, > # keep already generated initrd image unchanged >- /sbin/installkernel $INSTALLKERNEL_ARGS --keep-initrd --nodefault "$VERSION" >+ /sbin/installkernel $INSTALLKERNEL_ARGS --keep-initrd --nodefault "$VERSION" || exit 1 > else > # change default (/boot/vmlinuz) symlink >- /sbin/installkernel $INSTALLKERNEL_ARGS "$KEEP_INITRD" "$VERSION" >+ /sbin/installkernel $INSTALLKERNEL_ARGS "$KEEP_INITRD" "$VERSION" || exit 1 > fi > } > >@@ -71,10 +71,10 @@ > kernel_versions_handled="$kernel_versions_handled $VERSION" > if [ -f "$f" ]; then > # file exists -> install kernel >- /sbin/installkernel $INSTALLKERNEL_ARGS "$VERSION" >+ /sbin/installkernel $INSTALLKERNEL_ARGS "$VERSION" || exit 1 > else > # file does not exist -> uninstall kernel >- /sbin/installkernel $INSTALLKERNEL_ARGS -r "$VERSION" >+ /sbin/installkernel $INSTALLKERNEL_ARGS -r "$VERSION" || exit 1 > > # update default kernel if necessary > update_default_kernel "" "[23].*-alt*" >@@ -117,7 +117,7 @@ > continue > VERSION=${f#$VMLINUZ_PREFIX-} > # regenerate initrd image without updating symlinks >- /sbin/installkernel $INSTALLKERNEL_ARGS --nodefault --noflavour "$VERSION" >+ /sbin/installkernel $INSTALLKERNEL_ARGS --nodefault --noflavour "$VERSION" || exit 1 > done > elif [ -n "$module_versions_handled" ]; then > module_versions_handled="$(printf '%s\n' "$module_versions_handled" |sort -u)"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31027
: 6286