blob: 675dcc817ae4b9b1f0e1a525870cd5e43a133165 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
initrd=isolinux/live/initrd.img
vmlinuz=isolinux/live/vmlinuz
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-$(uname -r) "$vmlinuz"
/usr/sbin/mkinitramfs -d "$conf_dir" -o "$initrd" $(uname -r)
fi
|