diff options
Diffstat (limited to 'initrd.sh')
-rwxr-xr-x | initrd.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,6 +3,7 @@ | |||
3 | initrd=isolinux/live/initrd.img | 3 | initrd=isolinux/live/initrd.img |
4 | vmlinuz=isolinux/live/vmlinuz | 4 | vmlinuz=isolinux/live/vmlinuz |
5 | 5 | ||
6 | version=$(uname -r) | ||
6 | conf_dir=initramfs-tools | 7 | conf_dir=initramfs-tools |
7 | 8 | ||
8 | if [ ! -e "$initrd" -o ! -e "$vmlinuz" ]; then | 9 | if [ ! -e "$initrd" -o ! -e "$vmlinuz" ]; then |
@@ -13,6 +14,6 @@ fi | |||
13 | 14 | ||
14 | if [ "$need_update" ]; then | 15 | if [ "$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} |
18 | fi | 19 | fi |