8000 Merge remote-tracking branch 'origin/pull/58' · archlinux/arch-install-scripts@efad4f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit efad4f1

Browse files
committed
Merge remote-tracking branch 'origin/pull/58'
* origin/pull/58: common: fix unshare chroot /dev symlinks
2 parents a5b772d + dbef490 commit efad4f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

common

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ unshare_setup() {
6767
chroot_add_mount_lazy "$1" "$1" --bind &&
6868
chroot_add_mount proc "$1/proc" -t proc -o nosuid,noexec,nodev &&
6969
chroot_add_mount_lazy /sys "$1/sys" --rbind &&
70-
chroot_add_link "$1/proc/self/fd" "$1/dev/fd" &&
71-
chroot_add_link "$1/proc/self/fd/0" "$1/dev/stdin" &&
72-
chroot_add_link "$1/proc/self/fd/1" "$1/dev/stdout" &&
73-
chroot_add_link "$1/proc/self/fd/2" "$1/dev/stderr" &&
70+
chroot_add_link /proc/self/fd "$1/dev/fd" &&
71+
chroot_add_link /proc/self/fd/0 "$1/dev/stdin" &&
72+
chroot_add_link /proc/self/fd/1 "$1/dev/stdout" &&
73+
chroot_add_link /proc/self/fd/2 "$1/dev/stderr" &&
7474
chroot_bind_device /dev/full "$1/dev/full" &&
7575
chroot_bind_device /dev/null "$1/dev/null" &&
7676
chroot_bind_device /dev/random "$1/dev/random" &&

0 commit comments

Comments
 (0)
0