|
|
|
@ -646,13 +646,14 @@ then
|
|
|
|
|
) || eerror $"Failed to build kernel"
|
|
|
|
|
# сборка initramfs
|
|
|
|
|
# initramfs building
|
|
|
|
|
COMPRESS=--xz
|
|
|
|
|
VMLINUZ_VER=$(real_kernel_version $KERNEL_DIR)
|
|
|
|
|
if [[ -n $DRACUT ]] && grep -q "CONFIG_BLK_DEV_INITRD=y" ${NEW_CONFIG}
|
|
|
|
|
then
|
|
|
|
|
${DRACUT} -f${NOT_CHROOT:+H} $LZ4 --kver=$VMLINUZ_VER /boot/initramfs-${VMLINUZ_VER}.img || eerror $"Failed to create the host-only initramfs"
|
|
|
|
|
${DRACUT} -f${NOT_CHROOT:+H} $COMPRESS --kver=$VMLINUZ_VER /boot/initramfs-${VMLINUZ_VER}.img || eerror $"Failed to create the host-only initramfs"
|
|
|
|
|
if [[ $KVER =~ calculate ]] && [[ -n $SAFEMODE ]]
|
|
|
|
|
then
|
|
|
|
|
${DRACUT} -f $LZ4 --kver=$VMLINUZ_VER /boot/initramfs-${VMLINUZ_VER/-calculate/-SafeMode-calculate}.img || eerror $"Failed to create the safemode initramfs"
|
|
|
|
|
${DRACUT} -f $COMPRESS --kver=$VMLINUZ_VER /boot/initramfs-${VMLINUZ_VER/-calculate/-SafeMode-calculate}.img || eerror $"Failed to create the safemode initramfs"
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
# удалить старый ramfs если его поддержка выключена в ядре
|
|
|
|
|