Added some patches against FAI for initial version of chroot update
[grml-live.git] / patches / fai_dirupdate_4.diff
diff --git a/patches/fai_dirupdate_4.diff b/patches/fai_dirupdate_4.diff
new file mode 100644 (file)
index 0000000..ad4d05f
--- /dev/null
@@ -0,0 +1,21 @@
+--- /usr/lib/fai/subroutines-linux.orig        2007-09-21 10:47:35.000000000 +0200
++++ /usr/lib/fai/subroutines-linux     2007-09-21 10:49:09.000000000 +0200
+@@ -229,6 +229,18 @@
+     updatebase
+ }
+ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
++task_updatechroot() {
++
++    # update the chroot
++    echo "Updating chroot"
++    if [ -z "$TARGET" ] ; then
++        echo "Error: \$TARGET not set, exiting.">&2
++        return 1
++    else
++        chroot $TARGET apt-get update
++    fi
++}
++# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ task_instsoft() {
+     echo "Installing software may take a while"