Signed-off-by: kokkiemouse <kokkiemouse@gmail.com>
kernelkun=$(run_cmd ls /lib/modules)
echo -e "\nkernel-install add ${kernelkun} /boot/vmlinuz-${kernelkun}" >> ${work_dir}/airootfs/usr/share/calamares/final-process
umount "${work_dir}/airootfs"
+ _msg_info "e2fsck..."
+ e2fsck -f "${work_dir}/squashfsroot/LiveOS/rootfs.img"
_msg_info "Minimize rootfs..."
resize2fs -M "${work_dir}/squashfsroot/LiveOS/rootfs.img"
_msg_info "Compress rootfs.."