Skip to content

Commit 5b90965

Browse files
committed
bin/xbps-uchroot: bring back /dev/pts
1 parent fb96739 commit 5b90965

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/xbps-uchroot/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,10 @@ main(int argc, char **argv)
476476
if (chdir(chrootdir) == -1)
477477
die("Failed to chdir to %s", chrootdir);
478478

479+
if (mount("devpts", "./dev/pts", "devpts", MS_NOSUID|MS_NOEXEC,
480+
"newinstance,ptmxmode=0666,mode=620") == -1)
481+
die("Failed to mount /dev/pts");
482+
479483
if (mount(".", ".", NULL, MS_BIND|MS_PRIVATE, NULL) == -1)
480484
die("Failed to bind mount %s", chrootdir);
481485

0 commit comments

Comments
 (0)