ad4d05ff3e0a6d9e62a2c839fc97d217fe9f5793
[grml-live.git] / patches / fai_dirupdate_4.diff
1 --- /usr/lib/fai/subroutines-linux.orig 2007-09-21 10:47:35.000000000 +0200
2 +++ /usr/lib/fai/subroutines-linux      2007-09-21 10:49:09.000000000 +0200
3 @@ -229,6 +229,18 @@
4      updatebase
5  }
6  # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
7 +task_updatechroot() {
8 +
9 +    # update the chroot
10 +    echo "Updating chroot"
11 +    if [ -z "$TARGET" ] ; then
12 +        echo "Error: \$TARGET not set, exiting.">&2
13 +        return 1
14 +    else
15 +        chroot $TARGET apt-get update
16 +    fi
17 +}
18 +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
19  task_instsoft() {
20  
21      echo "Installing software may take a while"