lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 6557d30 4/4: Specify fstab entries for chroot


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 6557d30 4/4: Specify fstab entries for chroot proc and devpts
Date: Tue, 24 Sep 2019 20:00:11 -0400 (EDT)

branch: master
commit 6557d304cd62e74bfb3f156dfc331903d57e546d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Specify fstab entries for chroot proc and devpts
---
 lmi_setup_20.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lmi_setup_20.sh b/lmi_setup_20.sh
index 1fb424b..ef6e14a 100644
--- a/lmi_setup_20.sh
+++ b/lmi_setup_20.sh
@@ -50,7 +50,11 @@ ln -s /bin/true /usr/bin/ischroot
 mount -t devpts -o rw,nosuid,noexec,relatime,mode=600 devpts /dev/pts
 mount -t proc -o rw,nosuid,nodev,noexec,relatime proc /proc
 
-# If the chroot is to be permanent, consider adding those mounts to /etc/fstab 
.
+# If the chroot is to be permanent, consider adding those mounts to /etc/fstab:
+#
+# devpts /srv/chroot/${CHRTNAME}/dev/pts devpts 
rw,nosuid,noexec,relatime,mode=600,ptmxmode=000 0 0
+# proc /srv/chroot/${CHRTNAME}/proc proc rw,nosuid,nodev,noexec,relatime 0 0
+#
 # If the chroot is ever to be eradicated, be sure to unmount first:
 # ...inside chroot:
 #   umount ./dev/pts



reply via email to

[Prev in Thread] Current Thread [Next in Thread]