projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
48ec030
)
Update /dev and /dev/pts mount from --bind to proper fs type
author
Bigo
<bigo@crisidev.org>
Sun, 9 Jul 2017 11:41:24 +0000
(12:41 +0100)
committer
Bigo
<bigo@crisidev.org>
Sun, 9 Jul 2017 11:41:24 +0000
(12:41 +0100)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
18b1ef4
..
9eb6b9e
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-1241,8
+1241,8
@@
finalize_vm() {
mount -t proc none "${MNTPOINT}"/proc
mount -t sysfs none "${MNTPOINT}"/sys
mount -t proc none "${MNTPOINT}"/proc
mount -t sysfs none "${MNTPOINT}"/sys
- mount -
-bind /
dev "${MNTPOINT}"/dev
- mount -
-bind /dev/
pts "${MNTPOINT}"/dev/pts
+ mount -
t devtmpfs u
dev "${MNTPOINT}"/dev
+ mount -
t devpts dev
pts "${MNTPOINT}"/dev/pts
# Has chroot-script installed GRUB to MBR using grub-install (successfully), already?
# chroot-script skips installation for unset ${GRUB}
# Has chroot-script installed GRUB to MBR using grub-install (successfully), already?
# chroot-script skips installation for unset ${GRUB}
@@
-1575,8
+1575,8
@@
chrootscript() {
eend 1
else
einfo "Executing chroot-script now"
eend 1
else
einfo "Executing chroot-script now"
- mount -
-bind /dev "$MNTPOINT
"/dev
- mount -
-bind /dev/pts "$MNTPOINT
"/dev/pts
+ mount -
t devtmpfs udev "${MNTPOINT}
"/dev
+ mount -
t devpts devpts "${MNTPOINT}
"/dev/pts
if [ "$DEBUG" = "true" ] ; then
chroot "$MNTPOINT" /bin/bash -x /bin/chroot-script ; RC=$?
else
if [ "$DEBUG" = "true" ] ; then
chroot "$MNTPOINT" /bin/bash -x /bin/chroot-script ; RC=$?
else