summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-19 14:31:43 -0400
committerAndrew Cady <d@jerkface.net>2016-04-19 14:31:43 -0400
commit3884276c13d142483b1a018b31f5723e3961965f (patch)
tree342190ca4b8e4ebf67e0f3c11bb56e8acd5eea9d
parent2ac42916a986abbc721a4920a6e8f7b12b4e8af7 (diff)
quieter output
-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