summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinitrd.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/initrd.sh b/initrd.sh
index 675dcc8..5adb405 100755
--- a/initrd.sh
+++ b/initrd.sh
@@ -3,6 +3,7 @@
3initrd=isolinux/live/initrd.img 3initrd=isolinux/live/initrd.img
4vmlinuz=isolinux/live/vmlinuz 4vmlinuz=isolinux/live/vmlinuz
5 5
6version=$(uname -r)
6conf_dir=initramfs-tools 7conf_dir=initramfs-tools
7 8
8if [ ! -e "$initrd" -o ! -e "$vmlinuz" ]; then 9if [ ! -e "$initrd" -o ! -e "$vmlinuz" ]; then
@@ -13,6 +14,6 @@ fi
13 14
14if [ "$need_update" ]; then 15if [ "$need_update" ]; then
15 set -ex 16 set -ex
16 cp -f /boot/vmlinuz-$(uname -r) "$vmlinuz" 17 cp -f /boot/vmlinuz-${version} "$vmlinuz"
17 /usr/sbin/mkinitramfs -d "$conf_dir" -o "$initrd" $(uname -r) 18 /usr/sbin/mkinitramfs -d "$conf_dir" -o "$initrd" ${version}
18fi 19fi