Lines 53-62
Link Here
|
53 |
# non-empty suffix -> changing the flavour: |
53 |
# non-empty suffix -> changing the flavour: |
54 |
# avoid changing default (/boot/vmlinuz) symlink, |
54 |
# avoid changing default (/boot/vmlinuz) symlink, |
55 |
# keep already generated initrd image unchanged |
55 |
# keep already generated initrd image unchanged |
56 |
/sbin/installkernel $INSTALLKERNEL_ARGS --keep-initrd --nodefault "$VERSION" |
56 |
/sbin/installkernel $INSTALLKERNEL_ARGS --keep-initrd --nodefault "$VERSION" || exit 1 |
57 |
else |
57 |
else |
58 |
# change default (/boot/vmlinuz) symlink |
58 |
# change default (/boot/vmlinuz) symlink |
59 |
/sbin/installkernel $INSTALLKERNEL_ARGS "$KEEP_INITRD" "$VERSION" |
59 |
/sbin/installkernel $INSTALLKERNEL_ARGS "$KEEP_INITRD" "$VERSION" || exit 1 |
60 |
fi |
60 |
fi |
61 |
} |
61 |
} |
62 |
|
62 |
|
Lines 71-80
Link Here
|
71 |
kernel_versions_handled="$kernel_versions_handled $VERSION" |
71 |
kernel_versions_handled="$kernel_versions_handled $VERSION" |
72 |
if [ -f "$f" ]; then |
72 |
if [ -f "$f" ]; then |
73 |
# file exists -> install kernel |
73 |
# file exists -> install kernel |
74 |
/sbin/installkernel $INSTALLKERNEL_ARGS "$VERSION" |
74 |
/sbin/installkernel $INSTALLKERNEL_ARGS "$VERSION" || exit 1 |
75 |
else |
75 |
else |
76 |
# file does not exist -> uninstall kernel |
76 |
# file does not exist -> uninstall kernel |
77 |
/sbin/installkernel $INSTALLKERNEL_ARGS -r "$VERSION" |
77 |
/sbin/installkernel $INSTALLKERNEL_ARGS -r "$VERSION" || exit 1 |
78 |
|
78 |
|
79 |
# update default kernel if necessary |
79 |
# update default kernel if necessary |
80 |
update_default_kernel "" "[23].*-alt*" |
80 |
update_default_kernel "" "[23].*-alt*" |
Lines 117-123
Link Here
|
117 |
continue |
117 |
continue |
118 |
VERSION=${f#$VMLINUZ_PREFIX-} |
118 |
VERSION=${f#$VMLINUZ_PREFIX-} |
119 |
# regenerate initrd image without updating symlinks |
119 |
# regenerate initrd image without updating symlinks |
120 |
/sbin/installkernel $INSTALLKERNEL_ARGS --nodefault --noflavour "$VERSION" |
120 |
/sbin/installkernel $INSTALLKERNEL_ARGS --nodefault --noflavour "$VERSION" || exit 1 |
121 |
done |
121 |
done |
122 |
elif [ -n "$module_versions_handled" ]; then |
122 |
elif [ -n "$module_versions_handled" ]; then |
123 |
module_versions_handled="$(printf '%s\n' "$module_versions_handled" |sort -u)" |
123 |
module_versions_handled="$(printf '%s\n' "$module_versions_handled" |sort -u)" |