[debian-lan-devel] [debian-lan] 01/06: Mount /sys and /proc in the chroot to avoid warnings.

Andreas B. Mundt andi at moszumanska.debian.org
Wed Aug 27 09:00:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

andi pushed a commit to branch master
in repository debian-lan.

commit 26bfdaa6c04968c89cf308fa7a9284d040f8147d
Author: Andreas B. Mundt <andi at debian.org>
Date:   Fri Aug 8 09:59:06 2014 +0200

    Mount /sys and /proc in the chroot to avoid warnings.
---
 fai/config/files/etc/rc.local/FAISERVER | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fai/config/files/etc/rc.local/FAISERVER b/fai/config/files/etc/rc.local/FAISERVER
index da33c61..35d31d3 100755
--- a/fai/config/files/etc/rc.local/FAISERVER
+++ b/fai/config/files/etc/rc.local/FAISERVER
@@ -81,7 +81,10 @@ setup_diskless () {
     if [ ! -d $DLROOT ] ; then
         fai -vNu diskless dirinstall $DLROOT
     else
+        mount --bind /sys  $DLROOT/sys
+        mount --bind /proc $DLROOT/proc
         chroot $DLROOT fai -vNu diskless softupdate
+        umount $DLROOT/sys $DLROOT/proc
     fi
     trap - ERR SIGHUP SIGINT SIGTERM
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/debian-lan.git



More information about the debian-lan-devel mailing list