From 5dd5ebdaf1f2582b50dbf7a3efdda72091b010b8 Mon Sep 17 00:00:00 2001 From: milisman Date: Mon, 24 Oct 2016 23:36:19 +0300 Subject: [PATCH] initramfs_yapici --- bin/initramfs_yap.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/initramfs_yap.sh b/bin/initramfs_yap.sh index 276bba0da..0b66eb24b 100755 --- a/bin/initramfs_yap.sh +++ b/bin/initramfs_yap.sh @@ -1,3 +1,4 @@ -cd /boot -ln -s kernel-4.4.27 kernel -dracut -N --force --xz --omit systemd /boot/initramfs 4.4.27-milis-lts +#!/bin/bash +yenimodul=`ls -Art /lib/modules/ | tail -n 1` +modulno=`basename $yenimodul` +dracut -N --force --xz --omit systemd /boot/initramfs $modulno