From d53190e94101197bace4ea6133a9e06c5dbf5ccd Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 21 Aug 2024 14:32:19 -0400 Subject: [PATCH] bind mount dev rather than create it --- scripts/alpine-chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/alpine-chroot b/scripts/alpine-chroot index 0728f32..ca2cc2f 100755 --- a/scripts/alpine-chroot +++ b/scripts/alpine-chroot @@ -31,7 +31,7 @@ chroot_setup() { chroot_add_mount sys "$1/sys" -t sysfs -o nosuid,noexec,nodev,ro && # alpine-chroot will never have occasion to use efivars, so don't bother # mounting efivarfs here - chroot_add_mount udev "$1/dev" -t devtmpfs -o mode=0755,nosuid && + chroot_add_mount /dev "$1/dev" -o bind && chroot_add_mount devpts "$1/dev/pts" -t devpts -o mode=0620,gid=5,nosuid,noexec && chroot_add_mount shm "$1/dev/shm" -t tmpfs -o mode=1777,nosuid,nodev && chroot_add_mount run "$1/run" -t tmpfs -o nosuid,nodev,mode=0755 &&