[Fai-commit] r4498 - trunk/bin
lange at alioth.debian.org
lange at alioth.debian.org
Sun Aug 12 14:08:14 UTC 2007
Author: lange
Date: 2007-08-12 14:08:14 +0000 (Sun, 12 Aug 2007)
New Revision: 4498
Modified:
trunk/bin/fai-setup
trunk/bin/make-fai-nfsroot
Log:
create $TFTPROOT
Modified: trunk/bin/fai-setup
===================================================================
--- trunk/bin/fai-setup 2007-08-12 13:58:46 UTC (rev 4497)
+++ trunk/bin/fai-setup 2007-08-12 14:08:14 UTC (rev 4498)
@@ -150,6 +150,7 @@
chown $LOGUSER:$logusergid . .rhosts || true
[ -d .ssh ] && chown -R $LOGUSER:$logusergid .ssh || true
fi
+ mkdir -p $TFTPROOT
chown -R $LOGUSER:$logusergid $TFTPROOT || true
fi
Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot 2007-08-12 13:58:46 UTC (rev 4497)
+++ trunk/bin/make-fai-nfsroot 2007-08-12 14:08:14 UTC (rev 4498)
@@ -351,6 +351,7 @@
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
setup_bootp(){
+ mkdir -p $TFTPROOT
if [ -x "`which mkelf-linux`" ]; then
# does not work any mork if we do not know the excatly kernel name
:
@@ -375,10 +376,10 @@
# pxe and dhcp environment
local pxebin=/usr/lib/syslinux/pxelinux.0
rm -f $NFSROOT/boot/*.bak
+ mkdir -p $TFTPROOT/pxelinux.cfg
cp -pv $NFSROOT/boot/$kfile-* $TFTPROOT
cp -pv $NFSROOT/boot/initrd.img-* $TFTPROOT
[ -f $pxebin ] && cp $pxebin $TFTPROOT
- mkdir -p $TFTPROOT/pxelinux.cfg
echo "DHCP environment prepared. If you want to use it, you have to enable the dhcpd and the tftp-hpa daemon."
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
More information about the Fai-commit
mailing list