X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=patches%2Ffai_dirupdate_1.diff;fp=patches%2Ffai_dirupdate_1.diff;h=0000000000000000000000000000000000000000;hp=fb6ca3bdf6790325413ab8dff09db693afd1f5b6;hb=3ff2a862f83553916a1148543d69a0bbcc97bf4d;hpb=87c37be5a0cd8450d3e724f673e59c3bd13d5e58 diff --git a/patches/fai_dirupdate_1.diff b/patches/fai_dirupdate_1.diff deleted file mode 100644 index fb6ca3b..0000000 --- a/patches/fai_dirupdate_1.diff +++ /dev/null @@ -1,42 +0,0 @@ ---- /usr/lib/fai/subroutines.orig 2007-09-21 10:04:05.000000000 +0200 -+++ /usr/lib/fai/subroutines 2007-09-21 10:34:40.000000000 +0200 -@@ -266,6 +266,9 @@ - dirinstall) - task dirinstall - ;; -+ dirupdate) -+ task dirupdate -+ ;; - softupdate) - echo Performing FAI system update. All data may be overwritten! - task softupdate -@@ -491,6 +494,29 @@ - fi - } - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+task_dirupdate() { -+ -+ > $stamp -+ -+ mkdir -p $FAI_ROOT -+ FAI_ROOT=$(cd $FAI_ROOT;pwd) -+ echo "Updating directory $FAI_ROOT" -+ task configure -+ task updatechroot -+ task finish -+ -+ rm -f $stamp -+ unset LOGUSER # so logfile are not saved to remote -+ task savelog -+ -+ if [ -f $stamp ]; then -+ echo "Error while executing commands in subshell." -+ echo "$stamp was not removed." -+ sendmon "TASKERROR install 21" -+ die "Please look at the log files in $LOGDIR for errors." -+ fi -+} -+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - task_softupdate() { - - local stamp=/var/run/fai/fai_softupdate_is_running