From 2cd1d4d2792e54b458a856d3f6e83f6cfffe650d Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Fri, 6 Jul 2012 13:37:51 -0700 Subject: [PATCH] compat: fix bin/get-compat-kernels install calls The installation requires running sudo on other calls. Fix by adding sudo calls. Signed-off-by: Luis R. Rodriguez --- bin/get-compat-kernels | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/get-compat-kernels b/bin/get-compat-kernels index 9fa23eb88c0f..61ea40c99d02 100755 --- a/bin/get-compat-kernels +++ b/bin/get-compat-kernels @@ -156,19 +156,19 @@ function get_ubuntu_kernels() { # Move the extracted folders into the system if [[ -d $TEMP_DIR/lib/modules ]]; then - mv $TEMP_DIR/lib/modules/* /lib/modules + sudo mv $TEMP_DIR/lib/modules/* /lib/modules fi if [[ -d $TEMP_DIR/usr/src ]]; then # Because of a bug in make < 3.82, mixed implicit and normal # rules do not cause harm. Since the bug is fixed in the new make # we have to adjust older kernel's Makefiles to fix the bug. - sed -i 's#^/ %/:#%/:#' $TEMP_DIR/usr/src/linux-headers-2.6.2[45678]-0*/Makefile &>/dev/null + sudo sed -i 's#^/ %/:#%/:#' $TEMP_DIR/usr/src/linux-headers-2.6.2[45678]-0*/Makefile &>/dev/null - mv $TEMP_DIR/usr/src/* /usr/src + sudo mv $TEMP_DIR/usr/src/* /usr/src fi # Remove the temporary directory - rm -rf $TEMP_DIR + sudo rm -rf $TEMP_DIR } function usage() { -- 2.30.2