blob: 5adb4059a96175f7d3adec51a3bd357b5c2bf12d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
initrd=isolinux/live/initrd.img
vmlinuz=isolinux/live/vmlinuz
version=$(uname -r)
conf_dir=initramfs-tools
if [ ! -e "$initrd" -o ! -e "$vmlinuz" ]; then
need_update=1
elif [ "$(find "$conf_dir" -newer "$initrd" -print -quit)" ]; then
need_update=1
fi
if [ "$need_update" ]; then
set -ex
cp -f /boot/vmlinuz-${version} "$vmlinuz"
/usr/sbin/mkinitramfs -d "$conf_dir" -o "$initrd" ${version}
fi
|