mount /dev as devtmpfs instead of binding it.
authorJames Buren <ryuo@frugalware.org>
Sun, 2 Sep 2012 05:07:30 +0000 (00:07 -0500)
committerJames Buren <ryuo@frugalware.org>
Sun, 2 Sep 2012 05:07:30 +0000 (00:07 -0500)
scripts/makepkg

index d11ff35..5b021b3 100755 (executable)
@@ -382,7 +382,7 @@ chroot_mount() {
     msg "Attempting to mount chroot directories..."
     mount -t proc none $CHROOTDIR/proc >/dev/null
     mount -t sysfs none $CHROOTDIR/sys >/dev/null
-    mount -o bind /dev $CHROOTDIR/dev >/dev/null
+    mount -t devtmpfs none $CHROOTDIR/dev >/dev/null
     mount -o bind /var/cache/pacman-g2 $CHROOTDIR/var/cache/pacman-g2 >/dev/null
     mount -o bind $CCACHE_BASEDIR/$pkgname \
     $CHROOTDIR/var/cache/ccache/$pkgname >/dev/null