[Fai-commit] r4661 - trunk/bin
lange at alioth.debian.org
lange at alioth.debian.org
Fri Nov 9 13:10:01 UTC 2007
Author: lange
Date: 2007-11-09 13:10:00 +0000 (Fri, 09 Nov 2007)
New Revision: 4661
Modified:
trunk/bin/make-fai-nfsroot
Log:
$KERNELPACKAGE should not exist,
add badupdateto32(), which prints more info about update without checking variable names
Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot 2007-11-06 21:56:53 UTC (rev 4660)
+++ trunk/bin/make-fai-nfsroot 2007-11-09 13:10:00 UTC (rev 4661)
@@ -46,8 +46,19 @@
echo "ERROR: $@"
exit 99
}
+
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+badupdateto32() {
+ cat <<-EOF
+ It seems that you have updated an older FAI version without checking files in /etc/fai/
+ Please check the NEWS file for changes in variable names and if you have a linux-image package
+ defined in /etc/fai/NFSROOT.
+EOF
+ die $@
+}
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
kfile="vmlinuz" # some architectures use different names
@@ -109,12 +120,13 @@
# IMO this may be removed, since all information should be included into sources.list
[ -n "$FAI_LOCAL_REPOSITORY" ] && die "The use of \$FAI_LOCAL_REPOSITORY is now deprecated. Please include this information into sources.list."
-[ -n "$packages" ] && die "The use of \$packages in make-fai-nfsroot.conf is now deprecated. Please include this information into $cfdir/NFSROOT."
+[ -n "$packages" ] && badupdateto32 "The use of \$packages in make-fai-nfsroot.conf is now deprecated. Please include this information into $cfdir/NFSROOT."
[ -n "$NFSROOT_PACKAGES" ] && die "The use of \$NFSROOT_PACKAGES in make-fai-nfsroot.conf is now deprecated. Please include this information into $cfdir/NFSROOT."
[ -n "$FAI_SOURCES_LIST" ] && die "The use of \$FAI_SOURCES_LIST is deprecated. Please use sources.list now."
[ -z "$NFSROOT" ] && die "\$NFSROOT is not set. Please check your settings in $cfdir/fai.conf."
-[ -z "$TFTPROOT" ] && die "\$TFTPROOT is not set. Please check your settings in $cfdir/make-fai-nfsroot.conf."
+[ -z "$TFTPROOT" ] && badupdateto32 "\$TFTPROOT is not set. Please check your settings in $cfdir/make-fai-nfsroot.conf."
+[ -n "$KERNELPACKAGE" ] && badupdateto32 "The use of \$KERNELPACKAGE is deprecated. Please use $cfdir/NFSROOT now."
[ ! -d "$cfdir/apt" ] && die "$cfdir/apt/ does not exists. Can't continue."
NFSROOT="$NFSROOT/live/filesystem.dir"
More information about the Fai-commit
mailing list