diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-19 14:31:43 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-19 14:31:43 -0400 |
commit | 3884276c13d142483b1a018b31f5723e3961965f (patch) | |
tree | 342190ca4b8e4ebf67e0f3c11bb56e8acd5eea9d | |
parent | 2ac42916a986abbc721a4920a6e8f7b12b4e8af7 (diff) |
quieter output
-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 |