[Fai-commit] r4516 - trunk/lib
lange at alioth.debian.org
lange at alioth.debian.org
Tue Aug 21 08:17:49 UTC 2007
Author: lange
Date: 2007-08-21 08:17:49 +0000 (Tue, 21 Aug 2007)
New Revision: 4516
Removed:
trunk/lib/mkrw
Modified:
trunk/lib/subroutines-linux
Log:
mkrw is not needed any more, replaced by unionfs
Deleted: trunk/lib/mkrw
===================================================================
--- trunk/lib/mkrw 2007-08-19 18:14:51 UTC (rev 4515)
+++ trunk/lib/mkrw 2007-08-21 08:17:49 UTC (rev 4516)
@@ -1,55 +0,0 @@
-#! /bin/bash
-
-#*********************************************************************
-#
-# This script is part of FAI (Fully Automatic Installation)
-# (c) 2003-2006 by Thomas Lange, lange at informatik.uni-koeln.de
-# Universitaet zu Koeln
-#
-#*********************************************************************
-
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-mkrwsize() {
-
- # save all dirs and files under directory $2
- # mount tmpfs on top of dir $2
- # extract dirs and files into tmpfs
-
- local n=
-
- if [ ! -d "$2" ]; then
- echo "WARNING: $2 is not a directory. Cannot make it writeable."
- return
- fi
-
- # test for already writable
- temp=$(mktemp -q -p $2)
- if [ $? -eq 0 ]; then
- echo "mkrw: $2 is already writable."
- rm $temp
- return
- fi
-
- [ -n "$3" ] && n="-n"
-
- local tmp1=$(mktemp) || exit 12
- tar -C $2 -cf $tmp1 .
- mount $n -o size=$1 -t tmpfs tmpfs $2
- tar -C $2 -xf $tmp1
- rm -f $tmp1
-}
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-size=10m # default size
-
-while getopts s:n opt ; do
- case "$opt" in
- s) size="$OPTARG" ;;
- n) no_mount=1 ;;
- esac
-done
-shift $(($OPTIND - 1))
-
-for d in "$@"; do
- [ -d "$d" ] && mkrwsize $size $d $no_mount
-done
Modified: trunk/lib/subroutines-linux
===================================================================
--- trunk/lib/subroutines-linux 2007-08-19 18:14:51 UTC (rev 4515)
+++ trunk/lib/subroutines-linux 2007-08-21 08:17:49 UTC (rev 4516)
@@ -68,7 +68,6 @@
echo "*.* $LOGDIR/syslog.log" > /etc/syslog.conf
syslogd -m 0
create_resolv_conf
-# XXX not needed when instaling form CD mkrw -s 100m $FAI
fi
define_fai_flags
get-config-dir || {
More information about the Fai-commit
mailing list